Home
last modified time | relevance | path

Searched refs:C2Param (Results 1 – 25 of 63) sorted by relevance

123

/hardware/google/av/codec2/vndk/util/
DC2InterfaceHelper.cpp37 C2ReflectorHelper::describe(C2Param::CoreIndex paramIndex) const { in describe()
55 C2Param::CoreIndex coreIndex = fd.type() &~ C2FieldDescriptor::STRUCT_FLAG; in addStructDescriptor()
75 void addDownDependency(C2Param::Index index) { in addDownDependency()
142 const std::vector<C2Param::Index> getDownDependencies() const { in getDownDependencies()
146 C2Param::Index index() const { in index()
165 void setDefaultValue(std::shared_ptr<C2Param> default_) { in setDefaultValue()
169 void setDependencies(std::vector<C2Param::Index> indices, std::vector<ParamRef> refs) { in setDependencies()
194 void setGetter(std::function<std::shared_ptr<C2Param>(bool)> getter) { in setGetter()
198 void setSetter(std::function<C2R(const C2Param *, bool, bool *, Factory &)> setter) { in setSetter() argument
203 const C2Param *value, bool mayBlock, bool *changed, Factory &f, in trySet()
[all …]
DC2Debug.cpp68 static std::string attribParamCoreIndex(const C2Param::CoreIndex &i) { in attribParamCoreIndex()
76 const C2Param::Type &i, bool addStream, unsigned streamId) { in attribParamIndex()
90 i.kind() == C2Param::STRUCT ? 'S' : in attribParamIndex()
91 i.kind() == C2Param::INFO ? 'i' : in attribParamIndex()
92 i.kind() == C2Param::TUNING ? 't' : in attribParamIndex()
93 i.kind() == C2Param::SETTING ? 's' : in attribParamIndex()
94 i.kind() == C2Param::NONE ? '-' : '?') in attribParamIndex()
98 std::ostream& operator<<(std::ostream& os, const C2Param::CoreIndex &i) { in operator <<()
102 std::ostream& operator<<(std::ostream& os, const C2Param::Type &i) { in operator <<()
107 std::ostream& operator<<(std::ostream& os, const C2Param::Index &i) { in operator <<()
[all …]
DC2ParamUtils.cpp197 C2Param *C2ParamUtils::ParseFirst(const uint8_t *blob, size_t size) { in ParseFirst()
199 if (size < sizeof(C2Param)) { in ParseFirst()
203 C2Param *param = (C2Param*)blob; in ParseFirst()
/hardware/google/av/codec2/vndk/include/util/
DC2InterfaceHelper.h53 C2Param::CoreIndex paramIndex) const override;
101 std::map<C2Param::CoreIndex, const C2StructDescriptor> _mStructs; ///< descriptors
121 C2Param::CoreIndex index, size_t offset);
131 typename std::enable_if<std::is_convertible<T, C2Param>::value>::type>
133 : _mRef(reinterpret_cast<std::shared_ptr<C2Param>*>(&param)) { }
136 operator std::shared_ptr<C2Param> *() const { return _mRef; }
141 std::shared_ptr<C2Param> get() const { return *_mRef; }
144 std::shared_ptr<C2Param> *_mRef;
174 C2ParamField makeParamField(C2Param::Index index) const;
238 Field(std::shared_ptr<FieldHelper> helper, C2Param::Index index);
[all …]
DC2Debug-param.h30 std::ostream& operator<<(std::ostream& os, const C2Param::CoreIndex &i);
31 std::ostream& operator<<(std::ostream& os, const C2Param::Type &i);
32 std::ostream& operator<<(std::ostream& os, const C2Param::Index &i);
DC2ParamUtils.h29 struct C2Param;
38 C2Param *ParseFirst(const uint8_t *blob, size_t size);
/hardware/google/av/media/sfplugin/
DCCodecConfig.h113 std::set<C2Param::Index> mSupportedIndices; ///< indices supported by the component
114 std::set<C2Param::Index> mSubscribedIndices; ///< indices to subscribe to
127 std::map<C2Param::Index, std::unique_ptr<C2Param>> mCurrentConfig;
129 typedef std::function<c2_status_t(std::unique_ptr<C2Param>&)> LocalParamValidator;
135 std::map<C2Param::Index, LocalParamValidator> mLocalParams;
157 C2Param::Index index = T::PARAM_TYPE;
170 validator = [validator_](std::unique_ptr<C2Param>& p){
224 std::vector<std::unique_ptr<C2Param>> &configUpdate, Domain domain);
241 std::vector<std::unique_ptr<C2Param>> *configUpdate) const;
251 std::vector<std::unique_ptr<C2Param>> &configUpdate,
[all …]
DReflectedParamUpdater.h98 C2Param::Index(T::PARAM_TYPE), attrib, name.c_str()),
139 void supportWholeParam(std::string name, C2Param::CoreIndex coreIndex);
144 std::string getParamName(C2Param::Index index) const;
156 std::vector<C2Param::Index> *vec /* nonnull */) const;
166 std::vector<C2Param::Index> *vec /* nonnull */) const;
176 std::vector<std::unique_ptr<C2Param>> *vec /* nonnull */) const;
185 const std::vector<C2Param*> &params /* nonnull */) const;
188 const std::vector<std::unique_ptr<C2Param>> &params /* nonnull */) const;
202 std::map<C2Param::Index, std::string> mParamNames;
203 std::map<std::string, C2Param::CoreIndex> mWholeParams;
DReflectedParamUpdater.cpp156 C2Param::CoreIndex(it->type()).coreIndex()); in addParamStructDesc()
226 void ReflectedParamUpdater::supportWholeParam(std::string name, C2Param::CoreIndex index) { in supportWholeParam()
230 std::string ReflectedParamUpdater::getParamName(C2Param::Index index) const { in getParamName()
243 std::vector<C2Param::Index> *vec /* nonnull */) const { in getParamIndicesFromMessage()
246 std::set<C2Param::Index> indices; in getParamIndicesFromMessage()
252 for (const C2Param::Index &index : indices) { in getParamIndicesFromMessage()
259 std::vector<C2Param::Index> *vec /* nonnull */) const { in getParamIndicesForKeys()
262 std::set<C2Param::Index> indices; in getParamIndicesForKeys()
277 for (const C2Param::Index &index : indices) { in getParamIndicesForKeys()
284 std::vector<std::unique_ptr<C2Param>> *vec /* nonnull */) const { in updateParamsFromMessage()
[all …]
/hardware/google/av/codec2/include/
DC2Param.h93 struct C2Param { struct
257 friend struct C2Param; // for setPort()
319 friend struct C2Param; // for setStream, MakeStreamId, isValid
421 inline bool operator==(const C2Param &o) const { argument
424 inline bool operator!=(const C2Param &o) const { return !operator==(o); }
427 inline static C2Param* From(void *addr, size_t len) { in From() argument
429 if (len < sizeof(C2Param)) { in From()
433 C2Param *param = (C2Param*)addr; in From()
441 inline static std::unique_ptr<C2Param> Copy(const C2Param &orig) { in Copy() argument
446 C2Param *param = new (mem) C2Param(orig.size(), orig._mIndex); in Copy()
[all …]
DC2Component.h156 const std::vector<C2Param*> &stackParams,
157 const std::vector<C2Param::Index> &heapParamIndices,
159 std::vector<std::unique_ptr<C2Param>>* const heapParams) const = 0;
217 const std::vector<C2Param*> &params,
698 virtual const std::vector<C2Param::Index> getParsedParams() const = 0;
880 const std::vector<C2Param*> &stackParams,
881 const std::vector<C2Param::Index> &heapParamIndices,
882 std::vector<std::unique_ptr<C2Param>>* const heapParams) const = 0;
919 const std::vector<C2Param*> &params,
DC2ParamDef.h166 public _C2StructCheck<S, ParamIndex | C2Param::CoreIndex::IS_FLEX_FLAG, TypeFlags> {
170 CORE_INDEX = ParamIndex | C2Param::CoreIndex::IS_FLEX_FLAG, ///< flexible struct core-index
190 BASE_SIZE = sizeof(S) + sizeof(C2Param), ///< size of the base param
214 inline static _Type* From(C2Param *other) { \
215 return (_Type*)C2Param::IfSuitable( \
219 inline static const _Type* From(const C2Param *other) { \
220 return const_cast<const _Type*>(From(const_cast<C2Param *>(other))); \
392 inline void setPort(bool output) { C2Param::setPort(output); }
455 inline void setPort(bool output) { C2Param::setPort(output); }
534 inline void setPort(bool output) { C2Param::setPort(output); }
[all …]
/hardware/google/av/codec2/tests/
DC2SampleComponent_test.cpp103 const std::vector<C2Param*> &params, in config_vb()
118 const std::vector<C2Param*> &stackParams, in query_vb()
119 const std::vector<C2Param::Index> &heapParamIndices, in query_vb()
121 std::vector<std::unique_ptr<C2Param>>* const heapParams) const override { in query_vb()
122 for (C2Param* const param : stackParams) { in query_vb()
133 C2Param & myParam = mMyParams.find(param->index())->second; in query_vb()
142 for (const C2Param::Index index : heapParamIndices) { in query_vb()
144 C2Param & myParam = mMyParams.find(index)->second; in query_vb()
145 std::unique_ptr<C2Param> paramCopy(C2Param::Copy(myParam)); in query_vb()
153 std::unordered_map<uint32_t, C2Param &> mMyParams;
[all …]
DC2Param_test.cpp59 enum C2ParamIndexType : C2Param::type_index_t {
63 kParamIndexVendorStart = C2Param::TYPE_INDEX_VENDOR_START,
813 C2Param::Index index(paramType);
871 typedef C2Param::Index I; in StaticTest()
936 typedef C2Param::Index I; in StaticFromBaseTest()
995 typedef C2Param::Index I; in StaticFlexTest()
1069 typedef C2Param::Index I; in StaticFlexFromBaseTest()
1135 C2Param::CoreIndex index = C2NumberStruct::CORE_INDEX; in TEST_F()
1182 EXPECT_EQ(C2Param::Type(tun.type()).coreIndex(), C2NumberStruct::CORE_INDEX); in TEST_F()
1183 EXPECT_EQ(C2Param::Type(tun.type()).typeIndex(), kParamIndexNumber); in TEST_F()
[all …]
DC2ComponentInterface_test.cpp122 std::vector<std::unique_ptr<C2Param>> *const heapParams);
200 std::vector<C2Param*> stackParams{p}; in queryOnStack()
206 const T &p, std::vector<std::unique_ptr<C2Param>> *const heapParams) { in queryOnHeap()
225 std::vector<std::unique_ptr<C2Param>> heapParams; in queryParamAsExpected()
253 std::vector<std::unique_ptr<C2Param>> heapParams; in queryUnsupportedParam()
265 std::vector<C2Param*> params{p}; in config()
281 std::vector<C2Param*> params{p.get()}; in configReadOnlyParam()
294 std::vector<C2Param*> params{p.get()}; in configWritableParamValidValue()
317 std::vector<C2Param*> params{p.get()}; in configWritableParamInvalidValue()
521 const C2Param &param, in isSupportedParam()
/hardware/google/av/codec2/vndk/internal/
DC2ParamInternal.h74 C2ParamField CreateParamField(C2Param::Index index, uint32_t offset, uint32_t size) { in CreateParamField()
79 C2ParamField CreateParamField(C2Param::Index index, _C2FieldId field) { in CreateParamField()
84 void TrimParam(C2Param *param, uint32_t newSize) { in TrimParam()
85 if (param && *param && param->size() > newSize && newSize >= sizeof(C2Param)) { in TrimParam()
96 C2StructDescriptor CreateStructDescriptor(C2Param::CoreIndex index, in CreateStructDescriptor()
/hardware/google/av/codec2/hidl/services/
Dvendor.cpp72 const std::vector<C2Param*>& /* stackParams */, in query_sm() argument
73 const std::vector<C2Param::Index>& /* heapParamIndices */, in query_sm()
74 std::vector<std::unique_ptr<C2Param>>* const /* heapParams */) const override { in query_sm()
79 const std::vector<C2Param*>& /* params */, in config_sm() argument
/hardware/google/av/codec2/hidl/1.0/utils/include/codec2/hidl/1.0/
DConfigurableC2Intf.h50 const std::vector<C2Param::Index> &indices,
52 std::vector<std::unique_ptr<C2Param>>* const params) const = 0;
55 const std::vector<C2Param*> &params,
Dtypes.h229 std::vector<C2Param*> *params,
242 const std::vector<C2Param*> &params);
245 const std::vector<std::unique_ptr<C2Param>> &params);
262 std::vector<std::unique_ptr<C2Param>>* params,
273 const std::vector<C2Param*>& params,
/hardware/google/av/media/sfplugin/tests/
DReflectedParamUpdater_test.cpp40 kParamIndexLong = C2Param::TYPE_INDEX_VENDOR_START,
85 static std::unique_ptr<C2StructDescriptor> describe(C2Param::CoreIndex index) { in describe()
95 static std::unique_ptr<C2StructDescriptor> describe(C2Param::CoreIndex) { in describe()
120 template<typename T> T *CastParam(const std::unique_ptr<C2Param> &param) { in CastParam()
129 std::unique_ptr<C2StructDescriptor> describe(C2Param::CoreIndex paramIndex) const override { in describe()
155 std::vector<C2Param::Index> indices; in TEST_F()
168 std::vector<std::unique_ptr<C2Param>> params; in TEST_F()
201 std::vector<C2Param::Index> indices; in TEST_F()
214 std::vector<std::unique_ptr<C2Param>> params; in TEST_F()
260 std::vector<C2Param::Index> indices; in TEST_F()
[all …]
/hardware/google/av/codec2/hidl/1.0/utils/
Dtypes.cpp83 static_cast<C2Param::Index>(static_cast<uint32_t>(0)), 0, 0) { in C2ParamFieldBuilder()
87 static_cast<C2Param::Index>(static_cast<uint32_t>(s.index)), in C2ParamFieldBuilder()
494 std::vector<C2Param::Index> dDependencies; in objcpy()
500 C2Param::Index(static_cast<uint32_t>(s.index)), in objcpy()
537 C2Param::CoreIndex dIndex = C2Param::CoreIndex(static_cast<uint32_t>(s.type)); in objcpy()
707 std::vector<C2Param*>{ &dRangeInfo }); in objcpy()
736 std::vector<C2Param*>{ &dRectInfo }); in objcpy()
1002 std::vector<C2Param*> in objcpy()
1003 { reinterpret_cast<C2Param*>(sTuning.get()) }); in objcpy()
1071 const std::vector<C2Param*>& meta, in createLinearBuffer()
[all …]
DInputSurfaceConnection.cpp238 const std::vector<C2Param*> &stackParams, in compQuery()
239 const std::vector<C2Param::Index> &heapParamIndices, in compQuery()
241 std::vector<std::unique_ptr<C2Param>>* const heapParams) { in compQuery()
263 for (C2Param* const& stackParam : stackParams) { in compQuery()
271 for (const C2Param::Index& index : heapParamIndices) { in compQuery()
290 std::vector<C2Param*> paramPointers; in compQuery()
301 C2Param* paramPointer = *it; in compQuery()
337 heapParams->emplace_back(C2Param::Copy(*paramPointer)); in compQuery()
DConfigurable.cpp57 typedef C2Param::Index Index; in query()
61 std::vector<std::unique_ptr<C2Param>> c2heapParams; in query()
80 std::vector<C2Param*> c2params; in config()
/hardware/interfaces/media/c2/1.0/
Dtypes.hal76 * C2Param structure index.
78 * This is a number that is unique for each C2Param structure type.
85 * Flattened representation of C2Param objects.
88 * C2Param objects. The start index (offset into @ref Params) of each C2Param
90 * after each C2Param object to achieve this 64-bit alignment.
92 * Each C2Param object has the following layout:
93 * - 4 bytes: C2Param structure index (of type @ref ParamIndex) identifying the
94 * type of the C2Param object.
95 * - 4 bytes: size of the C2Param object (unsigned 4-byte integer).
96 * - (size - 8) bytes: data of the C2Param object.
[all …]
/hardware/google/av/codec2/hidl/1.0/mts/common/
Dmedia_c2_hidl_test_common.cpp90 std::vector<std::unique_ptr<C2Param>> updates = in workDone()
92 std::vector<C2Param*> configParam; in workDone()
95 C2Param* param = updates[i].get(); in workDone()

123