/hardware/google/av/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()
|
/hardware/google/av/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);
|
/hardware/google/av/media/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; 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 …]
|
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;
|
D | ReflectedParamUpdater.cpp | 156 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/ |
D | C2Param.h | 93 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 …]
|
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 …]
|
/hardware/google/av/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()
|
/hardware/google/av/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()
|
/hardware/google/av/codec2/hidl/services/ |
D | vendor.cpp | 72 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/ |
D | ConfigurableC2Intf.h | 50 const std::vector<C2Param::Index> &indices, 52 std::vector<std::unique_ptr<C2Param>>* const params) const = 0; 55 const std::vector<C2Param*> ¶ms,
|
D | types.h | 229 std::vector<C2Param*> *params, 242 const std::vector<C2Param*> ¶ms); 245 const std::vector<std::unique_ptr<C2Param>> ¶ms); 262 std::vector<std::unique_ptr<C2Param>>* params, 273 const std::vector<C2Param*>& params,
|
/hardware/google/av/media/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 …]
|
/hardware/google/av/codec2/hidl/1.0/utils/ |
D | types.cpp | 83 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 …]
|
D | InputSurfaceConnection.cpp | 238 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()
|
D | Configurable.cpp | 57 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/ |
D | types.hal | 76 * 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/ |
D | media_c2_hidl_test_common.cpp | 90 std::vector<std::unique_ptr<C2Param>> updates = in workDone() 92 std::vector<C2Param*> configParam; in workDone() 95 C2Param* param = updates[i].get(); in workDone()
|