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_Mpeg4enc.h
21 * @author Yunji Kim (yunji.kim@samsung.com)
27 #ifndef EXYNOS_OMX_MPEG4_ENC_COMPONENT
28 #define EXYNOS_OMX_MPEG4_ENC_COMPONENT
30 #include "Exynos_OMX_Def.h"
31 #include "OMX_Component.h"
32 #include "OMX_Video.h"
34 #include "ExynosVideoApi.h"
36 typedef enum _CODEC_TYPE
42 typedef struct _EXYNOS_MFC_MPEG4ENC_HANDLE
44 OMX_HANDLETYPE hMFCHandle
;
46 OMX_U32 indexTimestamp
;
47 OMX_U32 outputIndexTimestamp
;
48 OMX_BOOL bConfiguredMFCSrc
;
49 OMX_BOOL bConfiguredMFCDst
;
52 ExynosVideoEncOps
*pEncOps
;
53 ExynosVideoEncBufferOps
*pInbufOps
;
54 ExynosVideoEncBufferOps
*pOutbufOps
;
55 ExynosVideoEncParam encParam
;
56 ExynosVideoInstInfo videoInstInfo
;
58 #define MAX_PROFILE_NUM 4
59 OMX_S32 profiles
[MAX_PROFILE_NUM
];
62 } EXYNOS_MFC_MPEG4ENC_HANDLE
;
64 typedef struct _EXYNOS_MPEG4ENC_HANDLE
66 /* OMX Codec specific */
67 OMX_VIDEO_PARAM_H263TYPE h263Component
[ALL_PORT_NUM
];
68 OMX_VIDEO_PARAM_MPEG4TYPE mpeg4Component
[ALL_PORT_NUM
];
69 OMX_VIDEO_PARAM_ERRORCORRECTIONTYPE errorCorrectionType
[ALL_PORT_NUM
];
71 OMX_VIDEO_QPRANGE qpRangeI
;
72 OMX_VIDEO_QPRANGE qpRangeP
;
73 OMX_VIDEO_QPRANGE qpRangeB
; /* MPEG4 ONLY */
75 /* SEC MFC Codec specific */
76 EXYNOS_MFC_MPEG4ENC_HANDLE hMFCMpeg4Handle
;
78 OMX_BOOL bSourceStart
;
79 OMX_BOOL bDestinationStart
;
80 OMX_HANDLETYPE hSourceStartEvent
;
81 OMX_HANDLETYPE hDestinationStartEvent
;
83 EXYNOS_QUEUE bypassBufferInfoQ
;
84 } EXYNOS_MPEG4ENC_HANDLE
;
91 OSCL_EXPORT_REF OMX_ERRORTYPE
Exynos_OMX_ComponentInit(OMX_HANDLETYPE hComponent
, OMX_STRING componentName
);
92 OMX_ERRORTYPE
Exynos_OMX_ComponentDeinit(OMX_HANDLETYPE hComponent
);