exynos_omx: multi_thread: Add crop info update code.
authorSeungBeom Kim <sbcrux.kim@samsung.com>
Thu, 7 Aug 2014 01:57:56 +0000 (10:57 +0900)
committerChong Zhang <chz@google.com>
Fri, 29 Aug 2014 21:57:36 +0000 (14:57 -0700)
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>
exynos_omx/openmax/exynos_omx/component/video/dec/Exynos_OMX_VdecControl.c

index e072a22e8b367f8c7b79eabf0f445c1d4cc1c294..29b50361e13b51eb112717edbd5b03572acfcafc 100644 (file)
@@ -1260,6 +1260,11 @@ OMX_ERRORTYPE Exynos_OMX_VideoDecodeSetParameter(
         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;