/frameworks/av/media/codec2/vndk/util/ |
D | C2InterfaceHelper.cpp | 37 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 …]
|
D | C2Debug.cpp | 68 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 …]
|
D | C2ParamUtils.cpp | 197 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()
|
D | C2InterfaceUtils.cpp | 909 return parent == nullptr ? sizeof(C2Param) : parent->baseFieldOffset; in GetParentBaseFieldOffset() 914 return parent == nullptr ? sizeof(C2Param) : GetOffset(parent->field); in GetParentOffset() 942 bool visited(C2Param::CoreIndex index) const { in visited() 961 C2FieldUtilsFieldsIterator(const C2Param ¶m, std::shared_ptr<C2ParamReflector> reflector) in C2FieldUtilsFieldsIterator() 971 C2Param::CoreIndex index = { mHead->field.type() &~C2FieldDescriptor::STRUCT_FLAG }; in C2FieldUtilsFieldsIterator() 989 C2Param::CoreIndex index = { mHead->field.type() &~C2FieldDescriptor::STRUCT_FLAG }; in increment() 1026 bool descendInto(C2Param::CoreIndex index) { in descendInto() 1054 C2FieldUtilsFieldIterable(const C2Param ¶m, std::shared_ptr<C2ParamReflector> reflector) in C2FieldUtilsFieldIterable() 1058 const C2Param *_mParam; 1065 const C2Param ¶m, const std::shared_ptr<C2ParamReflector> &reflector) { in enumerateFields() [all …]
|
/frameworks/av/media/codec2/vndk/include/util/ |
D | C2InterfaceHelper.h | 53 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>*>(¶m)) { } 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 …]
|
D | C2Debug-param.h | 30 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);
|
D | C2ParamUtils.h | 29 struct C2Param; 38 C2Param *ParseFirst(const uint8_t *blob, size_t size);
|
/frameworks/av/media/codec2/sfplugin/ |
D | CCodecConfig.h | 113 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; 159 C2Param::Index index = T::PARAM_TYPE; 172 validator = [validator_](std::unique_ptr<C2Param>& p){ 226 std::vector<std::unique_ptr<C2Param>> &configUpdate, Domain domain); 243 std::vector<std::unique_ptr<C2Param>> *configUpdate) const; 253 std::vector<std::unique_ptr<C2Param>> &configUpdate, [all …]
|
D | ReflectedParamUpdater.cpp | 156 C2Param::CoreIndex(it->type()).coreIndex()); in addParamStructDesc() 211 if (desc->index() & C2Param::CoreIndex::IS_REQUEST_FLAG) { in addParamDesc() 233 void ReflectedParamUpdater::supportWholeParam(std::string name, C2Param::CoreIndex index) { in supportWholeParam() 237 std::string ReflectedParamUpdater::getParamName(C2Param::Index index) const { in getParamName() 250 std::vector<C2Param::Index> *vec /* nonnull */) const { in getParamIndicesFromMessage() 253 std::set<C2Param::Index> indices; in getParamIndicesFromMessage() 259 for (const C2Param::Index &index : indices) { in getParamIndicesFromMessage() 266 std::vector<C2Param::Index> *vec /* nonnull */) const { in getParamIndicesForKeys() 269 std::set<C2Param::Index> indices; in getParamIndicesForKeys() 284 for (const C2Param::Index &index : indices) { in getParamIndicesForKeys() [all …]
|
D | ReflectedParamUpdater.h | 98 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*> ¶ms /* nonnull */) const; 188 const std::vector<std::unique_ptr<C2Param>> ¶ms /* nonnull */) const; 202 std::map<C2Param::Index, std::string> mParamNames; 203 std::map<std::string, C2Param::CoreIndex> mWholeParams;
|
/frameworks/av/media/codec2/core/include/ |
D | C2Param.h | 93 struct C2Param { struct 258 friend struct C2Param; // for setPort() 320 friend struct C2Param; // for setStream, MakeStreamId, isValid 426 inline bool operator==(const C2Param &o) const { argument 429 inline bool operator!=(const C2Param &o) const { return !operator==(o); } 432 inline static C2Param* From(void *addr, size_t len) { in From() argument 434 if (len < sizeof(C2Param)) { in From() 438 C2Param *param = (C2Param*)addr; in From() 446 inline static std::unique_ptr<C2Param> Copy(const C2Param &orig) { in Copy() argument 451 C2Param *param = new (mem) C2Param(orig.size(), orig._mIndex); in Copy() [all …]
|
D | C2Component.h | 156 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*> ¶ms, 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*> ¶ms,
|
D | C2ParamDef.h | 166 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 …]
|
/frameworks/av/media/codec2/tests/ |
D | C2SampleComponent_test.cpp | 103 const std::vector<C2Param*> ¶ms, 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 …]
|
D | C2Param_test.cpp | 59 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 …]
|
D | C2ComponentInterface_test.cpp | 122 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 ¶m, in isSupportedParam()
|
/frameworks/av/media/codec2/vndk/internal/ |
D | C2ParamInternal.h | 74 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/hidl/1.0/utils/ |
D | InputSurfaceConnection.cpp | 272 const std::vector<C2Param*> ¶ms, 277 const std::vector<C2Param::Index> &indices, 279 std::vector<std::unique_ptr<C2Param>> *const params) const override; 290 const std::vector<C2Param*> &stackParams, in queryFromSink() 291 const std::vector<C2Param::Index> &heapParamIndices, in queryFromSink() 293 std::vector<std::unique_ptr<C2Param>>* const heapParams) { in queryFromSink() 316 for (C2Param* const& stackParam : stackParams) { in queryFromSink() 324 for (const C2Param::Index& index : heapParamIndices) { in queryFromSink() 344 std::vector<C2Param*> paramPointers; in queryFromSink() 354 C2Param* paramPointer = *it; in queryFromSink() [all …]
|
D | types.cpp | 91 static_cast<C2Param::Index>(static_cast<uint32_t>(0)), 0, 0) { in C2ParamFieldBuilder() 95 static_cast<C2Param::Index>(static_cast<uint32_t>(s.index)), in C2ParamFieldBuilder() 574 std::vector<C2Param::Index> dDependencies; in objcpy() 580 C2Param::Index(static_cast<uint32_t>(s.index)), in objcpy() 617 C2Param::CoreIndex dIndex = C2Param::CoreIndex(static_cast<uint32_t>(s.type)); in objcpy() 796 if (!createParamsBlob(&d->meta, std::vector<C2Param*>{ &dRangeInfo })) { in objcpy() 831 if (!createParamsBlob(&d->meta, std::vector<C2Param*>{ &dRectInfo })) { in objcpy() 1191 const std::vector<C2Param*>& meta, in createLinearBuffer() 1221 const std::vector<C2Param*>& meta, in createGraphicBuffer() 1272 std::vector<C2Param*> sBlockMeta; in objcpy() [all …]
|
D | ComponentInterface.cpp | 54 const std::vector<C2Param*>& params, in config() 62 const std::vector<C2Param::Index>& indices, in query() 64 std::vector<std::unique_ptr<C2Param>>* const params in query()
|
D | InputSurface.cpp | 80 const std::vector<C2Param::Index> &indices, in query() 82 std::vector<std::unique_ptr<C2Param>>* const params in query() 88 const std::vector<C2Param*> ¶ms, in config()
|
/frameworks/av/media/codec2/sfplugin/tests/ |
D | ReflectedParamUpdater_test.cpp | 40 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> ¶m) { 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/codec2/hidl/services/ |
D | vendor.cpp | 77 const std::vector<C2Param*>& stackParams, in query_sm() 78 const std::vector<C2Param::Index>& heapParamIndices, in query_sm() 79 std::vector<std::unique_ptr<C2Param>>* const heapParams) const override { in query_sm() 84 const std::vector<C2Param*>& params, in config_sm()
|
/frameworks/av/media/codec2/hidl/1.0/utils/include/codec2/hidl/1.0/ |
D | types.h | 238 std::vector<C2Param*> *params, 252 const std::vector<C2Param*> ¶ms); 255 const std::vector<std::unique_ptr<C2Param>> ¶ms); 273 std::vector<std::unique_ptr<C2Param>>* params, 288 const std::vector<C2Param*>& params,
|
D | Configurable.h | 56 const std::vector<C2Param::Index> &indices, 58 std::vector<std::unique_ptr<C2Param>>* const params) const = 0; 61 const std::vector<C2Param*> ¶ms,
|