common: added bNeedContigMem in port
authorTaehwan Kim <t_h.kim@samsung.com>
Thu, 3 Jan 2013 09:08:23 +0000 (09:08 +0000)
committerTaehwan Kim <t_h.kim@samsung.com>
Thu, 17 Jan 2013 10:09:29 +0000 (10:09 +0000)
If needs to allocate physically contiguous buffer,
bNeedContigMem is true.

Change-Id: I72ac999e45f3206b4852e78e6eb7e1a812fd3dbf
Signed-off-by: Taehwan Kim <t_h.kim@samsung.com>
component/common/Exynos_OMX_Baseport.c
component/common/Exynos_OMX_Baseport.h

index 9f14f34d663a2e6de17eed89f7308b21ecc360ba..34baed2f09788bc26fc52df18c29a32c92a75c51 100644 (file)
@@ -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);
index 6ec33e5556322ad39a4625b5e62ac01867a0acab..08022796cca89cf0d7f5e0231376babb49860506 100644 (file)
@@ -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;