Lines Matching refs:desc

119     for (const std::shared_ptr<C2ParamDescriptor> &desc : paramDescs) {  in addParamDesc()  local
121 desc->index().coreIndex()); in addParamDesc()
123 ALOGD("Could not describe %s", desc->name().c_str()); in addParamDesc()
126 addParamDesc(desc, *structDesc, reflector, true /* markVendor */); in addParamDesc()
130 for (const std::shared_ptr<C2ParamDescriptor> &desc : paramDescs) { in addParamDesc() local
131 if (!desc->index().isVendor()) { in addParamDesc()
135 desc->index().coreIndex()); in addParamDesc()
137 addParamDesc(desc, *structDesc, reflector, false /* markVendor */); in addParamDesc()
143 std::shared_ptr<C2ParamDescriptor> desc, in addParamStructDesc() argument
161 addParamStructDesc(desc, fieldName, offset + _C2ParamInspector::GetOffset(*it), in addParamStructDesc()
193 desc, in addParamStructDesc()
204 std::shared_ptr<C2ParamDescriptor> desc, const C2StructDescriptor &structDesc, in addParamDesc() argument
206 C2String paramName = desc->name(); in addParamDesc()
211 if (desc->index() & C2Param::CoreIndex::IS_REQUEST_FLAG) { in addParamDesc()
216 if (desc->index().isVendor() && markVendor) { in addParamDesc()
219 mParamNames.emplace(desc->index(), paramName); in addParamDesc()
224 if (it != mWholeParams.end() && it->second.coreIndex() == desc->index().coreIndex()) { in addParamDesc()
225 mMap.emplace(paramName, FieldDesc{ desc, nullptr, 0 /* offset */ }); in addParamDesc()
230 addParamStructDesc(desc, paramName, 0 /* offset */, structDesc, reflector); in addParamDesc()
256 [&indices](const std::string &, const FieldDesc &desc, const void *, size_t) { in getParamIndicesFromMessage() argument
257 indices.insert(desc.paramDesc->index()); in getParamIndicesFromMessage()
277 const FieldDesc &desc = kv.second; in getParamIndicesForKeys() local
280 indices.insert(desc.paramDesc->index()); in getParamIndicesForKeys()
303 … [&paramsMap](const std::string &name, const FieldDesc &desc, const void *ptr, size_t size) { in updateParamsFromMessage() argument
305 auto paramIt = paramsMap.find(desc.paramDesc->index()); in updateParamsFromMessage()
308 name.c_str(), (int32_t)desc.paramDesc->index()); in updateParamsFromMessage()
325 if (desc.fieldDesc) { in updateParamsFromMessage()
327 offset = sizeof(C2Param) + desc.offset in updateParamsFromMessage()
328 + _C2ParamInspector::GetOffset(*desc.fieldDesc); in updateParamsFromMessage()
332 if (!desc.fieldDesc /* whole param */ || desc.fieldDesc->extent() == 0) { in updateParamsFromMessage()
349 } else if (desc.fieldDesc->type() == C2FieldDescriptor::BLOB) { in updateParamsFromMessage()
351 if (desc.fieldDesc->extent() > size) { in updateParamsFromMessage()
353 desc.fieldDesc->extent() - size); in updateParamsFromMessage()
366 const FieldDesc &desc = kv.second; in parseMessageAndDoWork() local
373 if (!desc.fieldDesc) { in parseMessageAndDoWork()
377 if (tmpAsParam && tmpAsParam->type().type() == desc.paramDesc->index().type()) { in parseMessageAndDoWork()
378 work(name, desc, tmp->data(), tmp->size()); in parseMessageAndDoWork()
382 desc.paramDesc->index().type()); in parseMessageAndDoWork()
392 C2FieldDescriptor::type_t fieldType = desc.fieldDesc->type(); in parseMessageAndDoWork()
393 size_t fieldExtent = desc.fieldDesc->extent(); in parseMessageAndDoWork()
398 work(name, desc, &int32Value, sizeof(int32Value)); in parseMessageAndDoWork()
404 work(name, desc, &int32Value, sizeof(int32Value)); in parseMessageAndDoWork()
410 work(name, desc, &int32Value, sizeof(int32Value)); in parseMessageAndDoWork()
416 work(name, desc, &int64Value, sizeof(int64Value)); in parseMessageAndDoWork()
422 work(name, desc, &int64Value, sizeof(int64Value)); in parseMessageAndDoWork()
428 work(name, desc, &int64Value, sizeof(int64Value)); in parseMessageAndDoWork()
434 work(name, desc, &tmp, sizeof(tmp)); in parseMessageAndDoWork()
449 work(name, desc, tmp.c_str(), tmp.size() + 1); in parseMessageAndDoWork()
463 work(name, desc, tmp->data(), tmp->size()); in parseMessageAndDoWork()
497 const FieldDesc &desc = kv.second; in getParams() local
498 if (paramsMap.count(desc.paramDesc->index()) == 0) { in getParams()
501 C2Param *param = paramsMap[desc.paramDesc->index()]; in getParams()
505 if (!desc.fieldDesc) { in getParams()
512 size_t offset = sizeof(C2Param) + desc.offset in getParams()
513 + _C2ParamInspector::GetOffset(*desc.fieldDesc); in getParams()
515 C2FieldDescriptor::type_t fieldType = desc.fieldDesc->type(); in getParams()
518 size_t length = desc.fieldDesc->extent(); in getParams()
533 size_t length = desc.fieldDesc->extent(); in getParams()