From 4e27e7532ec23357472d428c774141129eae1039 Mon Sep 17 00:00:00 2001 From: meka rama Date: Thu, 29 Nov 2012 14:59:49 +0900 Subject: [PATCH] vdec/venc: Added mem_type param for csc_set_src_buffer. Default, it is set to CSC_MEMORY_DMABUF. Change-Id: I3e4088609162c1c2d1161c82dd12abdf0d8963ee Signed-off-by: meka rama --- component/video/dec/Exynos_OMX_Vdec.c | 6 ++++-- component/video/enc/Exynos_OMX_Venc.c | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/component/video/dec/Exynos_OMX_Vdec.c b/component/video/dec/Exynos_OMX_Vdec.c index 94ce5f0..f6a6e8f 100644 --- a/component/video/dec/Exynos_OMX_Vdec.c +++ b/component/video/dec/Exynos_OMX_Vdec.c @@ -300,10 +300,12 @@ OMX_BOOL Exynos_CSC_OutputData(OMX_COMPONENTTYPE *pOMXComponent, EXYNOS_OMX_DATA } csc_set_src_buffer( pVideoDec->csc_handle, /* handle */ - pSrcBuf); /* YUV Addr or FD */ + pSrcBuf, + CSC_MEMORY_DMABUF); /* YUV Addr or FD */ csc_set_dst_buffer( pVideoDec->csc_handle, /* handle */ - pYUVBuf); /* YUV Addr or FD */ + pYUVBuf, + CSC_MEMORY_DMABUF); /* YUV Addr or FD */ cscRet = csc_convert(pVideoDec->csc_handle); if (cscRet != CSC_ErrorNone) ret = OMX_FALSE; diff --git a/component/video/enc/Exynos_OMX_Venc.c b/component/video/enc/Exynos_OMX_Venc.c index 0ec1161..ca6fbc8 100644 --- a/component/video/enc/Exynos_OMX_Venc.c +++ b/component/video/enc/Exynos_OMX_Venc.c @@ -293,10 +293,12 @@ OMX_BOOL Exynos_CSC_InputData(OMX_COMPONENTTYPE *pOMXComponent, EXYNOS_OMX_DATA cacheable); /* cacheable */ csc_set_src_buffer( pVideoEnc->csc_handle, /* handle */ - pSrcBuf); /* YUV Addr or FD */ + pSrcBuf, + CSC_MEMORY_DMABUF); /* YUV Addr or FD */ csc_set_dst_buffer( pVideoEnc->csc_handle, /* handle */ - pDstBuf); /* YUV Addr or FD */ + pDstBuf, + CSC_MEMORY_DMABUF); /* YUV Addr or FD */ cscRet = csc_convert(pVideoEnc->csc_handle); if (cscRet != CSC_ErrorNone) ret = OMX_FALSE; -- 2.20.1