Home
last modified time | relevance | path

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

12345

/frameworks/av/media/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 …]
/frameworks/av/media/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);
/frameworks/av/media/codec2/sfplugin/
DCCodecConfig.h116 std::set<C2Param::Index> mSupportedIndices; ///< indices supported by the component
117 std::set<C2Param::Index> mSubscribedIndices; ///< indices to subscribe to
132 std::map<C2Param::Index, std::unique_ptr<C2Param>> mCurrentConfig;
134 typedef std::function<c2_status_t(std::unique_ptr<C2Param>&)> LocalParamValidator;
140 std::map<C2Param::Index, LocalParamValidator> mLocalParams;
172 C2Param::Index index = T::PARAM_TYPE;
185 validator = [validator_](std::unique_ptr<C2Param>& p){
239 std::vector<std::unique_ptr<C2Param>> &configUpdate, Domain domain);
256 std::vector<std::unique_ptr<C2Param>> *configUpdate) const;
266 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;
175 const C2Param::Index &index,
194 std::vector<std::unique_ptr<C2Param>> *vec /* nonnull */) const;
203 const std::vector<C2Param*> &params /* nonnull */) const;
206 const std::vector<std::unique_ptr<C2Param>> &params /* nonnull */) const;
220 std::map<C2Param::Index, std::string> mParamNames;
[all …]
DReflectedParamUpdater.cpp144 C2Param::CoreIndex(it->type()).coreIndex()); in addParamStructDesc()
199 if (desc->index() & C2Param::CoreIndex::IS_REQUEST_FLAG) { in addParamDesc()
221 void ReflectedParamUpdater::supportWholeParam(std::string name, C2Param::CoreIndex index) { in supportWholeParam()
225 std::string ReflectedParamUpdater::getParamName(C2Param::Index index) const { in getParamName()
238 std::vector<C2Param::Index> *vec /* nonnull */) const { in getParamIndicesFromMessage()
241 std::set<C2Param::Index> indices; in getParamIndicesFromMessage()
247 for (const C2Param::Index &index : indices) { in getParamIndicesFromMessage()
254 std::vector<C2Param::Index> *vec /* nonnull */) const { in getParamIndicesForKeys()
257 std::set<C2Param::Index> indices; in getParamIndicesForKeys()
272 for (const C2Param::Index &index : indices) { in getParamIndicesForKeys()
[all …]
/frameworks/av/media/codec2/core/include/
DC2Param.h93 struct C2Param { struct
258 friend struct C2Param; // for setPort()
321 friend struct C2Param; // for setStream, MakeStreamId, isValid, convertTo*
427 inline bool operator==(const C2Param &o) const { argument
431 inline bool operator!=(const C2Param &o) const { return !operator==(o); }
435 inline static C2Param* From(void *addr, size_t len) { in From() argument
437 if (len < sizeof(C2Param)) { in From()
441 C2Param *param = (C2Param*)addr; in From()
449 inline static std::unique_ptr<C2Param> Copy(const C2Param &orig) { in Copy() argument
454 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,
/frameworks/av/media/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,
821 C2Param::Index index(paramType);
879 typedef C2Param::Index I; in StaticTest()
944 typedef C2Param::Index I; in StaticFromBaseTest()
1003 typedef C2Param::Index I; in StaticFlexTest()
1077 typedef C2Param::Index I; in StaticFlexFromBaseTest()
1143 C2Param::CoreIndex index = C2NumberStruct::CORE_INDEX; in TEST_F()
1190 EXPECT_EQ(C2Param::Type(tun.type()).coreIndex(), C2NumberStruct::CORE_INDEX); in TEST_F()
1191 EXPECT_EQ(C2Param::Type(tun.type()).typeIndex(), kParamIndexNumber); in TEST_F()
[all …]
/frameworks/av/media/codec2/hal/aidl/include/codec2/aidl/
DParamTypes.h123 std::vector<C2Param*> *params,
137 const std::vector<C2Param*> &params);
140 const std::vector<std::unique_ptr<C2Param>> &params);
158 std::vector<std::unique_ptr<C2Param>>* params,
173 const std::vector<C2Param*>& params,
/frameworks/av/media/module/codecserviceregistrant/
DCodecServiceRegistrant.cpp116 std::vector<C2Param*> const &params, in config_sm()
129 std::vector<C2Param*> const &params, in config_sm_aidl()
176 std::vector<C2Param*> const &params, in config_sm_hidl()
241 const std::vector<C2Param *> &stackParams, in query_sm()
242 const std::vector<C2Param::Index> &heapParamIndices, in query_sm()
243 std::vector<std::unique_ptr<C2Param>> *const heapParams) const override { in query_sm()
254 const std::vector<C2Param *> &paramPointers, in UpdateQueryResult()
256 const std::vector<C2Param *> &stackParams, in UpdateQueryResult()
257 std::vector<std::unique_ptr<C2Param>> *const heapParams) { in UpdateQueryResult()
261 C2Param* paramPointer = *it; in UpdateQueryResult()
[all …]
/frameworks/av/media/codec2/hal/plugin/
DFilterWrapper.cpp58 std::vector<std::unique_ptr<C2Param>> lastFilterParams; in takeFilters()
60 std::vector<C2Param::Index> indices; in takeFilters()
69 C2Param::Index index = paramDesc->index(); in takeFilters()
103 for (C2Param::Type type : mFilters[i].desc.controlParams) { in takeFilters()
105 mTypeToIndexForConfig[type.type() & ~C2Param::CoreIndex::IS_REQUEST_FLAG] = i; in takeFilters()
107 for (C2Param::Type type : mFilters[i].desc.affectedParams) { in takeFilters()
121 mTypeToIndexForConfig[type & ~C2Param::CoreIndex::IS_REQUEST_FLAG] = in takeFilters()
125 std::vector<C2Param *> paramPtrs(lastFilterParams.size()); in takeFilters()
130 [](const std::unique_ptr<C2Param> &param) { in takeFilters()
144 const std::vector<C2Param *> &stackParams, in query_vb()
[all …]
/frameworks/av/media/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()
/frameworks/av/media/codec2/hal/hidl/1.0/utils/
DInputSurfaceConnection.cpp274 const std::vector<C2Param*> &params,
279 const std::vector<C2Param::Index> &indices,
281 std::vector<std::unique_ptr<C2Param>> *const params) const override;
292 const std::vector<C2Param*> &stackParams, in queryFromSink()
293 const std::vector<C2Param::Index> &heapParamIndices, in queryFromSink()
295 std::vector<std::unique_ptr<C2Param>>* const heapParams) { in queryFromSink()
318 for (C2Param* const& stackParam : stackParams) { in queryFromSink()
326 for (const C2Param::Index& index : heapParamIndices) { in queryFromSink()
346 std::vector<C2Param*> paramPointers; in queryFromSink()
356 C2Param* paramPointer = *it; in queryFromSink()
[all …]
DComponentInterface.cpp54 const std::vector<C2Param*>& params, in config()
58 std::vector<C2Param*> paramsToIntf; in config()
59 std::vector<C2Param*> paramsToLargeFrameIntf; in config()
109 const std::vector<C2Param::Index>& indices, in query()
111 std::vector<std::unique_ptr<C2Param>>* const params in query()
118 std::vector<C2Param::Index> paramsToIntf; in query()
119 std::vector<C2Param::Index> paramsToLargeFrameIntf; in query()
/frameworks/av/media/codec2/hal/plugin/include/codec2/hidl/plugin/
DFilterPlugin.h40 std::initializer_list<C2Param::Type> controlParams;
42 std::initializer_list<C2Param::Type> affectedParams;
68 std::vector<std::unique_ptr<C2Param>> *params) = 0;
/frameworks/av/media/codec2/hal/aidl/
DComponentInterface.cpp55 const std::vector<C2Param*>& params, in config()
59 std::vector<C2Param*> paramsToIntf; in config()
60 std::vector<C2Param*> paramsToLargeFrameIntf; in config()
110 const std::vector<C2Param::Index>& indices, in query()
112 std::vector<std::unique_ptr<C2Param>>* const params in query()
119 std::vector<C2Param::Index> paramsToIntf; in query()
120 std::vector<C2Param::Index> paramsToLargeFrameIntf; in query()
/frameworks/av/media/codec2/sfplugin/tests/
DCCodecConfig_test.cpp33 enum ExtendedC2ParamIndexKind : C2Param::type_index_t {
34 kParamIndexVendorInt32 = C2Param::TYPE_INDEX_VENDOR_START,
94 const std::vector<C2Param::Index> &indices, in query()
96 std::vector<std::unique_ptr<C2Param>>* const params) const override { in query()
101 const std::vector<C2Param*> &params, in config()
300 T *FindParam(const std::vector<std::unique_ptr<C2Param>> &vec) { in FindParam()
301 for (const std::unique_ptr<C2Param> &param : vec) { in FindParam()
321 std::vector<std::unique_ptr<C2Param>> configUpdate; in TEST_F()
349 std::vector<std::unique_ptr<C2Param>> configUpdate; in TEST_F()
354 configUpdate.push_back(C2Param::Copy(i32)); in TEST_F()
[all …]
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 …]
/frameworks/av/media/module/codecserviceregistrant/fuzzer/
DcodecServiceRegistrant_fuzzer.cpp51 C2Param::Index mIndex = C2StreamProfileLevelInfo::output::PARAM_TYPE;
95 vector<C2Param *> configParams; in invokeConfigSM()
118 vector<C2Param *> stackParams; in invokeQuerySM()
119 vector<C2Param::Index> heapParamIndices; in invokeQuerySM()
129 vector<unique_ptr<C2Param>> heapParams; in invokeQuerySM()
/frameworks/av/media/codec2/hal/common/include/codec2/common/
DMultiAccessUnitHelper.h41 bool isParamSupported(C2Param::Index index);
53 std::set<C2Param::Index> mSupportedParamIndexSet;
146 std::vector<std::unique_ptr<C2Param>> mConfigUpdate;
181 bool tryReconfigure(const std::unique_ptr<C2Param> &p);
DParamTypes.h89 static_cast<C2Param::Index>(static_cast<uint32_t>(0)), 0, 0) { in C2ParamFieldBuilder()
93 static_cast<C2Param::Index>(static_cast<uint32_t>(s.index)), in C2ParamFieldBuilder()
560 std::vector<C2Param::Index> dDependencies; in objcpy()
566 C2Param::Index(static_cast<uint32_t>(s.index)), in objcpy()
604 C2Param::CoreIndex dIndex = C2Param::CoreIndex(static_cast<uint32_t>(s.type)); in objcpy()
630 static_assert(PARAMS_ALIGNMENT % alignof(C2Param) == 0, "C2Param alignment mismatch");
652 bool parseParamsBlob(std::vector<C2Param*> *params, const Params &paramsBlob) { in parseParamsBlob()
659 C2Param *p = nullptr; in parseParamsBlob()
741 std::vector<C2Param*> paramPointers; in _copyParamsFromBlob()
749 for (C2Param* const& paramPointer : paramPointers) { in _copyParamsFromBlob()
[all …]

12345