mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge "bug fix: configure input port format before setInputSurface" into oc-dev
am: bd5b6f8535
Change-Id: If5ee86d7d1203019b565743057c77baf1ffb96a8
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user