From 823175dd5b260ad82c8f68e0709b2ee372816804 Mon Sep 17 00:00:00 2001 From: Taehwan Kim Date: Wed, 21 Nov 2012 07:06:55 +0000 Subject: [PATCH] osal: changed a condition check in case of OMX_IndexParamEnableAndroidBuffers. It is possible to use NON-ANB, even if OMX_IndexParamEnableAndroidBuffers. changed a condition check in case of above. Change-Id: I2197a71df7194a85ae693cd8fb2222e651113dcc Signed-off-by: Taehwan Kim --- osal/Exynos_OSAL_Android.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/osal/Exynos_OSAL_Android.cpp b/osal/Exynos_OSAL_Android.cpp index 42d1284..ccbcaa2 100644 --- a/osal/Exynos_OSAL_Android.cpp +++ b/osal/Exynos_OSAL_Android.cpp @@ -434,9 +434,13 @@ OMX_ERRORTYPE Exynos_OSAL_SetANBParameter( ret = OMX_ErrorBadPortIndex; goto EXIT; } + + pExynosPort->bIsANBEnabled = pANBParams->enable; + #ifdef USE_ANB_OUTBUF_SHARE /* ANB and DPB Buffer Sharing */ if ((portIndex == OUTPUT_PORT_INDEX) && + (pExynosPort->bIsANBEnabled == OMX_TRUE) && ((pExynosPort->bufferProcessType & BUFFER_ANBSHARE) == BUFFER_ANBSHARE)) { pExynosPort->bufferProcessType = BUFFER_SHARE; pExynosPort->portDefinition.format.video.eColorFormat = (OMX_COLOR_FORMATTYPE)OMX_SEC_COLOR_FormatNV12Tiled; @@ -449,7 +453,6 @@ OMX_ERRORTYPE Exynos_OSAL_SetANBParameter( pExynosPort->portDefinition.format.video.eColorFormat = OMX_COLOR_FormatYUV420SemiPlanar; } #endif - pExynosPort->bIsANBEnabled = pANBParams->enable; } break; -- 2.20.1