/ohos5.0/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/hardware/imagecodec/ |
H A D | image_codec.cpp | 328 param.portIndex = portIndex; in SetVideoPortInfo() 340 def.nPortIndex = portIndex; in SetVideoPortInfo() 360 if (portIndex == OMX_DirOutput) { in SetVideoPortInfo() 388 def.nPortIndex = portIndex; in GetPortDefinition() 401 int32_t ImageCodec::AllocateHardwareBuffers(OMX_DIRTYPE portIndex) in AllocateHardwareBuffers() argument 405 int32_t ret = GetPortDefinition(portIndex, def); in AllocateHardwareBuffers() 448 int32_t ret = GetPortDefinition(portIndex, def); in AllocateSurfaceBuffers() 744 EraseBufferFromPool(portIndex, i); in ReclaimBuffer() 750 bool ImageCodec::IsAllBufferOwnedByUs(OMX_DIRTYPE portIndex) in IsAllBufferOwnedByUs() argument 778 void ImageCodec::ClearBufferPool(OMX_DIRTYPE portIndex) in ClearBufferPool() argument [all …]
|
H A D | image_decoder.cpp | 38 useBufferTypes.portIndex = OMX_DirOutput; in OnConfigure() 185 param.portIndex = OMX_DirOutput; in UpdateColorAspects() 245 vendorUsage.portIndex = static_cast<uint32_t>(OMX_DirOutput); in GetProducerUsage() 301 int32_t ImageDecoder::AllocateBuffersOnPort(OMX_DIRTYPE portIndex, bool isOutputPortSettingChanged) in AllocateBuffersOnPort() argument 303 if (portIndex == OMX_DirInput) { in AllocateBuffersOnPort() 304 return AllocateHardwareBuffers(portIndex); in AllocateBuffersOnPort() 306 int32_t ret = AllocateSurfaceBuffers(portIndex, isOutputPortSettingChanged, outputBuffer_); in AllocateBuffersOnPort() 406 void ImageDecoder::EraseBufferFromPool(OMX_DIRTYPE portIndex, size_t i) in EraseBufferFromPool() argument 408 vector<BufferInfo>& pool = (portIndex == OMX_DirInput) ? inputBufferPool_ : outputBufferPool_; in EraseBufferFromPool() 414 FreeOmxBuffer(portIndex, info); in EraseBufferFromPool()
|
/ohos5.0/drivers/peripheral/codec/test/demo/idl/src/ |
H A D | codec_hdi_encode.cpp | 176 param.portIndex = static_cast<uint32_t>(portIndex); in CheckSupportBufferType() 181 __func__, portIndex, err); in CheckSupportBufferType() 311 int32_t CodecHdiEncode::UseBufferOnPort(PortIndex portIndex) in UseBufferOnPort() argument 322 param.nPortIndex = static_cast<uint32_t>(portIndex); in UseBufferOnPort() 328 __func__, portIndex); in UseBufferOnPort() 339 if (portIndex == PortIndex::PORT_INDEX_INPUT) { in UseBufferOnPort() 398 bufferInfo->portIndex = portIndex; in UseDMABuffer() 432 if (portIndex == PortIndex::PORT_INDEX_INPUT) { in UseBufferOnPort() 455 bufferInfo->portIndex = portIndex; in UseBufferOnPort() 457 if (portIndex == PortIndex::PORT_INDEX_INPUT) { in UseBufferOnPort() [all …]
|
H A D | codec_hdi_decode.cpp | 292 param.portIndex = static_cast<uint32_t>(portIndex); in CheckSupportBufferType() 298 __func__, portIndex, err); in CheckSupportBufferType() 435 if (portIndex == PortIndex::PORT_INDEX_INPUT) { in UseBufferOnPort() 458 bufferInfo->portIndex = portIndex; in UseBufferOnPort() 460 if (portIndex == PortIndex::PORT_INDEX_INPUT) { in UseBufferOnPort() 470 int32_t CodecHdiDecode::UseBufferOnPort(PortIndex portIndex) in UseBufferOnPort() argument 481 param.nPortIndex = static_cast<OMX_U32>(portIndex); in UseBufferOnPort() 488 __func__, portIndex); in UseBufferOnPort() 502 err = UseDMABuffer(portIndex, bufferCount, bufferSize); in UseBufferOnPort() 552 bufferInfo->portIndex = portIndex; in UseDMABuffer() [all …]
|
/ohos5.0/foundation/multimedia/av_codec/services/engine/codec/video/hcodec/ |
H A D | hcodec.cpp | 491 param.portIndex = portIndex; in SetVideoPortInfo() 503 def.nPortIndex = portIndex; in SetVideoPortInfo() 520 if (portIndex == OMX_DirOutput) { in SetVideoPortInfo() 548 def.nPortIndex = portIndex; in GetPortDefinition() 564 int32_t ret = GetPortDefinition(portIndex, def); in AllocateAvLinearBuffers() 571 type.portIndex = portIndex; in AllocateAvLinearBuffers() 673 int32_t ret = GetPortDefinition(portIndex, def); in AllocateAvSurfaceBuffers() 1126 EraseBufferFromPool(portIndex, i); in ReclaimBuffer() 1150 void HCodec::ClearBufferPool(OMX_DIRTYPE portIndex) in ClearBufferPool() argument 1155 EraseBufferFromPool(portIndex, i); in ClearBufferPool() [all …]
|
/ohos5.0/drivers/peripheral/codec/hal/idl_service/src/ |
H A D | codec_component_service.cpp | 154 CODEC_LOGD("portIndex: [%{public}d]", portIndex); in UseBuffer() 168 return node_->UseBuffer(portIndex, outBuffer); in UseBuffer() 171 int32_t CodecComponentService::AllocateBuffer(uint32_t portIndex, const OmxCodecBuffer &inBuffer, in AllocateBuffer() argument 175 CODEC_LOGD("portIndex: [%{public}d]", portIndex); in AllocateBuffer() 177 return node_->AllocateBuffer(portIndex, outBuffer); in AllocateBuffer() 180 int32_t CodecComponentService::FreeBuffer(uint32_t portIndex, const OmxCodecBuffer &buffer) in FreeBuffer() argument 184 CODEC_LOGD("portIndex: [%{public}d], bufferId: [%{public}d]", portIndex, buffer.bufferId); in FreeBuffer() 185 int32_t ret = node_->FreeBuffer(portIndex, buffer); in FreeBuffer() 236 int32_t CodecComponentService::UseEglImage(uint32_t portIndex, const OmxCodecBuffer &inBuffer, in UseEglImage() argument 240 CODEC_LOGI("portIndex [%{public}d]", portIndex); in UseEglImage() [all …]
|
H A D | component_node.cpp | 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() 476 bufferHeaderPortMap_.emplace(std::make_pair(bufferHdrType, portIndex)); in AllocateBuffer() 477 portIndexMap_.emplace(std::make_pair(bufferHdrType, portIndex)); in AllocateBuffer() 482 int32_t ComponentNode::FreeBuffer(uint32_t portIndex, const OmxCodecBuffer &buffer) in FreeBuffer() argument 493 err = OMX_FreeBuffer(static_cast<OMX_HANDLETYPE>(comp_), portIndex, bufferHdrType); in FreeBuffer() [all …]
|
/ohos5.0/drivers/peripheral/codec/test/demo/idl/include/ |
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);
|
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);
|
/ohos5.0/drivers/peripheral/codec/hal/src/ |
H A D | codec_component_type_service.c | 162 uint32_t portIndex, struct OmxCodecBuffer *buffer) in CodecComponentTypeUseBuffer() argument 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() argument 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 191 portIndex, buffer->bufferId); in CodecComponentTypeFreeBuffer() 198 return OmxAdapterFreeBuffer(service->codecNode, portIndex, (struct OmxCodecBuffer *)buffer); in CodecComponentTypeFreeBuffer() 249 struct OmxCodecBuffer *buffer, uint32_t portIndex, int8_t *eglImage, uint32_t eglImageLen) in CodecComponentTypeUseEglImage() argument [all …]
|
/ohos5.0/drivers/peripheral/codec/interfaces/include/ |
H A D | codec_omx_ext.h | 189 uint32_t portIndex; /** Port index */ member 199 uint32_t portIndex; /** Port index */ member 209 uint32_t portIndex; /** Port index */ member 219 uint32_t portIndex; /** Port index */ member 232 uint32_t portIndex; /** Port index */ member 377 uint32_t portIndex; /** Port index */ member 391 uint32_t portIndex; /** Port index */ member 408 uint32_t portIndex; /** Port index */ member
|
/ohos5.0/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() 345 if (portIndex == PortIndex::PORT_INDEX_INPUT) { in UseBufferOnPort() 366 bufferInfo->portIndex = portIndex; in UseBufferOnPort() 368 if (portIndex == PortIndex::PORT_INDEX_INPUT) { in UseBufferOnPort() 378 int32_t CodecHdiDecode::UseBufferOnPort(PortIndex portIndex) in UseBufferOnPort() argument 384 param.nPortIndex = static_cast<OMX_U32>(portIndex); in UseBufferOnPort() 389 __func__, portIndex); in UseBufferOnPort() 398 portIndex, bufferSize, bufferCount, portEnable, err); in UseBufferOnPort() 403 param.nPortIndex = static_cast<uint32_t>(portIndex); in UseBufferOnPort() 411 err = UseBufferOnPort(portIndex, bufferCount, bufferSize); in UseBufferOnPort() [all …]
|
H A D | codec_hdi_encode.cpp | 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() 293 err = UseBufferOnPort(portIndex, bufferCount, bufferSize); in UseBufferOnPort() 328 if (portIndex == PortIndex::PORT_INDEX_INPUT) { in UseBufferOnPort() 350 bufferInfo->portIndex = portIndex; in UseBufferOnPort() 352 if (portIndex == PortIndex::PORT_INDEX_INPUT) { in UseBufferOnPort() [all …]
|
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/codec/ |
H A D | interface_i_codec_component_v10.md | 45 | [UseBuffer](#usebuffer) ([in] unsigned int portIndex, [in] struct [OmxCodecBuffer](_omx_codec_buf… 46 | [AllocateBuffer](#allocatebuffer) ([in] unsigned int portIndex, [in] struct [OmxCodecBuffer](_omx… 47 | [FreeBuffer](#freebuffer) ([in] unsigned int portIndex, [in] struct [OmxCodecBuffer](_omx_codec_b… 62 ICodecComponent::AllocateBuffer ([in] unsigned int portIndex, [in] struct OmxCodecBuffer inBuffer, … 83 | portIndex | 指定的组件端口。 | 255 ICodecComponent::FreeBuffer ([in] unsigned int portIndex, [in] struct OmxCodecBuffer buffer ) 276 | portIndex | 指定的组件端口。 | 590 ICodecComponent::UseBuffer ([in] unsigned int portIndex, [in] struct OmxCodecBuffer inBuffer, [out]… 613 | portIndex | 指定的组件端口。 | 631 ICodecComponent::UseEglImage ([in] unsigned int portIndex, [in] struct OmxCodecBuffer inBuffer, [ou… [all …]
|
H A D | interface_i_codec_component_v20.md | 43 | [UseBuffer](#usebuffer) ([in] unsigned int portIndex, [in] struct [OmxCodecBuffer](_omx_codec_buf… 44 | [AllocateBuffer](#allocatebuffer) ([in] unsigned int portIndex, [in] struct [OmxCodecBuffer](_omx… 45 | [FreeBuffer](#freebuffer) ([in] unsigned int portIndex, [in] struct [OmxCodecBuffer](_omx_codec_b… 60 ICodecComponent::AllocateBuffer ([in] unsigned int portIndex, [in] struct OmxCodecBuffer inBuffer, … 83 | portIndex | 指定的组件端口。 | 255 ICodecComponent::FreeBuffer ([in] unsigned int portIndex, [in] struct OmxCodecBuffer buffer ) 276 | portIndex | 指定的组件端口。 | 590 ICodecComponent::UseBuffer ([in] unsigned int portIndex, [in] struct OmxCodecBuffer inBuffer, [out]… 613 | portIndex | 指定的组件端口。 | 631 ICodecComponent::UseEglImage ([in] unsigned int portIndex, [in] struct OmxCodecBuffer inBuffer, [ou… [all …]
|
H A D | _control_rate_constant_quality_v20.md | 22 | unsigned int [portIndex](#portindex) | 端口序列 | 29 ### portIndex subsection 32 unsigned int ControlRateConstantQuality::portIndex
|
H A D | _support_buffer_type_v20.md | 22 | unsigned int [portIndex](#portindex) | 端口序列 | 39 ### portIndex subsection 42 unsigned int SupportBufferType::portIndex
|
H A D | _use_buffer_type_v20.md | 22 | unsigned int [portIndex](#portindex) | 端口序列 | 39 ### portIndex subsection 42 unsigned int UseBufferType::portIndex
|
H A D | _get_buffer_handle_usage_params_v20.md | 22 | unsigned int [portIndex](#portindex) | 端口序列 | 29 ### portIndex subsection 32 unsigned int GetBufferHandleUsageParams::portIndex
|
/ohos5.0/drivers/peripheral/audio/hal/hdi_passthrough/src/ |
H A 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()
|
/ohos5.0/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 *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()
|
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/plugins/codec_adapter/ |
H A D | codec_cmd_executor.cpp | 72 uint32_t portIndex; in SendCmd() local 74 portIndex = static_cast<uint32_t>(-1); in SendCmd() 76 portIndex = Plugin::AnyCast<uint32_t>(param); in SendCmd() 78 auto ret = HdiSendCommand(codecComp_, cmd, portIndex, 0); in SendCmd() 115 auto portIndex = AnyCast<uint32_t>(param); in WaitCmdResult() local 119 if (portIndex == inPortIndex_) { in WaitCmdResult() 127 if (portIndex == inPortIndex_) { in WaitCmdResult()
|
/ohos5.0/docs/zh-cn/device-dev/driver/ |
H A D | driver-peripherals-codec-des.md | 394 int32_t CodecHdiDecode::UseBufferOnPort(PortIndex portIndex) 396 HDF_LOGI("%{public}s enter, portIndex = %{public}d", __func__, portIndex); 405 param.nPortIndex = static_cast<OMX_U32>(portIndex); 412 __func__, portIndex); 422 portIndex, bufferSize, bufferCount, portEnable, err); 424 if (useBufferHandle_ && portIndex == PortIndex::PORT_INDEX_OUTPUT) { 427 err = UseBufferOnPort(portIndex, bufferCount, bufferSize); 460 if (portIndex == PortIndex::PORT_INDEX_INPUT) { 470 … HDF_LOGE("%{public}s failed to UseBuffer with portIndex[%{public}d]", __func__, portIndex); 483 bufferInfo->portIndex = portIndex; [all …]
|
/ohos5.0/drivers/peripheral/codec/test/demo/v2.0/include/ |
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);
|
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);
|