From bb51ef9d43fa6ef8b5c027a36a2ff744545b6f82 Mon Sep 17 00:00:00 2001 From: SeungBeom Kim Date: Sun, 29 Mar 2015 17:43:27 +0200 Subject: [PATCH] video_dec: 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. Backported-from: hardware/samsung_slsi/exynos5 Change-Id: I985f326ae46129a2a48afa7ecf2ab77ce4a67e22 Signed-off-by: Andreas Schneider --- component/video/dec/Exynos_OMX_VdecControl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/component/video/dec/Exynos_OMX_VdecControl.c b/component/video/dec/Exynos_OMX_VdecControl.c index d2b2647..5863ab9 100644 --- a/component/video/dec/Exynos_OMX_VdecControl.c +++ b/component/video/dec/Exynos_OMX_VdecControl.c @@ -1300,6 +1300,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; -- 2.20.1