From 23dc1702561ff808122281ec421aa1deee00c761 Mon Sep 17 00:00:00 2001 From: Jinsung Yang Date: Sat, 8 Dec 2012 00:01:56 +0900 Subject: [PATCH] osal: Fix build error Change-Id: I56f30102fa1448217abafaf8f9967d7d642962e9 Signed-off-by: Jinsung Yang --- osal/Exynos_OSAL_Android.cpp | 2 +- osal/Exynos_OSAL_Android.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/osal/Exynos_OSAL_Android.cpp b/osal/Exynos_OSAL_Android.cpp index 364c490..188778b 100644 --- a/osal/Exynos_OSAL_Android.cpp +++ b/osal/Exynos_OSAL_Android.cpp @@ -94,7 +94,7 @@ OMX_ERRORTYPE Exynos_OSAL_LockANBHandle( case OMX_COLOR_FormatAndroidOpaque: { OMX_COLOR_FORMATTYPE formatType; - formatType = Exynos_OSAL_GetANBColorFormat(priv_hnd); + formatType = Exynos_OSAL_GetANBColorFormat((OMX_U32)priv_hnd); if ((formatType == OMX_COLOR_FormatYUV420SemiPlanar) || (formatType == OMX_SEC_COLOR_FormatNV12Tiled)) usage = GRALLOC_USAGE_SW_READ_OFTEN | GRALLOC_USAGE_SW_WRITE_OFTEN; diff --git a/osal/Exynos_OSAL_Android.h b/osal/Exynos_OSAL_Android.h index cfe8c36..bac31e6 100644 --- a/osal/Exynos_OSAL_Android.h +++ b/osal/Exynos_OSAL_Android.h @@ -45,6 +45,8 @@ OMX_ERRORTYPE Exynos_OSAL_SetANBParameter(OMX_IN OMX_HANDLETYPE hComponent, OMX_IN OMX_INDEXTYPE nIndex, OMX_IN OMX_PTR ComponentParameterStructure); +OMX_COLOR_FORMATTYPE Exynos_OSAL_GetANBColorFormat(OMX_IN OMX_U32 handle); + OMX_ERRORTYPE Exynos_OSAL_LockANB(OMX_IN OMX_PTR pBuffer, OMX_IN OMX_U32 width, OMX_IN OMX_U32 height, -- 2.20.1