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()
209 if (desc->index().isVendor() && markVendor) { in addParamDesc()
212 mParamNames.emplace(desc->index(), paramName); in addParamDesc()
217 if (it != mWholeParams.end() && it->second.coreIndex() == desc->index().coreIndex()) { in addParamDesc()
218 mMap.emplace(paramName, FieldDesc{ desc, nullptr, 0 /* offset */ }); in addParamDesc()
223 addParamStructDesc(desc, paramName, 0 /* offset */, structDesc, reflector); in addParamDesc()
249 [&indices](const std::string &, const FieldDesc &desc, const void *, size_t) { in getParamIndicesFromMessage() argument
250 indices.insert(desc.paramDesc->index()); in getParamIndicesFromMessage()
270 const FieldDesc &desc = kv.second; in getParamIndicesForKeys() local
273 indices.insert(desc.paramDesc->index()); in getParamIndicesForKeys()
296 … [¶msMap](const std::string &name, const FieldDesc &desc, const void *ptr, size_t size) { in updateParamsFromMessage() argument
298 auto paramIt = paramsMap.find(desc.paramDesc->index()); in updateParamsFromMessage()
301 name.c_str(), (int32_t)desc.paramDesc->index()); in updateParamsFromMessage()
318 if (desc.fieldDesc) { in updateParamsFromMessage()
320 offset = sizeof(C2Param) + desc.offset in updateParamsFromMessage()
321 + _C2ParamInspector::GetOffset(*desc.fieldDesc); in updateParamsFromMessage()
325 if (!desc.fieldDesc /* whole param */ || desc.fieldDesc->extent() == 0) { in updateParamsFromMessage()
342 } else if (desc.fieldDesc->type() == C2FieldDescriptor::BLOB) { in updateParamsFromMessage()
344 if (desc.fieldDesc->extent() > size) { in updateParamsFromMessage()
346 desc.fieldDesc->extent() - size); in updateParamsFromMessage()
359 const FieldDesc &desc = kv.second; in parseMessageAndDoWork() local
366 if (!desc.fieldDesc) { in parseMessageAndDoWork()
370 if (tmpAsParam && tmpAsParam->type().type() == desc.paramDesc->index().type()) { in parseMessageAndDoWork()
371 work(name, desc, tmp->data(), tmp->size()); in parseMessageAndDoWork()
375 desc.paramDesc->index().type()); in parseMessageAndDoWork()
385 C2FieldDescriptor::type_t fieldType = desc.fieldDesc->type(); in parseMessageAndDoWork()
386 size_t fieldExtent = desc.fieldDesc->extent(); in parseMessageAndDoWork()
391 work(name, desc, &int32Value, sizeof(int32Value)); in parseMessageAndDoWork()
397 work(name, desc, &int32Value, sizeof(int32Value)); in parseMessageAndDoWork()
403 work(name, desc, &int32Value, sizeof(int32Value)); in parseMessageAndDoWork()
409 work(name, desc, &int64Value, sizeof(int64Value)); in parseMessageAndDoWork()
415 work(name, desc, &int64Value, sizeof(int64Value)); in parseMessageAndDoWork()
421 work(name, desc, &int64Value, sizeof(int64Value)); in parseMessageAndDoWork()
427 work(name, desc, &tmp, sizeof(tmp)); in parseMessageAndDoWork()
442 work(name, desc, tmp.c_str(), tmp.size() + 1); in parseMessageAndDoWork()
456 work(name, desc, tmp->data(), tmp->size()); in parseMessageAndDoWork()
490 const FieldDesc &desc = kv.second; in getParams() local
491 if (paramsMap.count(desc.paramDesc->index()) == 0) { in getParams()
494 C2Param *param = paramsMap[desc.paramDesc->index()]; in getParams()
498 if (!desc.fieldDesc) { in getParams()
505 size_t offset = sizeof(C2Param) + desc.offset in getParams()
506 + _C2ParamInspector::GetOffset(*desc.fieldDesc); in getParams()
508 C2FieldDescriptor::type_t fieldType = desc.fieldDesc->type(); in getParams()
511 size_t length = desc.fieldDesc->extent(); in getParams()
526 size_t length = desc.fieldDesc->extent(); in getParams()