This patch resolves the failure of testH264_flushConfigureDrc CTS.
OMX update the Crop information when client call the SetParameter with OMX_IndexParamPortDefinition.
Bug:
17294121
Change-Id: Ib11db6694421bbc18e562fd734f1afdb0041ab2a
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
pExynosPort->portDefinition.format.video.nSliceHeight = height;
pExynosPort->portDefinition.nBufferSize = (size > pExynosPort->portDefinition.nBufferSize) ? size : pExynosPort->portDefinition.nBufferSize;
+ pExynosPort->cropRectangle.nTop = 0;
+ pExynosPort->cropRectangle.nLeft = 0;
+ pExynosPort->cropRectangle.nWidth = realWidth;
+ pExynosPort->cropRectangle.nHeight = realHeight;
+
if (portIndex == INPUT_PORT_INDEX) {
EXYNOS_OMX_BASEPORT *pExynosOutputPort = &pExynosComponent->pExynosPort[OUTPUT_PORT_INDEX];
pExynosOutputPort->portDefinition.format.video.nFrameWidth = pExynosPort->portDefinition.format.video.nFrameWidth;