summaryrefslogtreecommitdiff
path: root/exynos_omx
diff options
context:
space:
mode:
authorSeungBeom Kim <sbcrux.kim@samsung.com>2014-08-07 10:57:56 +0900
committerChong Zhang <chz@google.com>2014-08-29 14:57:36 -0700
commit48d08f911e9d5c4380344a53b290a0a37023a831 (patch)
treebdcfaafa5c59796cbba91056edc28522cfef6681 /exynos_omx
parentacd67d267c96887806245abeba6a228332faedd1 (diff)
downloadexynos5-48d08f911e9d5c4380344a53b290a0a37023a831.tar.gz
exynos_omx: multi_thread: Add crop info update code.
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>
Diffstat (limited to 'exynos_omx')
-rw-r--r--exynos_omx/openmax/exynos_omx/component/video/dec/Exynos_OMX_VdecControl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/exynos_omx/openmax/exynos_omx/component/video/dec/Exynos_OMX_VdecControl.c b/exynos_omx/openmax/exynos_omx/component/video/dec/Exynos_OMX_VdecControl.c
index e072a22..29b5036 100644
--- a/exynos_omx/openmax/exynos_omx/component/video/dec/Exynos_OMX_VdecControl.c
+++ b/exynos_omx/openmax/exynos_omx/component/video/dec/Exynos_OMX_VdecControl.c
@@ -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;