remove tab & line.
Change-Id: I1486e8acf919657d4161b943f679bce3ffb5a90b
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
#include "Exynos_OMX_Basecomponent.h"
#include "ExynosVideoApi.h"
-#define MAX_VIDEO_INPUTBUFFER_NUM 5
-#define MAX_VIDEO_OUTPUTBUFFER_NUM 2
+#define MAX_VIDEO_INPUTBUFFER_NUM 5
+#define MAX_VIDEO_OUTPUTBUFFER_NUM 2
-#define DEFAULT_FRAME_WIDTH 176
-#define DEFAULT_FRAME_HEIGHT 144
+#define DEFAULT_FRAME_WIDTH 176
+#define DEFAULT_FRAME_HEIGHT 144
#define DEFAULT_VIDEO_INPUT_BUFFER_SIZE (DEFAULT_FRAME_WIDTH * DEFAULT_FRAME_HEIGHT) * 2
#define DEFAULT_VIDEO_OUTPUT_BUFFER_SIZE (DEFAULT_FRAME_WIDTH * DEFAULT_FRAME_HEIGHT * 3) / 2
typedef struct _EXYNOS_MFC_H264DEC_HANDLE
{
- OMX_HANDLETYPE hMFCHandle;
- OMX_U32 indexTimestamp;
- OMX_U32 outputIndexTimestamp;
- OMX_BOOL bConfiguredMFCSrc;
- OMX_BOOL bConfiguredMFCDst;
- OMX_U32 MAXDPBNum;
+ OMX_HANDLETYPE hMFCHandle;
+ OMX_U32 indexTimestamp;
+ OMX_U32 outputIndexTimestamp;
+ OMX_BOOL bConfiguredMFCSrc;
+ OMX_BOOL bConfiguredMFCDst;
+ OMX_U32 MAXDPBNum;
ExynosVideoColorFormatType MFCOutputColorType;
- ExynosVideoDecOps *pDecOps;
- ExynosVideoDecBufferOps *pInbufOps;
- ExynosVideoDecBufferOps *pOutbufOps;
- ExynosVideoGeometry codecOutbufConf;
+ ExynosVideoDecOps *pDecOps;
+ ExynosVideoDecBufferOps *pInbufOps;
+ ExynosVideoDecBufferOps *pOutbufOps;
+ ExynosVideoGeometry codecOutbufConf;
} EXYNOS_MFC_H264DEC_HANDLE;
typedef struct _EXYNOS_H264DEC_HANDLE
return MAX_COMPONENT_NUM;
}
-
/*
* @file Exynos_OMX_Mpeg4dec.c
* @brief
- * @author SeungBeom Kim (sbcrux.kim@samsung.com)
* @author Yunji Kim (yunji.kim@samsung.com)
+ * @author SeungBeom Kim (sbcrux.kim@samsung.com)
* @version 2.0.0
* @history
* 2012.02.20 : Create
/*
* @file Exynos_OMX_Mpeg4dec.h
* @brief
- * @author SeungBeom Kim (sbcrux.kim@samsung.com)
* @author Yunji Kim (yunji.kim@samsung.com)
+ * @author SeungBeom Kim (sbcrux.kim@samsung.com)
* @version 2.0.0
* @history
* 2012.02.20 : Create
typedef struct _EXYNOS_MFC_MPEG4DEC_HANDLE
{
- OMX_HANDLETYPE hMFCHandle;
- OMX_U32 indexTimestamp;
- OMX_U32 outputIndexTimestamp;
- OMX_BOOL bConfiguredMFCSrc;
- OMX_BOOL bConfiguredMFCDst;
- OMX_U32 MAXDPBNum;
- CODEC_TYPE codecType;
+ OMX_HANDLETYPE hMFCHandle;
+ OMX_U32 indexTimestamp;
+ OMX_U32 outputIndexTimestamp;
+ OMX_BOOL bConfiguredMFCSrc;
+ OMX_BOOL bConfiguredMFCDst;
+ OMX_U32 MAXDPBNum;
+ CODEC_TYPE codecType;
ExynosVideoColorFormatType MFCOutputColorType;
- ExynosVideoDecOps *pDecOps;
- ExynosVideoDecBufferOps *pInbufOps;
- ExynosVideoDecBufferOps *pOutbufOps;
- ExynosVideoGeometry codecOutbufConf;
+ ExynosVideoDecOps *pDecOps;
+ ExynosVideoDecBufferOps *pInbufOps;
+ ExynosVideoDecBufferOps *pOutbufOps;
+ ExynosVideoGeometry codecOutbufConf;
} EXYNOS_MFC_MPEG4DEC_HANDLE;
typedef struct _EXYNOS_MPEG4DEC_HANDLE
OMX_VIDEO_PARAM_ERRORCORRECTIONTYPE errorCorrectionType[ALL_PORT_NUM];
/* EXYNOS MFC Codec specific */
- EXYNOS_MFC_MPEG4DEC_HANDLE hMFCMpeg4Handle;
+ EXYNOS_MFC_MPEG4DEC_HANDLE hMFCMpeg4Handle;
OMX_BOOL bSourceStart;
OMX_BOOL bDestinationStart;
#define OSCL_EXPORT_REF __attribute__((visibility("default")))
-#define MAX_COMPONENT_NUM 2
+#define MAX_COMPONENT_NUM 2
#define MAX_COMPONENT_ROLE_NUM 1
/* MPEG4 */
#endif
#endif
-
typedef struct _EXYNOS_MFC_VP8DEC_HANDLE
{
- OMX_HANDLETYPE hMFCHandle;
- OMX_U32 indexTimestamp;
- OMX_U32 outputIndexTimestamp;
- OMX_BOOL bConfiguredMFCSrc;
- OMX_BOOL bConfiguredMFCDst;
- OMX_U32 MAXDPBNum;
+ OMX_HANDLETYPE hMFCHandle;
+ OMX_U32 indexTimestamp;
+ OMX_U32 outputIndexTimestamp;
+ OMX_BOOL bConfiguredMFCSrc;
+ OMX_BOOL bConfiguredMFCDst;
+ OMX_U32 MAXDPBNum;
ExynosVideoColorFormatType MFCOutputColorType;
- ExynosVideoDecOps *pDecOps;
- ExynosVideoDecBufferOps *pInbufOps;
- ExynosVideoDecBufferOps *pOutbufOps;
- ExynosVideoGeometry codecOutbufConf;
+ ExynosVideoDecOps *pDecOps;
+ ExynosVideoDecBufferOps *pInbufOps;
+ ExynosVideoDecBufferOps *pOutbufOps;
+ ExynosVideoGeometry codecOutbufConf;
} EXYNOS_MFC_VP8DEC_HANDLE;
typedef struct _EXYNOS_VP8DEC_HANDLE
exynosOutputPort->portDefinition.nBufferSize = (width * height * 3) / 2;
}
- return ;
+ return;
}
OMX_BOOL Exynos_Check_BufferProcess_State(EXYNOS_OMX_BASECOMPONENT *pExynosComponent, OMX_U32 nPortIndex)
ret = Exynos_OutputBufferGetQueue(pExynosComponent);
if (ret != OMX_ErrorNone) {
Exynos_OSAL_MutexUnlock(dstInputUseBuffer->bufferMutex);
- break;
+ break;
}
Exynos_Shared_BufferToData(dstInputUseBuffer, &dstInputData, ONE_PLANE);
Exynos_ResetDataBuffer(dstInputUseBuffer);
}
if (pExynosPort->bufferProcessType == BUFFER_SHARE) {
- temp_buffer = Exynos_OSAL_SharedMemory_Alloc(pVideoDec->hSharedMemory, nSizeBytes, NORMAL_MEMORY);
+ temp_buffer = Exynos_OSAL_SharedMemory_Alloc(pVideoDec->hSharedMemory, nSizeBytes, NORMAL_MEMORY);
if (temp_buffer == NULL) {
ret = OMX_ErrorInsufficientResources;
goto EXIT;
}
pExynosComponent->pExynosPort[nPortIndex].bIsPortFlushed = OMX_FALSE;
- Exynos_OSAL_Log(EXYNOS_LOG_TRACE,"OMX_CommandFlush EventCmdComplete, port:%d", pOMXComponent, nPortIndex);
+ Exynos_OSAL_Log(EXYNOS_LOG_TRACE,"OMX_CommandFlush EventCmdComplete, port:%d", nPortIndex);
if (bEvent == OMX_TRUE)
pExynosComponent->pCallbacks->EventHandler((OMX_HANDLETYPE)pOMXComponent,
pExynosComponent->callbackData,
goto EXIT;
}
}
- if(pPortDefinition->nBufferCountActual < pExynosPort->portDefinition.nBufferCountMin) {
+ if (pPortDefinition->nBufferCountActual < pExynosPort->portDefinition.nBufferCountMin) {
ret = OMX_ErrorBadParameter;
goto EXIT;
}
OSCL_EXPORT_REF int Exynos_OMX_COMPONENT_Library_Register(ExynosRegisterComponentType **exynosComponents)
{
- FunctionIn();
+ FunctionIn();
- if (exynosComponents == NULL)
- goto EXIT;
+ if (exynosComponents == NULL)
+ goto EXIT;
- /* component 1 - video decoder H.264 */
- Exynos_OSAL_Strcpy(exynosComponents[0]->componentName, EXYNOS_OMX_COMPONENT_H264_ENC);
- Exynos_OSAL_Strcpy(exynosComponents[0]->roles[0], EXYNOS_OMX_COMPONENT_H264_ENC_ROLE);
- exynosComponents[0]->totalRoleNum = MAX_COMPONENT_ROLE_NUM;
+ /* component 1 - video decoder H.264 */
+ Exynos_OSAL_Strcpy(exynosComponents[0]->componentName, EXYNOS_OMX_COMPONENT_H264_ENC);
+ Exynos_OSAL_Strcpy(exynosComponents[0]->roles[0], EXYNOS_OMX_COMPONENT_H264_ENC_ROLE);
+ exynosComponents[0]->totalRoleNum = MAX_COMPONENT_ROLE_NUM;
EXIT:
- FunctionOut();
+ FunctionOut();
- return MAX_COMPONENT_NUM;
+ return MAX_COMPONENT_NUM;
}
Set_H263Enc_Param(pExynosComponent);
}
-
OMX_ERRORTYPE GetCodecInputPrivateData(OMX_PTR codecBuffer, OMX_PTR addr[], OMX_U32 size[])
{
OMX_ERRORTYPE ret = OMX_ErrorNone;
return ret;
}
-
OMX_ERRORTYPE GetCodecOutputPrivateData(OMX_PTR codecBuffer, OMX_PTR *pVirtAddr, OMX_U32 *dataSize)
{
OMX_ERRORTYPE ret = OMX_ErrorNone;
return ret;
}
-static OMX_ERRORTYPE useAndroidNativeBuffer(
+OMX_ERRORTYPE useAndroidNativeBuffer(
EXYNOS_OMX_BASEPORT *pExynosPort,
OMX_BUFFERHEADERTYPE **ppBufferHdr,
OMX_U32 nPortIndex,
}
Exynos_OSAL_Memset(temp_bufferHeader, 0, sizeof(OMX_BUFFERHEADERTYPE));
-
for (i = 0; i < pExynosPort->portDefinition.nBufferCountActual; i++) {
if (pExynosPort->bufferStateAllocate[i] == BUFFER_STATE_FREE) {
pExynosPort->extendBufferHeader[i].OMXBufferHeader = temp_bufferHeader;
Exynos_OSAL_Memcpy(&type, (MetadataBufferType *)pBuffer, sizeof(MetadataBufferType));
if (type == kMetadataBufferTypeCameraSource) {
- void *pAddress = NULL;
+ void *pAddress = NULL;
/* Address. of Y */
Exynos_OSAL_Memcpy(&pAddress, pBuffer + sizeof(MetadataBufferType), sizeof(void *));
- ppBuf[0] = (void *)pAddress;
+ ppBuf[0] = (void *)pAddress;
/* Address. of CbCr */
Exynos_OSAL_Memcpy(&pAddress, pBuffer + sizeof(MetadataBufferType) + sizeof(void *), sizeof(void *));
- ppBuf[1] = (void *)pAddress;
+ ppBuf[1] = (void *)pAddress;
} else if (type == kMetadataBufferTypeGrallocSource) {
- buffer_handle_t pBufHandle;
+ buffer_handle_t pBufHandle;
/* buffer_handle_t */
Exynos_OSAL_Memcpy(&pBufHandle, pBuffer + sizeof(MetadataBufferType), sizeof(buffer_handle_t));
EXIT:
return pBuffer;
}
-