914ed64912e1b8b0f3b5c9bc682c6d5d8c9eb4f3
[GitHub/LineageOS/android_hardware_samsung_slsi_openmax.git] / component / video / dec / mpeg2 / Exynos_OMX_Mpeg2dec.h
1 /*
2 *
3 * Copyright 2012 Samsung Electronics S.LSI Co. LTD
4 *
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
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
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.
16 */
17
18 /*
19 * @file Exynos_OMX_Mpeg2dec.h
20 * @brief
21 * @author Satish Kumar Reddy (palli.satish@samsung.com)
22 * @version 2.0.0
23 * @history
24 * 2012.07.10 : Create
25 */
26
27 #ifndef EXYNOS_OMX_MPEG2_DEC_COMPONENT
28 #define EXYNOS_OMX_MPEG2_DEC_COMPONENT
29
30 #include "Exynos_OMX_Def.h"
31 #include "OMX_Component.h"
32 #include "OMX_Video.h"
33 #include "ExynosVideoApi.h"
34
35
36 typedef struct _EXYNOS_MFC_MPEG2DEC_HANDLE
37 {
38 OMX_HANDLETYPE hMFCHandle;
39 OMX_U32 indexTimestamp;
40 OMX_U32 outputIndexTimestamp;
41 OMX_BOOL bConfiguredMFCSrc;
42 OMX_BOOL bConfiguredMFCDst;
43 OMX_U32 maxDPBNum;
44
45 ExynosVideoColorFormatType MFCOutputColorType;
46 ExynosVideoDecOps *pDecOps;
47 ExynosVideoDecBufferOps *pInbufOps;
48 ExynosVideoDecBufferOps *pOutbufOps;
49 ExynosVideoGeometry codecOutbufConf;
50 } EXYNOS_MFC_MPEG2DEC_HANDLE;
51
52 typedef struct _EXYNOS_MPEG2DEC_HANDLE
53 {
54 /* OMX Codec specific */
55 OMX_VIDEO_PARAM_MPEG2TYPE Mpeg2Component[ALL_PORT_NUM];
56 OMX_VIDEO_PARAM_ERRORCORRECTIONTYPE errorCorrectionType[ALL_PORT_NUM];
57
58 /* EXYNOS MFC Codec specific */
59 EXYNOS_MFC_MPEG2DEC_HANDLE hMFCMpeg2Handle;
60
61 OMX_BOOL bSourceStart;
62 OMX_BOOL bDestinationStart;
63 OMX_HANDLETYPE hSourceStartEvent;
64 OMX_HANDLETYPE hDestinationStartEvent;
65 } EXYNOS_MPEG2DEC_HANDLE;
66
67 #ifdef __cplusplus
68 extern "C" {
69 #endif
70
71 OSCL_EXPORT_REF OMX_ERRORTYPE Exynos_OMX_ComponentInit(
72 OMX_HANDLETYPE hComponent,
73 OMX_STRING componentName);
74 OMX_ERRORTYPE Exynos_OMX_ComponentDeinit(
75 OMX_HANDLETYPE hComponent);
76
77 #ifdef __cplusplus
78 };
79 #endif
80
81 #endif