for callback invoke when resolution is changed
[platform/adaptation/ap_samsung/libomxil-e3250-v4l2.git] / exynos4 / libcodec / video / v4l2 / dec / ExynosVideoDecoder.c
index 964686c..31217df 100755 (executable)
 #include "ExynosVideoApi.h"
 #include "ExynosVideoDec.h"
 
-//#include <mm_ta/mm_ta.h>
-
 /* #define LOG_NDEBUG 0 */
 #define LOG_TAG "ExynosVideoDecoder"
-#ifndef SLP_PLATFORM /* build env */
+#ifndef TIZEN_FEATURE_E3250 /* build env */
 #include <utils/Log.h>
-#else 
+#else
 #include "Exynos_OSAL_Log.h"
 #endif
 
@@ -1069,7 +1067,7 @@ static ExynosVideoErrorType MFC_Decoder_Setup_Outbuf(
                 pVideoPlane->allocSize = buf.m.planes[j].length;
                 pVideoPlane->dataSize = 0;
 
-#ifdef SLP_PLATFORM /* dmabuf */
+#ifdef TIZEN_FEATURE_E3250 /* dmabuf */
 #if 0
                 if (pCtx->bufShareMethod == BUF_SHARE_FD) {
                     exynos_v4l2_expbuf(pCtx->hDec, &pVideoPlane->fd, buf.m.planes[j].m.mem_offset);
@@ -1328,6 +1326,7 @@ static ExynosVideoErrorType MFC_Decoder_Register_Outbuf(
                 pCtx->pOutbuf[nIndex].planes[plane].addr = planes[plane].addr;
                 pCtx->pOutbuf[nIndex].planes[plane].allocSize = planes[plane].allocSize;
                 pCtx->pOutbuf[nIndex].planes[plane].fd = planes[plane].fd;
+                pCtx->pOutbuf[nIndex].planes[plane].tbm_bo = planes[plane].tbm_bo;
             }
             pCtx->pOutbuf[nIndex].bRegistered = VIDEO_TRUE;
             ALOGV("%s: registered buf %d 0:(addr=%p alloc_sz=%d fd=%d) 1:(addr=%p alloc_sz=%d fd=%d)\n",