Exynos_CodecBufferReset(pExynosComponent, OUTPUT_PORT_INDEX);
pBufferOps->Clear_RegisteredBuffer(hMFCHandle);
pBufferOps->Cleanup_Buffer(hMFCHandle);
-
- /******************************************************/
- /* V4L2 Destnation Setup for DPB Buffer Number Change */
- /******************************************************/
- H264CodecDstSetup(pOMXComponent);
-
- pVideoDec->bReconfigDPB = OMX_FALSE;
} else if (pExynosPort->bufferProcessType & BUFFER_SHARE) {
/**********************************/
/* Codec Buffer Unregister */
pBufferOps->Clear_RegisteredBuffer(hMFCHandle);
pBufferOps->Cleanup_Buffer(hMFCHandle);
}
+ /******************************************************/
+ /* V4L2 Destnation Setup for DPB Buffer Number Change */
+ /******************************************************/
+ H264CodecDstSetup(pOMXComponent);
+ pVideoDec->bReconfigDPB = OMX_FALSE;
Exynos_ResolutionUpdate(pOMXComponent);
} else {
pDstInputData->buffer.multiPlaneBuffer.fd[0],
pDstInputData->buffer.multiPlaneBuffer.fd[1]);
- if ((pVideoDec->bReconfigDPB == OMX_TRUE) &&
- (pExynosOutputPort->bufferProcessType & BUFFER_SHARE) &&
- (pExynosOutputPort->exceptionFlag == GENERAL_STATE)) {
- ret = H264CodecDstSetup(pOMXComponent);
- if (ret != OMX_ErrorNone)
- goto EXIT;
- pVideoDec->bReconfigDPB = OMX_FALSE;
- }
-
OMX_U32 nAllocLen[VIDEO_BUFFER_MAX_PLANES] = {0, 0, 0};
nAllocLen[0] = pExynosOutputPort->portDefinition.format.video.nFrameWidth * pExynosOutputPort->portDefinition.format.video.nFrameHeight;
nAllocLen[1] = pExynosOutputPort->portDefinition.format.video.nFrameWidth * pExynosOutputPort->portDefinition.format.video.nFrameHeight / 2;