From 306d2c906ef5efa3ae37679edb1090d8cc710d31 Mon Sep 17 00:00:00 2001 From: Taehwan Kim Date: Thu, 3 Jan 2013 09:08:23 +0000 Subject: [PATCH] common: added bNeedContigMem in port If needs to allocate physically contiguous buffer, bNeedContigMem is true. Change-Id: I72ac999e45f3206b4852e78e6eb7e1a812fd3dbf Signed-off-by: Taehwan Kim --- component/common/Exynos_OMX_Baseport.c | 2 ++ component/common/Exynos_OMX_Baseport.h | 1 + 2 files changed, 3 insertions(+) diff --git a/component/common/Exynos_OMX_Baseport.c b/component/common/Exynos_OMX_Baseport.c index 9f14f34..34baed2 100644 --- a/component/common/Exynos_OMX_Baseport.c +++ b/component/common/Exynos_OMX_Baseport.c @@ -611,6 +611,7 @@ OMX_ERRORTYPE Exynos_OMX_Port_Constructor(OMX_HANDLETYPE hComponent) pExynosInputPort->tunnelBufferNum = 0; pExynosInputPort->bufferSupplier = OMX_BufferSupplyUnspecified; pExynosInputPort->tunnelFlags = 0; + pExynosInputPort->bNeedContigMem = OMX_FALSE; ret = Exynos_OSAL_SemaphoreCreate(&pExynosInputPort->loadedResource); if (ret != OMX_ErrorNone) { Exynos_OSAL_Free(pExynosInputPort->bufferStateAllocate); @@ -701,6 +702,7 @@ OMX_ERRORTYPE Exynos_OMX_Port_Constructor(OMX_HANDLETYPE hComponent) pExynosOutputPort->tunnelBufferNum = 0; pExynosOutputPort->bufferSupplier = OMX_BufferSupplyUnspecified; pExynosOutputPort->tunnelFlags = 0; + pExynosOutputPort->bNeedContigMem = OMX_FALSE; ret = Exynos_OSAL_SemaphoreCreate(&pExynosOutputPort->loadedResource); if (ret != OMX_ErrorNone) { Exynos_OSAL_Free(pExynosOutputPort->bufferStateAllocate); diff --git a/component/common/Exynos_OMX_Baseport.h b/component/common/Exynos_OMX_Baseport.h index 6ec33e5..0802279 100644 --- a/component/common/Exynos_OMX_Baseport.h +++ b/component/common/Exynos_OMX_Baseport.h @@ -169,6 +169,7 @@ typedef struct _EXYNOS_OMX_BASEPORT OMX_BOOL bIsANBEnabled; OMX_BOOL bStoreMetaData; + OMX_BOOL bNeedContigMem; EXYNOS_OMX_BUFFERPROCESS_TYPE bufferProcessType; EXYNOS_OMX_PORT_WAY_TYPE portWayType; -- 2.20.1