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_Mpeg4dec.h
21 * @author Yunji Kim (yunji.kim@samsung.com)
22 * @author SeungBeom Kim (sbcrux.kim@samsung.com)
28 #ifndef EXYNOS_OMX_MPEG4_DEC_COMPONENT
29 #define EXYNOS_OMX_MPEG4_DEC_COMPONENT
31 #include "Exynos_OMX_Def.h"
32 #include "OMX_Component.h"
33 #include "OMX_Video.h"
34 #include "ExynosVideoApi.h"
37 typedef enum _CODEC_TYPE
44 * This structure is the same as BitmapInfoHhr struct in pv_avifile_typedefs.h file
46 typedef struct _BitmapInfoHhr
53 OMX_U32 BiCompression
;
55 OMX_U32 BiXPelsPerMeter
;
56 OMX_U32 BiYPelsPerMeter
;
58 OMX_U32 BiClrImportant
;
61 typedef struct _EXYNOS_MFC_MPEG4DEC_HANDLE
63 OMX_HANDLETYPE hMFCHandle
;
64 OMX_U32 indexTimestamp
;
65 OMX_U32 outputIndexTimestamp
;
66 OMX_BOOL bConfiguredMFCSrc
;
67 OMX_BOOL bConfiguredMFCDst
;
71 ExynosVideoColorFormatType MFCOutputColorType
;
72 ExynosVideoDecOps
*pDecOps
;
73 ExynosVideoDecBufferOps
*pInbufOps
;
74 ExynosVideoDecBufferOps
*pOutbufOps
;
75 ExynosVideoGeometry codecOutbufConf
;
76 } EXYNOS_MFC_MPEG4DEC_HANDLE
;
78 typedef struct _EXYNOS_MPEG4DEC_HANDLE
80 /* OMX Codec specific */
81 OMX_VIDEO_PARAM_H263TYPE h263Component
[ALL_PORT_NUM
];
82 OMX_VIDEO_PARAM_MPEG4TYPE mpeg4Component
[ALL_PORT_NUM
];
83 OMX_VIDEO_PARAM_ERRORCORRECTIONTYPE errorCorrectionType
[ALL_PORT_NUM
];
85 /* EXYNOS MFC Codec specific */
86 EXYNOS_MFC_MPEG4DEC_HANDLE hMFCMpeg4Handle
;
88 OMX_BOOL bSourceStart
;
89 OMX_BOOL bDestinationStart
;
90 OMX_HANDLETYPE hSourceStartEvent
;
91 OMX_HANDLETYPE hDestinationStartEvent
;
93 EXYNOS_QUEUE bypassBufferInfoQ
;
94 } EXYNOS_MPEG4DEC_HANDLE
;
100 OSCL_EXPORT_REF OMX_ERRORTYPE
Exynos_OMX_ComponentInit(
101 OMX_HANDLETYPE hComponent
,
102 OMX_STRING componentName
);
103 OMX_ERRORTYPE
Exynos_OMX_ComponentDeinit(
104 OMX_HANDLETYPE hComponent
);