Home
last modified time | relevance | path

Searched refs:PortIndex (Results 1 - 14 of 14) sorted by relevance

/drivers/peripheral/codec/test/unittest/hdi_omx/
H A Dcodec_hdi_omx_test.cpp72 enum class PortIndex { PORT_INDEX_INPUT = 0, PORT_INDEX_OUTPUT = 1 }; class in __anon680::CodecHdiOmxTest
115 void InitCodecBufferWithAshMem(enum PortIndex portIndex, int bufferSize, shared_ptr<OmxCodecBuffer> omxBuffer, in InitCodecBufferWithAshMem()
127 if (portIndex == PortIndex::PORT_INDEX_INPUT) { in InitCodecBufferWithAshMem()
136 bool UseBufferOnPort(enum PortIndex portIndex, int32_t bufferCount, int32_t bufferSize) in UseBufferOnPort()
166 if (portIndex == PortIndex::PORT_INDEX_INPUT) { in UseBufferOnPort()
175 bool FreeBufferOnPort(enum PortIndex portIndex) in FreeBufferOnPort()
178 if (portIndex == PortIndex::PORT_INDEX_OUTPUT) { in FreeBufferOnPort()
320 pixFormat.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_OUTPUT); in HWTEST_F()
332 pixFormat.portIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_INPUT); in HWTEST_F()
353 param.nPortIndex = static_cast<uint32_t>(PortIndex in HWTEST_F()
[all...]
/drivers/peripheral/codec/test/demo/idl/include/
H A Dcodec_hdi_decode.h45 enum class PortIndex { PORT_INDEX_INPUT = 0, PORT_INDEX_OUTPUT = 1 }; class in CodecHdiDecode
49 PortIndex portIndex;
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 Dcodec_hdi_encode.h45 enum class PortIndex { PORT_INDEX_INPUT = 0, PORT_INDEX_OUTPUT = 1 }; class in CodecHdiEncode
50 PortIndex portIndex;
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/test/unittest/idl_omx/
H A Dcodec_function_utils.h54 enum class PortIndex { INDEX_INPUT = 0, INDEX_OUTPUT = 1 }; class
125 void InitCodecBufferWithAshMem(enum PortIndex port, int bufferSize, std::shared_ptr<OmxCodecBuffer> omxBuffer,
133 bool UseDynaBuffer(sptr<ICodecComponent> component, enum PortIndex port, int bufferCount, int bufferSize);
135 bool UseHandleBuffer(sptr<ICodecComponent> component, enum PortIndex port, int bufferCount, int bufferSize);
137 bool UseBufferOnPort(sptr<ICodecComponent> component, enum PortIndex port, int32_t bufferCount,
140 bool AllocateBufferOnPort(sptr<ICodecComponent> component, enum PortIndex port, int32_t bufferCount,
143 bool FreeBufferOnPort(sptr<ICodecComponent> component, enum PortIndex port);
145 int32_t GetPortParameter(sptr<ICodecComponent> component, PortIndex index, OMX_PARAM_PORTDEFINITIONTYPE &param);
H A Dcodec_hdi_omx_enc_test.cpp105 const static uint32_t inputIndex = static_cast<uint32_t>(PortIndex::INDEX_INPUT);
106 const static uint32_t outputIndex = static_cast<uint32_t>(PortIndex::INDEX_OUTPUT);
601 ret = func_->GetPortParameter(g_component, PortIndex::INDEX_INPUT, param); in HWTEST_F()
604 auto err = func_->UseBufferOnPort(g_component, PortIndex::INDEX_INPUT, param.nBufferCountActual, in HWTEST_F()
607 err = func_->FreeBufferOnPort(g_component, PortIndex::INDEX_INPUT); in HWTEST_F()
640 func_->GetPortParameter(g_component, PortIndex::INDEX_OUTPUT, param); in HWTEST_F()
642 auto err = func_->UseBufferOnPort(g_component, PortIndex::INDEX_OUTPUT, param.nBufferCountActual, in HWTEST_F()
645 err = func_->FreeBufferOnPort(g_component, PortIndex::INDEX_OUTPUT); in HWTEST_F()
674 func_->GetPortParameter(g_component, PortIndex::INDEX_INPUT, param); in HWTEST_F()
676 auto err = func_->UseBufferOnPort(g_component, PortIndex in HWTEST_F()
[all...]
H A Dcodec_hdi_omx_dec_test.cpp106 const static uint32_t outputIndex = static_cast<uint32_t>(PortIndex::INDEX_OUTPUT);
120 func_->GetPortParameter(g_component, PortIndex::INDEX_INPUT, param); in HWTEST_F()
121 auto err = func_->UseBufferOnPort(g_component, PortIndex::INDEX_INPUT, param.nBufferCountActual, in HWTEST_F()
127 ret = func_->GetPortParameter(g_component, PortIndex::INDEX_OUTPUT, param); in HWTEST_F()
129 err = func_->UseHandleBuffer(g_component, PortIndex::INDEX_OUTPUT, param.nBufferCountActual, param.nBufferSize); in HWTEST_F()
147 err = func_->FreeBufferOnPort(g_component, PortIndex::INDEX_INPUT); in HWTEST_F()
149 err = func_->FreeBufferOnPort(g_component, PortIndex::INDEX_OUTPUT); in HWTEST_F()
H A Dcodec_function_utils.cpp61 void FunctionUtil::InitCodecBufferWithAshMem(enum PortIndex port, int bufferSize, shared_ptr<OmxCodecBuffer> omxBuffer, in InitCodecBufferWithAshMem()
67 if (port == PortIndex::INDEX_INPUT) { in InitCodecBufferWithAshMem()
139 bool FunctionUtil::UseDynaBuffer(sptr<ICodecComponent> component, enum PortIndex port, int bufferCount, in UseDynaBuffer()
168 bool FunctionUtil::UseHandleBuffer(sptr<ICodecComponent> component, enum PortIndex port, in UseHandleBuffer()
197 bool FunctionUtil::UseBufferOnPort(sptr<ICodecComponent> component, enum PortIndex port, in UseBufferOnPort()
219 if (port == PortIndex::INDEX_INPUT) { in UseBufferOnPort()
228 bool FunctionUtil::AllocateBufferOnPort(sptr<ICodecComponent> component, enum PortIndex port, in AllocateBufferOnPort()
235 if (port == PortIndex::INDEX_INPUT) { in AllocateBufferOnPort()
256 if (port == PortIndex::INDEX_INPUT) { in AllocateBufferOnPort()
267 bool FunctionUtil::FreeBufferOnPort(sptr<ICodecComponent> component, enum PortIndex por
[all...]
/drivers/peripheral/codec/test/demo/v2.0/include/
H A Dcodec_hdi_encode.h37 enum class PortIndex { PORT_INDEX_INPUT = 0, PORT_INDEX_OUTPUT = 1 }; class
44 PortIndex portIndex;
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 Dcodec_hdi_decode.h37 enum class PortIndex { PORT_INDEX_INPUT = 0, PORT_INDEX_OUTPUT = 1 }; class
43 PortIndex portIndex;
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/
H A Dcodec_hdi_decode.cpp185 param.nPortIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_INPUT); in ConfigPortDefine()
191 HDF_LOGE("%{public}s failed PortIndex::PORT_INDEX_INPUT, index is OMX_IndexParamPortDefinition", __func__); in ConfigPortDefine()
196 HDF_LOGI("PortIndex::PORT_INDEX_INPUT: eCompressionFormat = %{public}d, eColorFormat = %{public}d ", in ConfigPortDefine()
202 HDF_LOGE("%{public}s failed with PortIndex::PORT_INDEX_INPUT, index is OMX_IndexParamPortDefinition", __func__); in ConfigPortDefine()
210 param.nPortIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_OUTPUT); in ConfigPortDefine()
214 HDF_LOGE("%{public}s failed with PortIndex::PORT_INDEX_OUTPUT, index is OMX_IndexParamPortDefinition", in ConfigPortDefine()
220 HDF_LOGI("PortIndex::PORT_INDEX_OUTPUT eCompressionFormat = %{public}d, eColorFormat=%{public}d", in ConfigPortDefine()
227 HDF_LOGE("%{public}s failed with PortIndex::PORT_INDEX_OUTPUT, index is OMX_IndexParamPortDefinition", in ConfigPortDefine()
244 param.nPortIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_INPUT); in Configure()
249 HDF_LOGE("%{public}s failed with PortIndex in Configure()
[all...]
H A Dcodec_hdi_encode.cpp168 int32_t CodecHdiEncode::CheckSupportBufferType(PortIndex portIndex, CodecBufferType codecBufferType) in CheckSupportBufferType()
197 auto err = CheckSupportBufferType(PortIndex::PORT_INDEX_OUTPUT, CODEC_BUFFER_TYPE_DMA_MEM_FD); in CheckAndUseDMABuffer()
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()
275 err = UseBufferOnPort(PortIndex::PORT_INDEX_INPUT); in UseBuffers()
282 err = UseBufferOnPort(PortIndex::PORT_INDEX_OUTPUT); in UseBuffers()
311 int32_t CodecHdiEncode::UseBufferOnPort(PortIndex portIndex) in UseBufferOnPort()
339 if (portIndex == PortIndex in UseBufferOnPort()
[all...]
/drivers/peripheral/codec/test/demo/v2.0/src/
H A Dcodec_hdi_encode.cpp171 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()
221 err = UseBufferOnPort(PortIndex::PORT_INDEX_INPUT); in UseBuffers()
228 err = UseBufferOnPort(PortIndex::PORT_INDEX_OUTPUT); in UseBuffers()
257 int32_t CodecHdiEncode::UseBufferOnPort(PortIndex portIndex) in UseBufferOnPort()
284 if (portIndex == PortIndex::PORT_INDEX_INPUT) { in UseBufferOnPort()
290 if (useBufferHandle_ && portIndex == PortIndex::PORT_INDEX_INPUT) { in UseBufferOnPort()
309 int32_t CodecHdiEncode::UseBufferOnPort(PortIndex portInde
[all...]
H A Dcodec_hdi_decode.cpp146 param.nPortIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_INPUT); in ConfigPortDefine()
150 HDF_LOGE("%{public}s failed PortIndex::PORT_INDEX_INPUT, index is OMX_IndexParamPortDefinition", __func__); in ConfigPortDefine()
153 HDF_LOGI("PortIndex::PORT_INDEX_INPUT: eCompressionFormat = %{public}d, eColorFormat = %{public}d ", in ConfigPortDefine()
162 HDF_LOGE("%{public}s failed with PortIndex::PORT_INDEX_INPUT, index is OMX_IndexParamPortDefinition", __func__); in ConfigPortDefine()
168 param.nPortIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_OUTPUT); in ConfigPortDefine()
172 HDF_LOGE("%{public}s failed with PortIndex::PORT_INDEX_OUTPUT, index is OMX_IndexParamPortDefinition", in ConfigPortDefine()
176 HDF_LOGI("PortIndex::PORT_INDEX_OUTPUT eCompressionFormat = %{public}d, eColorFormat=%{public}d", in ConfigPortDefine()
186 HDF_LOGE("%{public}s failed with PortIndex::PORT_INDEX_OUTPUT, index is OMX_IndexParamPortDefinition", in ConfigPortDefine()
200 param.nPortIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_INPUT); in Configure()
204 HDF_LOGE("%{public}s failed with PortIndex in Configure()
[all...]
/drivers/peripheral/codec/test/benchmarktest/
H A Dcodec_benchmark_omx_test.cpp65 enum class PortIndex { PORT_INDEX_INPUT = 0, PORT_INDEX_OUTPUT = 1 }; class in __anon658::CodecBenchmarkOmxTest
122 void InitCodecBufferWithAshMem(enum PortIndex port, int bufferSize, shared_ptr<OmxCodecBuffer> omxBuffer, in InitCodecBufferWithAshMem()
127 if (port == PortIndex::PORT_INDEX_INPUT) { in InitCodecBufferWithAshMem()
136 bool UseBufferOnPort(enum PortIndex port, int32_t bufferCount, int32_t bufferSize) in UseBufferOnPort()
168 if (port == PortIndex::PORT_INDEX_INPUT) { in UseBufferOnPort()
177 bool FreeBufferOnPort(enum PortIndex port) in FreeBufferOnPort()
180 if (port == PortIndex::PORT_INDEX_OUTPUT) { in FreeBufferOnPort()
254 const static uint32_t inputIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_INPUT);
255 const static uint32_t outputIndex = static_cast<uint32_t>(PortIndex::PORT_INDEX_OUTPUT);

Completed in 11 milliseconds