/drivers/peripheral/codec/test/demo/idl/src/ |
H A D | codec_hdi_encode.cpp | 168 int32_t CodecHdiEncode::CheckSupportBufferType(PortIndex portIndex, CodecBufferType codecBufferType) in CheckSupportBufferType() argument 176 param.portIndex = static_cast<uint32_t>(portIndex); in CheckSupportBufferType() 180 HDF_LOGE("%{public}s failed get parameter with portIndex %{public}d and ret %{public}d ", in CheckSupportBufferType() 181 __func__, portIndex, err); in CheckSupportBufferType() 214 param.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_OUTPUT); in CheckAndUseBufferHandle() 228 param.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_INPUT); in CheckAndUseBufferHandle() 241 usage.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_INPUT); in CheckAndUseBufferHandle() 254 type.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_INPUT); in CheckAndUseBufferHandle() 311 int32_t CodecHdiEncode::UseBufferOnPort(PortIndex portIndex) in UseBufferOnPort() argument 369 UseDMABuffer(PortIndex portIndex, int bufferCount, int bufferSize) UseDMABuffer() argument 413 UseBufferOnPort(PortIndex portIndex, int bufferCount, int bufferSize) UseBufferOnPort() argument [all...] |
H A D | codec_hdi_decode.cpp | 284 int32_t CodecHdiDecode::CheckSupportBufferType(PortIndex portIndex, CodecBufferType codecBufferType) in CheckSupportBufferType() argument 292 param.portIndex = static_cast<uint32_t>(portIndex); in CheckSupportBufferType() 297 HDF_LOGE("%{public}s failed get parameter with portIndex %{public}d and ret %{public}d ", in CheckSupportBufferType() 298 __func__, portIndex, err); in CheckSupportBufferType() 326 param.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_INPUT); in CheckAndUseBufferHandle() 339 param.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_OUTPUT); in CheckAndUseBufferHandle() 352 usage.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_OUTPUT); in CheckAndUseBufferHandle() 365 type.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_OUTPUT); in CheckAndUseBufferHandle() 415 int32_t CodecHdiDecode::UseBufferOnPort(PortIndex portIndex, in argument 470 UseBufferOnPort(PortIndex portIndex) UseBufferOnPort() argument 522 UseDMABuffer(PortIndex portIndex, int bufferCount, int bufferSize) UseDMABuffer() argument [all...] |
/drivers/peripheral/codec/test/demo/idl/include/ |
H A D | codec_hdi_decode.h | 49 PortIndex portIndex; member 55 portIndex = PortIndex::PORT_INDEX_INPUT; in BufferInfo() 70 portIndex = PortIndex::PORT_INDEX_INPUT; in ~BufferInfo() 100 int32_t UseBufferOnPort(PortIndex portIndex); 101 int32_t UseBufferOnPort(PortIndex portIndex, int bufferCount, int bufferSize); 106 int32_t UseDMABuffer(PortIndex portIndex, int bufferCount, int bufferSize); 108 int32_t CheckSupportBufferType(PortIndex portIndex, CodecBufferType codecBufferType);
|
H A D | codec_hdi_encode.h | 50 PortIndex portIndex; member 55 portIndex = PortIndex::PORT_INDEX_INPUT; in BufferInfo() 66 portIndex = PortIndex::PORT_INDEX_INPUT; in ~BufferInfo() 79 int32_t UseBufferOnPort(PortIndex portIndex); 93 int32_t UseBufferOnPort(PortIndex portIndex, int bufferCount, int bufferSize); 98 int32_t CheckSupportBufferType(PortIndex portIndex, CodecBufferType codecBufferType); 100 int32_t UseDMABuffer(PortIndex portIndex, int bufferCount, int bufferSize);
|
/drivers/peripheral/codec/hal/src/ |
H A D | codec_component_type_service.c | 162 uint32_t portIndex, struct OmxCodecBuffer *buffer) in CodecComponentTypeUseBuffer() 164 CODEC_LOGI("service impl, portIndex: [%{public}d]!", portIndex); in CodecComponentTypeUseBuffer() 171 return OmxAdapterUseBuffer(service->codecNode, portIndex, buffer); in CodecComponentTypeUseBuffer() 175 uint32_t portIndex, struct OmxCodecBuffer *buffer) in CodecComponentTypeAllocateBuffer() 177 CODEC_LOGI("service impl, portIndex: [%{public}d]!", portIndex); in CodecComponentTypeAllocateBuffer() 184 return OmxAdapterAllocateBuffer(service->codecNode, portIndex, buffer); in CodecComponentTypeAllocateBuffer() 187 static int32_t CodecComponentTypeFreeBuffer(struct CodecComponentType *self, uint32_t portIndex, in CodecComponentTypeFreeBuffer() argument 190 CODEC_LOGI("service impl, portIndex in CodecComponentTypeFreeBuffer() 161 CodecComponentTypeUseBuffer(struct CodecComponentType *self, uint32_t portIndex, struct OmxCodecBuffer *buffer) CodecComponentTypeUseBuffer() argument 174 CodecComponentTypeAllocateBuffer(struct CodecComponentType *self, uint32_t portIndex, struct OmxCodecBuffer *buffer) CodecComponentTypeAllocateBuffer() argument 248 CodecComponentTypeUseEglImage(struct CodecComponentType *self, struct OmxCodecBuffer *buffer, uint32_t portIndex, int8_t *eglImage, uint32_t eglImageLen) CodecComponentTypeUseEglImage() argument [all...] |
H A D | codec_component_type_stub.c | 446 uint32_t portIndex = 0; in SerStubUseBuffer() local 449 if (!HdfSbufReadUint32(data, &portIndex)) { in SerStubUseBuffer() 450 CODEC_LOGE("read &portIndex failed!"); in SerStubUseBuffer() 460 ret = serviceImpl->UseBuffer(serviceImpl, portIndex, &buffer); in SerStubUseBuffer() 488 uint32_t portIndex = 0; in SerStubAllocateBuffer() local 491 if (!HdfSbufReadUint32(data, &portIndex)) { in SerStubAllocateBuffer() 492 CODEC_LOGE("read &portIndex failed!"); in SerStubAllocateBuffer() 502 ret = serviceImpl->AllocateBuffer(serviceImpl, portIndex, &buffer); in SerStubAllocateBuffer() 525 uint32_t portIndex = 0; in SerStubFreeBuffer() local 528 if (!HdfSbufReadUint32(data, &portIndex)) { in SerStubFreeBuffer() 666 uint32_t portIndex = 0; SerStubUseEglImage() local [all...] |
H A D | codec_adapter.cpp | 184 int32_t OmxAdapterUseBuffer(struct CodecComponentNode *codecNode, uint32_t portIndex, struct OmxCodecBuffer *omxBuffer) in OmxAdapterUseBuffer() argument 191 return codecNode->node->UseBuffer(portIndex, *omxBuffer); in OmxAdapterUseBuffer() 194 int32_t OmxAdapterAllocateBuffer(struct CodecComponentNode *codecNode, uint32_t portIndex, in OmxAdapterAllocateBuffer() argument 202 return codecNode->node->AllocateBuffer(portIndex, *omxBuffer); in OmxAdapterAllocateBuffer() 205 int32_t OmxAdapterFreeBuffer(struct CodecComponentNode *codecNode, uint32_t portIndex, struct OmxCodecBuffer *omxBuffer) in OmxAdapterFreeBuffer() argument 212 int32_t ret = codecNode->node->FreeBuffer(portIndex, *omxBuffer); in OmxAdapterFreeBuffer() 255 int32_t OmxAdapterUseEglImage(struct CodecComponentNode *codecNode, struct OmxCodecBuffer *buffer, uint32_t portIndex, in OmxAdapterUseEglImage() argument 262 return codecNode->node->UseEglImage(*buffer, portIndex, eglImage, eglImageLen); in OmxAdapterUseEglImage()
|
/drivers/peripheral/codec/interfaces/include/ |
H A D | codec_omx_ext.h | 127 uint32_t portIndex; /** Port index */ member 137 uint32_t portIndex; /** Port index */ member 147 uint32_t portIndex; /** Port index */ member 157 uint32_t portIndex; /** Port index */ member 170 uint32_t portIndex; /** Port index */ member 315 uint32_t portIndex; /** Port index */ member 329 uint32_t portIndex; /** Port index */ member 346 uint32_t portIndex; /** Port index */ member
|
H A D | codec_component_if.h | 239 * @param portIndex Indicates the port of the component. 247 int32_t (*UseBuffer)(struct CodecComponentType *self, uint32_t portIndex, struct OmxCodecBuffer *buffer); 259 * @param portIndex Indicates the port of the component. 267 int32_t (*AllocateBuffer)(struct CodecComponentType *self, uint32_t portIndex, struct OmxCodecBuffer *buffer); 279 * @param portIndex Indicates the port of the component. 287 int32_t (*FreeBuffer)(struct CodecComponentType *self, uint32_t portIndex, const struct OmxCodecBuffer *buffer); 362 * @param portIndex Indicates the port of the component. 371 int32_t (*UseEglImage)(struct CodecComponentType *self, struct OmxCodecBuffer *buffer, uint32_t portIndex,
|
/drivers/peripheral/codec/test/demo/v2.0/src/ |
H A D | codec_hdi_decode.cpp | 249 param.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_INPUT); in CheckAndUseBufferHandle() 260 param.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_OUTPUT); in CheckAndUseBufferHandle() 271 usage.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_OUTPUT); in CheckAndUseBufferHandle() 281 type.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_OUTPUT); in CheckAndUseBufferHandle() 326 int32_t CodecHdiDecode::UseBufferOnPort(PortIndex portIndex, int bufferCount, int bufferSize) in UseBufferOnPort() argument 345 if (portIndex == PortIndex::PORT_INDEX_INPUT) { in UseBufferOnPort() 352 auto err = client_->UseBuffer(client_, static_cast<uint32_t>(portIndex), omxBuffer.get()); in UseBufferOnPort() 354 HDF_LOGE("%{public}s failed to UseBuffer with portIndex[%{public}d]", __func__, portIndex); in UseBufferOnPort() 366 bufferInfo->portIndex in UseBufferOnPort() 378 UseBufferOnPort(PortIndex portIndex) UseBufferOnPort() argument [all...] |
H A D | codec_hdi_encode.cpp | 171 param.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_OUTPUT); in CheckAndUseBufferHandle() 182 param.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_INPUT); in CheckAndUseBufferHandle() 193 usage.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_INPUT); in CheckAndUseBufferHandle() 204 type.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_INPUT); in CheckAndUseBufferHandle() 257 int32_t CodecHdiEncode::UseBufferOnPort(PortIndex portIndex) in UseBufferOnPort() argument 265 param.nPortIndex = static_cast<uint32_t>(portIndex); in UseBufferOnPort() 269 HDF_LOGE("%{public}s failed to GetParameter with OMX_IndexParamPortDefinition : portIndex[%{public}d]", in UseBufferOnPort() 270 __func__, portIndex); in UseBufferOnPort() 279 param.nPortIndex = static_cast<uint32_t>(portIndex); in UseBufferOnPort() 284 if (portIndex in UseBufferOnPort() 309 UseBufferOnPort(PortIndex portIndex, int bufferCount, int bufferSize) UseBufferOnPort() argument [all...] |
/drivers/peripheral/codec/test/demo/v2.0/include/ |
H A D | codec_hdi_encode.h | 44 PortIndex portIndex; member 49 portIndex = PortIndex::PORT_INDEX_INPUT; in BufferInfo() 60 portIndex = PortIndex::PORT_INDEX_INPUT; in ~BufferInfo() 72 int32_t UseBufferOnPort(PortIndex portIndex); 113 int32_t UseBufferOnPort(PortIndex portIndex, int bufferCount, int bufferSize);
|
H A D | codec_hdi_decode.h | 43 PortIndex portIndex; member 49 portIndex = PortIndex::PORT_INDEX_INPUT; in BufferInfo() 64 portIndex = PortIndex::PORT_INDEX_INPUT; in ~BufferInfo() 117 int32_t UseBufferOnPort(PortIndex portIndex); 118 int32_t UseBufferOnPort(PortIndex portIndex, int bufferCount, int bufferSize);
|
/drivers/peripheral/codec/hal/idl_service/include/ |
H A D | codec_component_service.h | 45 int32_t UseBuffer(uint32_t portIndex, const OmxCodecBuffer &inBuffer, OmxCodecBuffer &outBuffer) override; 46 int32_t AllocateBuffer(uint32_t portIndex, const OmxCodecBuffer &inBuffer, OmxCodecBuffer &outBuffer) override; 47 int32_t FreeBuffer(uint32_t portIndex, const OmxCodecBuffer &buffer) override; 52 int32_t UseEglImage(uint32_t portIndex, const OmxCodecBuffer &inBuffer, OmxCodecBuffer &outBuffer,
|
H A D | component_node.h | 55 int32_t UseBuffer(uint32_t portIndex, OmxCodecBuffer &buffer); 56 int32_t AllocateBuffer(uint32_t portIndex, OmxCodecBuffer &buffer); 57 int32_t FreeBuffer(uint32_t portIndex, const OmxCodecBuffer &buffer); 61 int32_t UseEglImage(struct OmxCodecBuffer &buffer, uint32_t portIndex, const int8_t *eglImage); 78 int32_t UseBufferByType(uint32_t portIndex, OmxCodecBuffer &buffer,
|
/drivers/peripheral/codec/hal/include/ |
H A D | codec_adapter_interface.h | 74 int32_t OmxAdapterUseBuffer(struct CodecComponentNode *codecNode, uint32_t portIndex, 79 int32_t OmxAdapterAllocateBuffer(struct CodecComponentNode *codecNode, uint32_t portIndex, 84 int32_t OmxAdapterFreeBuffer(struct CodecComponentNode *codecNode, uint32_t portIndex, 107 uint32_t portIndex, int8_t *eglImage, uint32_t eglImageLen);
|
/drivers/peripheral/codec/hal/idl_service/src/ |
H A D | codec_component_service.cpp | 216 int32_t CodecComponentService::UseBuffer(uint32_t portIndex, const OmxCodecBuffer &inBuffer, OmxCodecBuffer &outBuffer) in UseBuffer() argument 219 CODEC_LOGD("portIndex: [%{public}d]", portIndex); in UseBuffer() 236 return node_->UseBuffer(portIndex, outBuffer); in UseBuffer() 239 int32_t CodecComponentService::AllocateBuffer(uint32_t portIndex, const OmxCodecBuffer &inBuffer, in AllocateBuffer() argument 243 CODEC_LOGD("portIndex: [%{public}d]", portIndex); in AllocateBuffer() 245 return node_->AllocateBuffer(portIndex, outBuffer); in AllocateBuffer() 248 int32_t CodecComponentService::FreeBuffer(uint32_t portIndex, const OmxCodecBuffer &buffer) in FreeBuffer() argument 252 CODEC_LOGD("portIndex in FreeBuffer() 310 UseEglImage(uint32_t portIndex, const OmxCodecBuffer &inBuffer, OmxCodecBuffer &outBuffer, const std::vector<int8_t> &eglImage) UseEglImage() argument [all...] |
H A D | component_node.cpp | 313 int32_t ComponentNode::UseEglImage(struct OmxCodecBuffer &buffer, uint32_t portIndex, const int8_t *eglImage) in UseEglImage() argument 317 auto err = OMX_UseEGLImage(comp_, &pBufferHdrType, portIndex, 0, const_cast<int8_t *>(eglImage)); in UseEglImage() 415 int32_t ComponentNode::UseBuffer(uint32_t portIndex, OmxCodecBuffer &buffer) in UseBuffer() argument 429 err = UseBufferByType(portIndex, buffer, codecBuffer, bufferHdrType); in UseBuffer() 443 bufferHeaderPortMap_.emplace(std::make_pair(bufferHdrType, portIndex)); in UseBuffer() 444 portIndexMap_.emplace(std::make_pair(bufferHdrType, portIndex)); in UseBuffer() 449 int32_t ComponentNode::AllocateBuffer(uint32_t portIndex, OmxCodecBuffer &buffer) in AllocateBuffer() argument 455 &bufferHdrType, portIndex, &priv, buffer.allocLen); in AllocateBuffer() 465 (void)OMX_FreeBuffer(static_cast<OMX_HANDLETYPE>(comp_), portIndex, bufferHdrType); in AllocateBuffer() local 476 bufferHeaderPortMap_.emplace(std::make_pair(bufferHdrType, portIndex)); in AllocateBuffer() 482 FreeBuffer(uint32_t portIndex, const OmxCodecBuffer &buffer) FreeBuffer() argument 588 UseBufferByType(uint32_t portIndex, OmxCodecBuffer &buffer, sptr<ICodecBuffer> codecBuffer, OMX_BUFFERHEADERTYPE *&bufferHdrType) UseBufferByType() argument [all...] |
/drivers/peripheral/codec/test/fuzztest/hdi_fuzzer/codecuseeglimagehdi_fuzzer/ |
H A D | codecuseeglimage_fuzzer.cpp | 23 uint32_t portIndex; member 58 int32_t ret = g_component->UseEglImage(params.portIndex, inbuffer, outbuffer, eglImage); in CodecUseEglImage()
|
/drivers/peripheral/codec/test/fuzztest/omx_fuzzer/codecuseeglimageomx_fuzzer/ |
H A D | codecuseeglimage_fuzzer.cpp | 23 uint32_t portIndex; member 51 int32_t ret = g_component->UseEglImage(g_component, &buffer, params.portIndex, params.eglImage, in CodecUseEglImage()
|
/drivers/peripheral/audio/hal/hdi_passthrough/src/ |
H A D | audio_adapter_info_common.c | 206 int32_t InitPortForCapabilitySub(struct AudioPort portIndex, struct AudioPortCapability *capabilityIndex) in InitPortForCapabilitySub() argument 212 if (portIndex.portId == 0 || (portIndex.portId > 1 && portIndex.portId <= AUDIO_PRIMARY_ID_MAX)) { in InitPortForCapabilitySub() 215 } else if (portIndex.portId == 1 || in InitPortForCapabilitySub() 216 (portIndex.portId >= AUDIO_USB_ID_MIN && portIndex.portId <= AUDIO_USB_ID_MAX)) { in InitPortForCapabilitySub() 219 } else if (portIndex.portId >= AUDIO_PRIMARY_EXT_ID_MIN && portIndex.portId <= AUDIO_PRIMARY_EXT_ID_MAX) { in InitPortForCapabilitySub() 221 } else if (portIndex in InitPortForCapabilitySub() [all...] |
/drivers/peripheral/audio/hdi_service/primary_impl/src/ |
H A D | audio_adapter_info_common.c | 193 int32_t InitPortForCapabilitySub(struct AudioPort portIndex, struct AudioPortCapability *capabilityIndex) in InitPortForCapabilitySub() argument 199 if (portIndex.portId == 0 || (portIndex.portId > 1 && portIndex.portId <= AUDIO_PRIMARY_ID_MAX)) { in InitPortForCapabilitySub() 202 } else if (portIndex.portId == 1 || in InitPortForCapabilitySub() 203 (portIndex.portId >= AUDIO_USB_ID_MIN && portIndex.portId <= AUDIO_USB_ID_MAX)) { in InitPortForCapabilitySub() 206 } else if (portIndex.portId >= AUDIO_PRIMARY_EXT_ID_MIN && portIndex.portId <= AUDIO_PRIMARY_EXT_ID_MAX) { in InitPortForCapabilitySub() 208 } else if (portIndex in InitPortForCapabilitySub() [all...] |
/drivers/peripheral/codec/hal/v2.0/hdi_impl/include/ |
H A D | component_node.h | 59 int32_t UseBuffer(uint32_t portIndex, struct OmxCodecBuffer &buffer); 61 int32_t AllocateBuffer(uint32_t portIndex, struct OmxCodecBuffer &buffer); 63 int32_t FreeBuffer(uint32_t portIndex, struct OmxCodecBuffer &buffer); 71 int32_t UseEglImage(struct OmxCodecBuffer &buffer, uint32_t portIndex, int8_t *eglImage, uint32_t eglImageLen);
|
/drivers/peripheral/codec/hal/v2.0/hdi_impl/src/ |
H A D | component_node.cpp | 208 int32_t ComponentNode::UseEglImage(struct OmxCodecBuffer &buffer, uint32_t portIndex, int8_t *eglImage, in UseEglImage() argument 213 auto err = OMX_UseEGLImage(comp_, &pBufferHdrType, portIndex, nullptr, eglImage); in UseEglImage() 319 int32_t ComponentNode::UseBuffer(uint32_t portIndex, struct OmxCodecBuffer &buffer) in UseBuffer() argument 338 err = OMX_AllocateBuffer(static_cast<OMX_HANDLETYPE>(comp_), &bufferHdrType, portIndex, 0, buffer.allocLen); in UseBuffer() 340 err = OMX_UseBuffer(static_cast<OMX_HANDLETYPE>(comp_), &bufferHdrType, portIndex, 0, buffer.allocLen, in UseBuffer() 357 bufferHeaderPortMap_.emplace(std::make_pair(bufferHdrType, portIndex)); in UseBuffer() 362 int32_t ComponentNode::AllocateBuffer(uint32_t portIndex, struct OmxCodecBuffer &buffer) in AllocateBuffer() argument 369 int32_t err = OMX_AllocateBuffer(static_cast<OMX_HANDLETYPE>(comp_), &bufferHdrType, portIndex, 0, buffer.allocLen); in AllocateBuffer() 379 (void)OMX_FreeBuffer(static_cast<OMX_HANDLETYPE>(comp_), portIndex, bufferHdrType); in AllocateBuffer() local 389 bufferHeaderPortMap_.emplace(std::make_pair(bufferHdrType, portIndex)); in AllocateBuffer() 394 FreeBuffer(uint32_t portIndex, struct OmxCodecBuffer &buffer) FreeBuffer() argument [all...] |
/drivers/peripheral/bluetooth/audio/hal/hdi_binder/proxy/src/ |
H A D | audio_proxy_adapter.cpp | 161 int32_t InitForGetPortCapability(struct AudioPort portIndex, struct AudioPortCapability *capabilityIndex) in InitForGetPortCapability() argument 168 if (portIndex.dir != PORT_OUT) { in InitForGetPortCapability() 174 if (portIndex.portId == 0) { in InitForGetPortCapability() 178 capabilityIndex->deviceType = portIndex.dir; in InitForGetPortCapability() 191 capabilityIndex->subPorts->portId = portIndex.portId; in InitForGetPortCapability() 192 capabilityIndex->subPorts->desc = portIndex.portName; in InitForGetPortCapability() 196 if (portIndex.portId == 1) { in InitForGetPortCapability() 200 capabilityIndex->deviceType = portIndex.dir; in InitForGetPortCapability() 207 if (portIndex.portId == HDMI_PORT_ID) { in InitForGetPortCapability() 208 return HdmiPortInit(portIndex, capabilityInde in InitForGetPortCapability() [all...] |