Home
last modified time | relevance | path

Searched refs:portDef (Results 1 – 9 of 9) sorted by relevance

/hardware/interfaces/media/omx/1.0/vts/functional/video/
DVtsHalMediaOmxV1_0TargetVideoEncTest.cpp480 OMX_PARAM_PORTDEFINITIONTYPE portDef; in setRefreshPeriod() local
482 &portDef); in setRefreshPeriod()
485 ((portDef.format.video.nFrameWidth + 15) >> in setRefreshPeriod()
486 4 * (portDef.format.video.nFrameHeight + 15) >> 4) / in setRefreshPeriod()
523 OMX_PARAM_PORTDEFINITIONTYPE portDef; in setDefaultPortParam() local
525 &portDef); in setDefaultPortParam()
527 portDef.format.video.nFrameWidth = nFrameWidth; in setDefaultPortParam()
528 portDef.format.video.nFrameHeight = nFrameHeight; in setDefaultPortParam()
529 portDef.format.video.nBitrate = nBitrate; in setDefaultPortParam()
530 portDef.format.video.xFramerate = xFramerate; in setDefaultPortParam()
[all …]
Dmedia_video_hidl_test_common.cpp83 OMX_PARAM_PORTDEFINITIONTYPE portDef; in setupRAWPort() local
85 &portDef); in setupRAWPort()
87 portDef.format.video.nFrameWidth = nFrameWidth; in setupRAWPort()
88 portDef.format.video.nFrameHeight = nFrameHeight; in setupRAWPort()
89 portDef.format.video.nStride = (((nFrameWidth + 15) >> 4) << 4); in setupRAWPort()
90 portDef.format.video.nSliceHeight = (((nFrameHeight + 15) >> 4) << 4); in setupRAWPort()
91 portDef.format.video.nBitrate = nBitrate; in setupRAWPort()
92 portDef.format.video.xFramerate = xFramerate; in setupRAWPort()
93 portDef.format.video.bFlagErrorConcealment = OMX_TRUE; in setupRAWPort()
94 portDef.format.video.eCompressionFormat = OMX_VIDEO_CodingUnused; in setupRAWPort()
[all …]
DVtsHalMediaOmxV1_0TargetVideoDecTest.cpp307 OMX_PARAM_PORTDEFINITIONTYPE portDef; in getInputChannelInfo() local
309 kPortIndexInput, &portDef); in getInputChannelInfo()
312 *nFrameWidth = portDef.format.video.nFrameWidth; in getInputChannelInfo()
313 *nFrameHeight = portDef.format.video.nFrameHeight; in getInputChannelInfo()
314 *xFramerate = portDef.format.video.xFramerate; in getInputChannelInfo()
432 OMX_PARAM_PORTDEFINITIONTYPE portDef; in portReconfiguration() local
434 kPortIndexOutput, &portDef); in portReconfiguration()
437 portDef.format.video.eColorFormat, in portReconfiguration()
/hardware/interfaces/media/omx/1.0/vts/functional/component/
DVtsHalMediaOmxV1_0TargetComponentTest.cpp330 OMX_PARAM_PORTDEFINITIONTYPE portDef; in TEST_P() local
332 getPortParam(omxNode, OMX_IndexParamPortDefinition, i, &portDef); in TEST_P()
335 EXPECT_EQ(portDef.eDir, i - kPortIndexInput); // OMX_DirInput in TEST_P()
336 EXPECT_EQ(portDef.bEnabled, OMX_TRUE); in TEST_P()
337 EXPECT_EQ(portDef.bPopulated, OMX_FALSE); in TEST_P()
338 EXPECT_GE(portDef.nBufferCountMin, 1U); in TEST_P()
339 EXPECT_GE(portDef.nBufferCountActual, portDef.nBufferCountMin); in TEST_P()
341 EXPECT_EQ(portDef.eDomain, OMX_PortDomainAudio); in TEST_P()
344 EXPECT_EQ(portDef.eDomain, OMX_PortDomainVideo); in TEST_P()
346 OMX_PARAM_PORTDEFINITIONTYPE mirror = portDef; in TEST_P()
[all …]
/hardware/interfaces/media/omx/1.0/vts/functional/common/
Dmedia_hidl_test_common.cpp75 OMX_PARAM_PORTDEFINITIONTYPE portDef; in setPortBufferSize() local
78 &portDef); in setPortBufferSize()
81 if (portDef.nBufferSize < size) { in setPortBufferSize()
82 portDef.nBufferSize = size; in setPortBufferSize()
84 &portDef); in setPortBufferSize()
360 OMX_PARAM_PORTDEFINITIONTYPE portDef; in allocateBuffer() local
362 &portDef); in allocateBuffer()
368 omxNode, portIndex, buffer, portDef.format.video.nFrameWidth, in allocateBuffer()
369 portDef.format.video.nFrameHeight, &nStride, in allocateBuffer()
370 portDef.format.video.eColorFormat)); in allocateBuffer()
[all …]
/hardware/interfaces/media/omx/1.0/vts/functional/audio/
DVtsHalMediaOmxV1_0TargetAudioEncTest.cpp216 OMX_PARAM_PORTDEFINITIONTYPE portDef; in setDefaultPortParam() local
218 &portDef); in setDefaultPortParam()
221 portDef.format.audio.bFlagErrorConcealment = OMX_TRUE; in setDefaultPortParam()
222 portDef.format.audio.eEncoding = eEncoding; in setDefaultPortParam()
224 &portDef); in setDefaultPortParam()
DVtsHalMediaOmxV1_0TargetAudioDecTest.cpp279 OMX_PARAM_PORTDEFINITIONTYPE portDef; in setDefaultPortParam() local
281 &portDef); in setDefaultPortParam()
284 portDef.format.audio.bFlagErrorConcealment = OMX_TRUE; in setDefaultPortParam()
285 portDef.format.audio.eEncoding = eEncoding; in setDefaultPortParam()
287 &portDef); in setDefaultPortParam()
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/test/
Dvenc_test.cpp2016 OMX_PARAM_PORTDEFINITIONTYPE portDef; in main() local
2018 portDef.nPortIndex = 0; in main()
2019 result = OMX_GetParameter(m_hHandle, OMX_IndexParamPortDefinition, &portDef); in main()
2023 num_in_buffers = portDef.nBufferCountActual; in main()
2024 for (i = 0; i < portDef.nBufferCountActual; i++) in main()
2050 OMX_PARAM_PORTDEFINITIONTYPE portDef; in main() local
2052 portDef.nPortIndex = 1; in main()
2053 result = OMX_GetParameter(m_hHandle, OMX_IndexParamPortDefinition, &portDef); in main()
2058 num_out_buffers = portDef.nBufferCountActual; in main()
2059 for (i = 0; i < portDef.nBufferCountActual; i++) in main()
[all …]
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/test/
Dvenc_test.cpp2030 OMX_PARAM_PORTDEFINITIONTYPE portDef; in main() local
2032 portDef.nPortIndex = 0; in main()
2033 result = OMX_GetParameter(m_hHandle, OMX_IndexParamPortDefinition, &portDef); in main()
2037 num_in_buffers = portDef.nBufferCountActual; in main()
2039 for (i = 0; i < portDef.nBufferCountActual; i++) { in main()
2062 OMX_PARAM_PORTDEFINITIONTYPE portDef; in main() local
2064 portDef.nPortIndex = 1; in main()
2065 result = OMX_GetParameter(m_hHandle, OMX_IndexParamPortDefinition, &portDef); in main()
2069 num_out_buffers = portDef.nBufferCountActual; in main()
2071 for (i = 0; i < portDef.nBufferCountActual; i++) { in main()
[all …]