/drivers/peripheral/codec/interfaces/include/ |
D | codec_omx_ext.h | 110 uint32_t portIndex; /** Port index */ member 120 uint32_t portIndex; /** Port index */ member 130 uint32_t portIndex; /** Port index */ member 140 uint32_t portIndex; /** Port index */ member 153 uint32_t portIndex; /** Port index */ member 218 uint32_t portIndex; /** Port index */ member 232 uint32_t portIndex; /** Port index */ member 294 uint32_t portIndex; /** Port index */ member
|
D | codec_component_if.h | 247 …int32_t (*UseBuffer)(struct CodecComponentType *self, uint32_t portIndex, struct OmxCodecBuffer *b… 267 …int32_t (*AllocateBuffer)(struct CodecComponentType *self, uint32_t portIndex, struct OmxCodecBuff… 287 …int32_t (*FreeBuffer)(struct CodecComponentType *self, uint32_t portIndex, const struct OmxCodecBu… 371 … (*UseEglImage)(struct CodecComponentType *self, struct OmxCodecBuffer *buffer, uint32_t portIndex,
|
/drivers/peripheral/codec/hal/idl_service/src/ |
D | codec_component_service.cpp | 118 int32_t CodecComponentService::UseBuffer(uint32_t portIndex, const OmxCodecBuffer &inBuffer, OmxCod… in UseBuffer() argument 120 CODEC_LOGI("portIndex: [%{public}d]", portIndex); in UseBuffer() 122 return node_->UseBuffer(portIndex, outBuffer); in UseBuffer() 125 int32_t CodecComponentService::AllocateBuffer(uint32_t portIndex, const OmxCodecBuffer &inBuffer, in AllocateBuffer() argument 128 CODEC_LOGI("portIndex: [%{public}d]", portIndex); in AllocateBuffer() 130 return node_->AllocateBuffer(portIndex, outBuffer); in AllocateBuffer() 133 int32_t CodecComponentService::FreeBuffer(uint32_t portIndex, const OmxCodecBuffer &buffer) in FreeBuffer() argument 135 CODEC_LOGI("portIndex: [%{public}d], bufferId: [%{public}d]", portIndex, buffer.bufferId); in FreeBuffer() 136 int32_t ret = node_->FreeBuffer(portIndex, buffer); in FreeBuffer() 164 int32_t CodecComponentService::UseEglImage(uint32_t portIndex, const OmxCodecBuffer &inBuffer, in UseEglImage() argument [all …]
|
/drivers/peripheral/codec/hal/src/ |
D | codec_component_type_service.c | 126 uint32_t portIndex, struct OmxCodecBuffer *buffer) in CodecComponentTypeUseBuffer() argument 128 CODEC_LOGI("service impl, portIndex: [%{public}d]!", portIndex); in CodecComponentTypeUseBuffer() 131 return OmxAdapterUseBuffer(service->codecNode, portIndex, buffer); in CodecComponentTypeUseBuffer() 135 uint32_t portIndex, struct OmxCodecBuffer *buffer) in CodecComponentTypeAllocateBuffer() argument 137 CODEC_LOGI("service impl, portIndex: [%{public}d]!", portIndex); in CodecComponentTypeAllocateBuffer() 140 return OmxAdapterAllocateBuffer(service->codecNode, portIndex, buffer); in CodecComponentTypeAllocateBuffer() 143 static int32_t CodecComponentTypeFreeBuffer(struct CodecComponentType *self, uint32_t portIndex, in CodecComponentTypeFreeBuffer() argument 147 portIndex, buffer->bufferId); in CodecComponentTypeFreeBuffer() 150 return OmxAdapterFreeBuffer(service->codecNode, portIndex, (struct OmxCodecBuffer *)buffer); in CodecComponentTypeFreeBuffer() 185 struct OmxCodecBuffer *buffer, uint32_t portIndex, int8_t *eglImage, uint32_t eglImageLen) in CodecComponentTypeUseEglImage() argument [all …]
|
/drivers/peripheral/codec/hal/passthrough/adapter/src/ |
D | component_node.cpp | 290 int32_t ComponentNode::UseEglImage(OmxCodecBuffer &buffer, uint32_t portIndex, int8_t *eglImage, ui… in UseEglImage() argument 400 int32_t ComponentNode::UseBuffer(uint32_t portIndex, OmxCodecBuffer &buffer) in UseBuffer() argument 402 if (comp_ == nullptr || portIndex > OUTPUT_PORTINDEX) { in UseBuffer() 403 …%{public}s error, comp_ is null or portIndex[%{public}d] > OUTPUT_PORTINDEX", __func__, portIndex); in UseBuffer() 412 if (portIndex == OUTPUT_PORTINDEX) { in UseBuffer() 415 int32_t ret = SetPortMode(portIndex, buffer, mode); in UseBuffer() 429 if (portIndex == INPUT_PORTINDEX) { in UseBuffer() 436 } else if (portIndex == OUTPUT_PORTINDEX) { in UseBuffer() 449 int32_t ComponentNode::AllocateBuffer(uint32_t portIndex, OmxCodecBuffer &buffer) in AllocateBuffer() argument 451 if (comp_ == nullptr || portIndex > OUTPUT_PORTINDEX) { in AllocateBuffer() [all …]
|
/drivers/peripheral/codec/hal/passthrough/adapter/include/ |
D | component_node.h | 41 int32_t UseBuffer(uint32_t portIndex, OmxCodecBuffer &buffer); 42 int32_t AllocateBuffer(uint32_t portIndex, OmxCodecBuffer &buffer); 43 int32_t FreeBuffer(uint32_t portIndex, const OmxCodecBuffer &buffer); 47 …int32_t UseEglImage(OmxCodecBuffer &buffer, uint32_t portIndex, int8_t *eglImage, uint32_t eglImag… 63 int32_t SetPortMode(uint32_t portIndex, OmxCodecBuffer &buffer, AllocateBufferMode mode);
|
/drivers/peripheral/codec/test/demo/adapter/include/ |
D | codec_hdi_adapter_decode.h | 45 PortIndex portIndex; member 51 portIndex = PortIndex::PORT_INDEX_INPUT; in BufferInfo() 62 portIndex = PortIndex::PORT_INDEX_INPUT; in ~BufferInfo() 110 int32_t UseBufferOnPort(PortIndex portIndex); 111 int32_t UseBufferOnPort(PortIndex portIndex, int bufferCount, int bufferSize);
|
D | codec_hdi_adapter_encode.h | 49 PortIndex portIndex; member 54 portIndex = PortIndex::PORT_INDEX_INPUT; in BufferInfo() 65 portIndex = PortIndex::PORT_INDEX_INPUT; in ~BufferInfo() 77 int32_t UseBufferOnPort(PortIndex portIndex); 117 int32_t UseBufferOnPort(PortIndex portIndex, int bufferCount, int bufferSize);
|
/drivers/peripheral/codec/test/demo/idl/include/ |
D | codec_hdi_encode.h | 48 PortIndex portIndex; member 53 portIndex = PortIndex::PORT_INDEX_INPUT; in BufferInfo() 64 portIndex = PortIndex::PORT_INDEX_INPUT; in ~BufferInfo() 77 int32_t UseBufferOnPort(PortIndex portIndex); 91 int32_t UseBufferOnPort(PortIndex portIndex, int bufferCount, int bufferSize);
|
D | codec_hdi_decode.h | 47 PortIndex portIndex; member 53 portIndex = PortIndex::PORT_INDEX_INPUT; in BufferInfo() 68 portIndex = PortIndex::PORT_INDEX_INPUT; in ~BufferInfo() 98 int32_t UseBufferOnPort(PortIndex portIndex); 99 int32_t UseBufferOnPort(PortIndex portIndex, int bufferCount, int bufferSize);
|
/drivers/peripheral/codec/test/demo/v2.0/include/ |
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);
|
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/test/demo/idl/src/ |
D | codec_hdi_encode.cpp | 182 usage.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_INPUT); in CheckAndUseBufferHandle() 195 type.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_INPUT); in CheckAndUseBufferHandle() 212 param.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_OUTPUT); in GetParameterSupportBufferType() 225 param.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_INPUT); in GetParameterSupportBufferType() 282 int32_t CodecHdiEncode::UseBufferOnPort(PortIndex portIndex) in UseBufferOnPort() argument 284 HDF_LOGI("%{public}s enter, portIndex = %{public}d", __func__, portIndex); in UseBufferOnPort() 293 param.nPortIndex = static_cast<uint32_t>(portIndex); in UseBufferOnPort() 299 __func__, portIndex); in UseBufferOnPort() 309 portIndex, bufferSize, bufferCount, portEnable, err); in UseBufferOnPort() 310 if (portIndex == PortIndex::PORT_INDEX_INPUT) { in UseBufferOnPort() [all …]
|
D | codec_hdi_decode.cpp | 297 usage.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_OUTPUT); in CheckAndUseBufferHandle() 310 type.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_OUTPUT); in CheckAndUseBufferHandle() 327 param.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_INPUT); in GetParameterSupportBufferType() 339 param.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_OUTPUT); in GetParameterSupportBufferType() 389 int32_t CodecHdiDecode::UseBufferOnPort(PortIndex portIndex, int bufferCount, int bufferSize) in UseBufferOnPort() argument 409 if (portIndex == PortIndex::PORT_INDEX_INPUT) { in UseBufferOnPort() 417 … auto err = client_->UseBuffer(static_cast<uint32_t>(portIndex), *omxBuffer.get(), outBuffer); in UseBufferOnPort() 419 … HDF_LOGE("%{public}s failed to UseBuffer with portIndex[%{public}d]", __func__, portIndex); in UseBufferOnPort() 432 bufferInfo->portIndex = portIndex; in UseBufferOnPort() 434 if (portIndex == PortIndex::PORT_INDEX_INPUT) { in UseBufferOnPort() [all …]
|
/drivers/peripheral/codec/test/demo/v2.0/src/ |
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 = portIndex; in UseBufferOnPort() 368 if (portIndex == PortIndex::PORT_INDEX_INPUT) { in UseBufferOnPort() [all …]
|
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() 270 __func__, portIndex); in UseBufferOnPort() 279 param.nPortIndex = static_cast<uint32_t>(portIndex); in UseBufferOnPort() 284 if (portIndex == PortIndex::PORT_INDEX_INPUT) { in UseBufferOnPort() 290 if (useBufferHandle_ && portIndex == PortIndex::PORT_INDEX_INPUT) { in UseBufferOnPort() [all …]
|
/drivers/peripheral/codec/hal/include/ |
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/passthrough/include/ |
D | codec_adapter_if.h | 69 … const struct CodecComponentNode *codecNode, uint32_t portIndex, struct OmxCodecBuffer *omxBuffer); 71 … const struct CodecComponentNode *codecNode, uint32_t portIndex, struct OmxCodecBuffer *omxBuffer); 73 …const struct CodecComponentNode *codecNode, uint32_t portIndex, const struct OmxCodecBuffer *omxBu… 80 uint32_t portIndex, int8_t *eglImage, uint32_t eglImageLen);
|
/drivers/peripheral/audio/hal/hdi_passthrough/src/ |
D | audio_adapter_info_common.c | 206 int32_t InitPortForCapabilitySub(struct AudioPort portIndex, struct AudioPortCapability *capability… 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_I… in InitPortForCapabilitySub() 221 } else if (portIndex.portId >= AUDIO_HDMI_ID_MIN && portIndex.portId <= AUDIO_HDMI_ID_MAX) { in InitPortForCapabilitySub() 231 capabilityIndex->deviceType = portIndex.dir; in InitPortForCapabilitySub() 241 capabilityIndex->subPorts->portId = portIndex.portId; in InitPortForCapabilitySub() 242 capabilityIndex->subPorts->desc = portIndex.portName; in InitPortForCapabilitySub()
|
/drivers/peripheral/codec/hal/idl_service/include/ |
D | codec_component_service.h | 43 …int32_t UseBuffer(uint32_t portIndex, const OmxCodecBuffer &inBuffer, OmxCodecBuffer &outBuffer) o… 44 …int32_t AllocateBuffer(uint32_t portIndex, const OmxCodecBuffer &inBuffer, OmxCodecBuffer &outBuff… 45 int32_t FreeBuffer(uint32_t portIndex, const OmxCodecBuffer &buffer) override; 50 … int32_t UseEglImage(uint32_t portIndex, const OmxCodecBuffer &inBuffer, OmxCodecBuffer &outBuffer,
|
/drivers/peripheral/codec/hal/passthrough/src/ |
D | codec_component_if.c | 122 struct CodecComponentType *self, uint32_t portIndex, struct OmxCodecBuffer *buffer) in ComponentTypeUseBuffer() argument 129 return CodecAdapterUseBuffer(info->codecNode, portIndex, buffer); in ComponentTypeUseBuffer() 133 struct CodecComponentType *self, uint32_t portIndex, struct OmxCodecBuffer *buffer) in ComponentTypeAllocateBuffer() argument 140 return CodecAdapterAllocateBuffer(info->codecNode, portIndex, buffer); in ComponentTypeAllocateBuffer() 144 struct CodecComponentType *self, uint32_t portIndex, const struct OmxCodecBuffer *buffer) in ComponentTypeFreeBuffer() argument 151 return CodecAdapterFreeBuffer(info->codecNode, portIndex, buffer); in ComponentTypeFreeBuffer() 196 uint32_t portIndex, int8_t *eglImage, uint32_t eglImageLen) in ComponentTypeUseEglImage() argument 203 return CodecAdapterUseEglImage(info->codecNode, buffer, portIndex, eglImage, eglImageLen); in ComponentTypeUseEglImage()
|
/drivers/peripheral/codec/test/fuzztest/omx_fuzzer/codecuseeglimageomx_fuzzer/ |
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/hdi_service/primary_impl/src/ |
D | audio_adapter_info_common.c | 193 int32_t InitPortForCapabilitySub(struct AudioPort portIndex, struct AudioPortCapability *capability… 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_I… in InitPortForCapabilitySub() 208 } else if (portIndex.portId >= AUDIO_HDMI_ID_MIN && portIndex.portId <= AUDIO_HDMI_ID_MAX) { in InitPortForCapabilitySub() 218 capabilityIndex->deviceType = portIndex.dir; in InitPortForCapabilitySub() 229 capabilityIndex->subPorts->portId = portIndex.portId; in InitPortForCapabilitySub() 230 capabilityIndex->subPorts->desc = portIndex.portName; in InitPortForCapabilitySub()
|
/drivers/peripheral/codec/test/demo/adapter/src/ |
D | codec_hdi_adapter_decode.cpp | 336 int32_t CodecHdiAdapterDecode::UseBufferOnPort(PortIndex portIndex, int bufferCount, int bufferSize) in UseBufferOnPort() argument 355 if (portIndex == PortIndex::PORT_INDEX_INPUT) { in UseBufferOnPort() 362 … auto ret = client_->AllocateBuffer(client_, static_cast<uint32_t>(portIndex), omxBuffer.get()); in UseBufferOnPort() 365 …ublic}s errNo[%{public}d] to AllocateBuffer with portIndex[%{public}d]", __func__, ret, portIndex); in UseBufferOnPort() 376 bufferInfo->portIndex = portIndex; in UseBufferOnPort() 383 int32_t CodecHdiAdapterDecode::UseBufferOnPort(PortIndex portIndex) in UseBufferOnPort() argument 395 param.nPortIndex = (OMX_U32)portIndex; in UseBufferOnPort() 399 __func__, ret, portIndex); in UseBufferOnPort() 404 if (portIndex == PortIndex::PORT_INDEX_INPUT) { in UseBufferOnPort() 409 } else if (portIndex == PortIndex::PORT_INDEX_OUTPUT) { in UseBufferOnPort() [all …]
|
/drivers/peripheral/codec/test/fuzztest/hdi_fuzzer/codecuseeglimagehdi_fuzzer/ |
D | codecuseeglimage_fuzzer.cpp | 23 uint32_t portIndex; member 58 int32_t ret = g_component->UseEglImage(params.portIndex, inbuffer, outbuffer, eglImage); in CodecUseEglImage()
|