From 951c9212fb644ffc757809bec4805033f872d3e6 Mon Sep 17 00:00:00 2001 From: Ram Mohan M Date: Thu, 8 Jun 2017 21:41:05 +0530 Subject: [PATCH] bug fix: configure input port format before setInputSurface Test: VtsHalMediaOmxV1_0Host Bug: 37501531 Change-Id: I7b48bf240a243b0b25c1c5e0f36c858b04271194 --- .../vts/functional/video/VtsHalMediaOmxV1_0TargetVideoEncTest.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/media/omx/1.0/vts/functional/video/VtsHalMediaOmxV1_0TargetVideoEncTest.cpp b/media/omx/1.0/vts/functional/video/VtsHalMediaOmxV1_0TargetVideoEncTest.cpp index 7a574307..79bcbda8 100644 --- a/media/omx/1.0/vts/functional/video/VtsHalMediaOmxV1_0TargetVideoEncTest.cpp +++ b/media/omx/1.0/vts/functional/video/VtsHalMediaOmxV1_0TargetVideoEncTest.cpp @@ -1423,6 +1423,14 @@ TEST_F(VideoEncHidlTest, EncodeTestEOS) { kPortIndexOutput = kPortIndexInput + 1; } + // Configure input port + uint32_t nFrameWidth = 352; + uint32_t nFrameHeight = 288; + uint32_t xFramerate = (30U << 16); + OMX_COLOR_FORMATTYPE eColorFormat = OMX_COLOR_FormatAndroidOpaque; + setupRAWPort(omxNode, kPortIndexInput, nFrameWidth, nFrameHeight, 0, + xFramerate, eColorFormat); + // CreateInputSurface EXPECT_TRUE(omx->createInputSurface( [&](android::hardware::media::omx::V1_0::Status _s, -- 2.11.0