int i, nOutbufs;
+ OMX_U32 nAllocLen[MFC_OUTPUT_BUFFER_PLANE] = {0, 0};
+ OMX_U32 dataLen[MFC_OUTPUT_BUFFER_PLANE] = {0, 0};
+
FunctionIn();
+ nAllocLen[0] = pH264Dec->hMFCH264Handle.codecOutbufConf.nAlignPlaneSize[0];
+ nAllocLen[1] = pH264Dec->hMFCH264Handle.codecOutbufConf.nAlignPlaneSize[1];
+
+ pOutbufOps->Set_Shareable(hMFCHandle);
+
if (pExynosOutputPort->bufferProcessType & BUFFER_COPY) {
/* should be done before prepare output buffer */
if (pOutbufOps->Enable_Cacheable(hMFCHandle) != VIDEO_ERROR_NONE) {
ret = OMX_ErrorInsufficientResources;
goto EXIT;
}
- }
-
- pOutbufOps->Set_Shareable(hMFCHandle);
- ExynosVideoPlane planes[MFC_OUTPUT_BUFFER_PLANE];
- OMX_U32 nAllocLen[MFC_OUTPUT_BUFFER_PLANE] = {0, 0};
- OMX_U32 dataLen[MFC_OUTPUT_BUFFER_PLANE] = {0, 0};
- int plane;
-
- nAllocLen[0] = pH264Dec->hMFCH264Handle.codecOutbufConf.nAlignPlaneSize[0];
- nAllocLen[1] = pH264Dec->hMFCH264Handle.codecOutbufConf.nAlignPlaneSize[1];
-
- if (pExynosOutputPort->bufferProcessType & BUFFER_COPY) {
/* get dpb count */
nOutbufs = pH264Dec->hMFCH264Handle.maxDPBNum;
if (pOutbufOps->Setup(hMFCHandle, nOutbufs) != VIDEO_ERROR_NONE) {
(unsigned int *)dataLen, MFC_OUTPUT_BUFFER_PLANE, NULL);
}
} else if (pExynosOutputPort->bufferProcessType & BUFFER_SHARE) {
+ ExynosVideoPlane planes[MFC_OUTPUT_BUFFER_PLANE];
+ int plane;
+
/* get dpb count */
nOutbufs = pExynosOutputPort->portDefinition.nBufferCountActual;
if (pOutbufOps->Setup(hMFCHandle, nOutbufs) != VIDEO_ERROR_NONE) {
int i, nOutbufs;
+ OMX_U32 nAllocLen[MFC_OUTPUT_BUFFER_PLANE] = {0, 0};
+ OMX_U32 dataLen[MFC_OUTPUT_BUFFER_PLANE] = {0, 0};
+
FunctionIn();
+ nAllocLen[0] = pMpeg2Dec->hMFCMpeg2Handle.codecOutbufConf.nAlignPlaneSize[0];
+ nAllocLen[1] = pMpeg2Dec->hMFCMpeg2Handle.codecOutbufConf.nAlignPlaneSize[1];
+
+ pOutbufOps->Set_Shareable(hMFCHandle);
+
if (pExynosOutputPort->bufferProcessType & BUFFER_COPY) {
/* should be done before prepare output buffer */
if (pOutbufOps->Enable_Cacheable(hMFCHandle) != VIDEO_ERROR_NONE) {
ret = OMX_ErrorInsufficientResources;
goto EXIT;
}
- }
-
- pOutbufOps->Set_Shareable(hMFCHandle);
- ExynosVideoPlane planes[MFC_OUTPUT_BUFFER_PLANE];
- OMX_U32 nAllocLen[MFC_OUTPUT_BUFFER_PLANE] = {0, 0};
- OMX_U32 dataLen[MFC_OUTPUT_BUFFER_PLANE] = {0, 0};
- int plane;
-
- nAllocLen[0] = pMpeg2Dec->hMFCMpeg2Handle.codecOutbufConf.nAlignPlaneSize[0];
- nAllocLen[1] = pMpeg2Dec->hMFCMpeg2Handle.codecOutbufConf.nAlignPlaneSize[1];
-
- if (pExynosOutputPort->bufferProcessType & BUFFER_COPY) {
/* get dpb count */
nOutbufs = pMpeg2Dec->hMFCMpeg2Handle.maxDPBNum;
if (pOutbufOps->Setup(hMFCHandle, nOutbufs) != VIDEO_ERROR_NONE) {
(unsigned int *)dataLen, MFC_OUTPUT_BUFFER_PLANE, NULL);
}
} else if (pExynosOutputPort->bufferProcessType & BUFFER_SHARE) {
+ ExynosVideoPlane planes[MFC_OUTPUT_BUFFER_PLANE];
+ int plane;
+
/* get dpb count */
nOutbufs = pExynosOutputPort->portDefinition.nBufferCountActual;
if (pOutbufOps->Setup(hMFCHandle, nOutbufs) != VIDEO_ERROR_NONE) {
int i, nOutbufs;
+ OMX_U32 nAllocLen[MFC_OUTPUT_BUFFER_PLANE] = {0, 0};
+ OMX_U32 dataLen[MFC_OUTPUT_BUFFER_PLANE] = {0, 0};
+
FunctionIn();
+ nAllocLen[0] = pMpeg4Dec->hMFCMpeg4Handle.codecOutbufConf.nAlignPlaneSize[0];
+ nAllocLen[1] = pMpeg4Dec->hMFCMpeg4Handle.codecOutbufConf.nAlignPlaneSize[1];
+
+ pOutbufOps->Set_Shareable(hMFCHandle);
+
if (pExynosOutputPort->bufferProcessType & BUFFER_COPY) {
/* should be done before prepare output buffer */
if (pOutbufOps->Enable_Cacheable(hMFCHandle) != VIDEO_ERROR_NONE) {
ret = OMX_ErrorInsufficientResources;
goto EXIT;
}
- }
- pOutbufOps->Set_Shareable(hMFCHandle);
- ExynosVideoPlane planes[MFC_OUTPUT_BUFFER_PLANE];
- OMX_U32 nAllocLen[MFC_OUTPUT_BUFFER_PLANE] = {0, 0};
- OMX_U32 dataLen[MFC_OUTPUT_BUFFER_PLANE] = {0, 0};
- int plane;
-
- nAllocLen[0] = pMpeg4Dec->hMFCMpeg4Handle.codecOutbufConf.nAlignPlaneSize[0];
- nAllocLen[1] = pMpeg4Dec->hMFCMpeg4Handle.codecOutbufConf.nAlignPlaneSize[1];
-
- if (pExynosOutputPort->bufferProcessType & BUFFER_COPY) {
/* get dpb count */
nOutbufs = pMpeg4Dec->hMFCMpeg4Handle.maxDPBNum;
if (pOutbufOps->Setup(hMFCHandle, nOutbufs) != VIDEO_ERROR_NONE) {
(unsigned int *)dataLen, MFC_OUTPUT_BUFFER_PLANE, NULL);
}
} else if (pExynosOutputPort->bufferProcessType & BUFFER_SHARE) {
+ ExynosVideoPlane planes[MFC_OUTPUT_BUFFER_PLANE];
+ int plane;
+
/* get dpb count */
nOutbufs = pExynosOutputPort->portDefinition.nBufferCountActual;
if (pOutbufOps->Setup(hMFCHandle, nOutbufs) != VIDEO_ERROR_NONE) {
int i, nOutbufs;
+ OMX_U32 nAllocLen[MFC_OUTPUT_BUFFER_PLANE] = {0, 0};
+ OMX_U32 dataLen[MFC_OUTPUT_BUFFER_PLANE] = {0, 0};
+
FunctionIn();
+ nAllocLen[0] = pWmvDec->hMFCWmvHandle.codecOutbufConf.nAlignPlaneSize[0];
+ nAllocLen[1] = pWmvDec->hMFCWmvHandle.codecOutbufConf.nAlignPlaneSize[1];
+
+ pOutbufOps->Set_Shareable(hMFCHandle);
+
if (pExynosOutputPort->bufferProcessType & BUFFER_COPY) {
/* should be done before prepare output buffer */
if (pOutbufOps->Enable_Cacheable(hMFCHandle) != VIDEO_ERROR_NONE) {
ret = OMX_ErrorInsufficientResources;
goto EXIT;
}
- }
-
- pOutbufOps->Set_Shareable(hMFCHandle);
- ExynosVideoPlane planes[MFC_OUTPUT_BUFFER_PLANE];
- OMX_U32 nAllocLen[MFC_OUTPUT_BUFFER_PLANE] = {0, 0};
- OMX_U32 dataLen[MFC_OUTPUT_BUFFER_PLANE] = {0, 0};
- int plane;
-
- nAllocLen[0] = pWmvDec->hMFCWmvHandle.codecOutbufConf.nAlignPlaneSize[0];
- nAllocLen[1] = pWmvDec->hMFCWmvHandle.codecOutbufConf.nAlignPlaneSize[1];
-
- if (pExynosOutputPort->bufferProcessType & BUFFER_COPY) {
/* get dpb count */
nOutbufs = pWmvDec->hMFCWmvHandle.maxDPBNum;
if (pOutbufOps->Setup(hMFCHandle, nOutbufs) != VIDEO_ERROR_NONE) {
(unsigned int *)dataLen, MFC_OUTPUT_BUFFER_PLANE, NULL);
}
} else if (pExynosOutputPort->bufferProcessType & BUFFER_SHARE) {
+ ExynosVideoPlane planes[MFC_OUTPUT_BUFFER_PLANE];
+ int plane;
+
/* get dpb count */
nOutbufs = pExynosOutputPort->portDefinition.nBufferCountActual;
if (pOutbufOps->Setup(hMFCHandle, nOutbufs) != VIDEO_ERROR_NONE) {
int i, nOutbufs;
+ OMX_U32 nAllocLen[MFC_OUTPUT_BUFFER_PLANE] = {0, 0};
+ OMX_U32 dataLen[MFC_OUTPUT_BUFFER_PLANE] = {0, 0};
+
FunctionIn();
+ nAllocLen[0] = pVp8Dec->hMFCVp8Handle.codecOutbufConf.nAlignPlaneSize[0];
+ nAllocLen[1] = pVp8Dec->hMFCVp8Handle.codecOutbufConf.nAlignPlaneSize[1];
+
+ pOutbufOps->Set_Shareable(hMFCHandle);
+
if (pExynosOutputPort->bufferProcessType & BUFFER_COPY) {
/* should be done before prepare output buffer */
if (pOutbufOps->Enable_Cacheable(hMFCHandle) != VIDEO_ERROR_NONE) {
ret = OMX_ErrorInsufficientResources;
goto EXIT;
}
- }
-
- pOutbufOps->Set_Shareable(hMFCHandle);
- ExynosVideoPlane planes[MFC_OUTPUT_BUFFER_PLANE];
- OMX_U32 nAllocLen[MFC_OUTPUT_BUFFER_PLANE] = {0, 0};
- OMX_U32 dataLen[MFC_OUTPUT_BUFFER_PLANE] = {0, 0};
- int plane;
-
- nAllocLen[0] = pVp8Dec->hMFCVp8Handle.codecOutbufConf.nAlignPlaneSize[0];
- nAllocLen[1] = pVp8Dec->hMFCVp8Handle.codecOutbufConf.nAlignPlaneSize[1];
-
- if (pExynosOutputPort->bufferProcessType & BUFFER_COPY) {
/* get dpb count */
nOutbufs = pVp8Dec->hMFCVp8Handle.maxDPBNum;
if (pOutbufOps->Setup(hMFCHandle, nOutbufs) != VIDEO_ERROR_NONE) {
(unsigned int *)dataLen, MFC_OUTPUT_BUFFER_PLANE, NULL);
}
} else if (pExynosOutputPort->bufferProcessType & BUFFER_SHARE) {
+ ExynosVideoPlane planes[MFC_OUTPUT_BUFFER_PLANE];
+ int plane;
+
/* get dpb count */
nOutbufs = pExynosOutputPort->portDefinition.nBufferCountActual;
if (pOutbufOps->Setup(hMFCHandle, nOutbufs) != VIDEO_ERROR_NONE) {