This patch resolves the failure of testH264_flushConfigureDrc CTS. OMX
update the Crop information when client call the SetParameter with
OMX_IndexParamPortDefinition.
Backported-from: hardware/samsung_slsi/exynos5
Change-Id: I985f326ae46129a2a48afa7ecf2ab77ce4a67e22
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
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;