return ALIGN(mbX * mbY, S5P_FIMV_DEC_BUF_ALIGN);
}
-inline void Exynos_UpdateFrameSize(OMX_COMPONENTTYPE *pOMXComponent)
+void Exynos_UpdateFrameSize(OMX_COMPONENTTYPE *pOMXComponent)
{
EXYNOS_OMX_BASECOMPONENT *pExynosComponent = (EXYNOS_OMX_BASECOMPONENT *)pOMXComponent->pComponentPrivate;
EXYNOS_OMX_BASEPORT *exynosInputPort = &pExynosComponent->pExynosPort[INPUT_PORT_INDEX];
EXYNOS_OMX_DATABUFFER *outputUseBuffer = &exynosOutputPort->way.port2WayDataBuffer.outputDataBuffer;
OMX_U32 copySize = 0;
DECODE_CODEC_EXTRA_BUFFERINFO *pBufferInfo = NULL;
-#ifdef TIZEN_FEATURE_E54XX
- MMVideoBuffer *pSlpOutBuf = NULL;
-#endif
FunctionIn();
imageSize = width * height;
colorFormat = pBufferInfo->ColorFormat;
-#ifdef TIZEN_FEATURE_E54XX
- pSlpOutBuf = (MMVideoBuffer *)pOutputBuf;
- pSlpOutBuf->width[0] = width;
- pSlpOutBuf->width[1] = width;
- pSlpOutBuf->height[0] = height;
- pSlpOutBuf->height[1] = height/2;
- pSlpOutBuf->stride_width[0] = ALIGN(width, S5P_FIMV_NV12M_HALIGN);
- pSlpOutBuf->stride_width[1] = ALIGN(width, S5P_FIMV_NV12M_HALIGN);
- pSlpOutBuf->stride_height[0] = ALIGN(height, S5P_FIMV_NV12M_HALIGN);
- pSlpOutBuf->stride_height[1] = ALIGN(height/2, S5P_FIMV_NV12M_HALIGN);
-
- if (pVideoDec->bDRMPlayerMode == OMX_TRUE) {
- pSlpOutBuf->data[0] = 0;
- pSlpOutBuf->data[1] = 0;
- } else {
- pSlpOutBuf->data[0] = dstOutputData->buffer.multiPlaneBuffer.dataBuffer[0];
- pSlpOutBuf->data[1] = dstOutputData->buffer.multiPlaneBuffer.dataBuffer[1];
- }
- pSlpOutBuf->data[2] = 0; /* omx do not use this plane */
-
-
- pSlpOutBuf->handle.dmabuf_fd[0] = dstOutputData->buffer.multiPlaneBuffer.fd[0];
- pSlpOutBuf->handle.dmabuf_fd[1] = dstOutputData->buffer.multiPlaneBuffer.fd[1];
- pSlpOutBuf->handle.dmabuf_fd[2] = 0; /* omx do not use this plane */
-
- pSlpOutBuf->handle.bo[0] = dstOutputData->buffer.multiPlaneBuffer.tbm_bo[0];
- pSlpOutBuf->handle.bo[1] = dstOutputData->buffer.multiPlaneBuffer.tbm_bo[1];
- pSlpOutBuf->handle.bo[2] = NULL;
-
- //pSlpOutBuf->type = MM_VIDEO_BUFFER_TYPE_DMABUF_FD;
- dstOutputData->dataLen = sizeof(MMVideoBuffer);
-
- Exynos_OSAL_Log(EXYNOS_LOG_TRACE, "%s: using fd instead of csc", __FUNCTION__);
- Exynos_OSAL_Log(EXYNOS_LOG_TRACE, "fd (%d, %d, %d) received from MFC", pSlpOutBuf->handle.dmabuf_fd[0], pSlpOutBuf->handle.dmabuf_fd[1],
- pSlpOutBuf->handle.dmabuf_fd[2]);
-
- ret = OMX_TRUE;
- goto EXIT;
-#endif
-
pSrcBuf[0] = dstOutputData->buffer.multiPlaneBuffer.dataBuffer[0];
pSrcBuf[1] = dstOutputData->buffer.multiPlaneBuffer.dataBuffer[1];
pSrcBuf[2] = dstOutputData->buffer.multiPlaneBuffer.dataBuffer[2];
#ifdef USE_PB
if (exynosOutputPort->bIsPBEnabled == OMX_TRUE) {
ExynosVideoPlane planes[MAX_BUFFER_PLANE];
- OMX_U32 stride;
+ OMX_U32 stride = 0;
Exynos_OSAL_LockPB(pOutputBuf, width, height, exynosOutputPort->portDefinition.format.video.eColorFormat, &stride, planes);
width = stride;
outputUseBuffer->dataLen = sizeof(void *);
int calc_plane(int width, int height);
int calc_yplane(int width, int height);
int calc_uvplane(int width, int height);
-inline void Exynos_UpdateFrameSize(OMX_COMPONENTTYPE *pOMXComponent);
+void Exynos_UpdateFrameSize(OMX_COMPONENTTYPE *pOMXComponent);
OMX_BOOL Exynos_Check_BufferProcess_State(EXYNOS_OMX_BASECOMPONENT *pExynosComponent, OMX_U32 nPortIndex);
OMX_ERRORTYPE Exynos_Input_CodecBufferToData(EXYNOS_OMX_BASECOMPONENT *pExynosComponent, OMX_PTR codecBuffer, EXYNOS_OMX_DATA *pData);
OMX_ERRORTYPE Exynos_Output_CodecBufferToData(EXYNOS_OMX_BASECOMPONENT *pExynosComponent, OMX_PTR codecBuffer, EXYNOS_OMX_DATA *pData);