Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a15b5784 authored by Ram Mohan M's avatar Ram Mohan M Committed by android-build-merger
Browse files

Merge "bug fix: configure input port format before setInputSurface" into...

Merge "bug fix: configure input port format before setInputSurface" into oc-dev am: bd5b6f85 am: e808bef2
am: 74b0fb11

Change-Id: I92746bc0602a5853ef0e84634315d5ac0c3fc5dc
parents c6d822f4 74b0fb11
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1470,6 +1470,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,