3 * Copyright 2012 Samsung Electronics S.LSI Co. LTD
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
19 * @file Exynos_OMX_H264enc.h
21 * @author SeungBeom Kim (sbcrux.kim@samsung.com)
27 #ifndef EXYNOS_OMX_H264_ENC_COMPONENT
28 #define EXYNOS_OMX_H264_ENC_COMPONENT
30 #include "Exynos_OMX_Def.h"
31 #include "OMX_Component.h"
32 #include "OMX_Video.h"
34 #include "ExynosVideoApi.h"
36 typedef struct _EXTRA_DATA
44 typedef struct _EXYNOS_MFC_H264ENC_HANDLE
46 OMX_HANDLETYPE hMFCHandle;
47 OMX_BOOL bShareableBuf;
48 OMX_U32 indexTimestamp;
49 OMX_U32 outputIndexTimestamp;
50 OMX_BOOL bConfiguredMFCSrc;
51 OMX_BOOL bConfiguredMFCDst;
52 OMX_BOOL bPrependSpsPpsToIdr;
53 EXTRA_DATA headerData;
55 ExynosVideoDecOps *pEncOps;
56 ExynosVideoDecBufferOps *pInbufOps;
57 ExynosVideoDecBufferOps *pOutbufOps;
58 ExynosVideoEncParam encParam;
59 } EXYNOS_MFC_H264ENC_HANDLE;
61 typedef struct _EXYNOS_H264ENC_HANDLE
63 /* OMX Codec specific */
64 OMX_VIDEO_PARAM_AVCTYPE AVCComponent[ALL_PORT_NUM];
65 OMX_VIDEO_PARAM_ERRORCORRECTIONTYPE errorCorrectionType[ALL_PORT_NUM];
66 OMX_VIDEO_PARAM_AVCSLICEFMO AVCSliceFmo;
67 /* SEC MFC Codec specific */
68 EXYNOS_MFC_H264ENC_HANDLE hMFCH264Handle;
70 OMX_BOOL bSourceStart;
71 OMX_BOOL bDestinationStart;
72 OMX_HANDLETYPE hSourceStartEvent;
73 OMX_HANDLETYPE hDestinationStartEvent;
74 } EXYNOS_H264ENC_HANDLE;
80 OSCL_EXPORT_REF OMX_ERRORTYPE Exynos_OMX_ComponentInit(OMX_HANDLETYPE hComponent, OMX_STRING componentName);
81 OMX_ERRORTYPE Exynos_OMX_ComponentDeinit(OMX_HANDLETYPE hComponent);