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_H264dec.h
21 * @author SeungBeom Kim (sbcrux.kim@samsung.com)
27 #ifndef EXYNOS_OMX_H264_DEC_COMPONENT
28 #define EXYNOS_OMX_H264_DEC_COMPONENT
30 #include "Exynos_OMX_Def.h"
31 #include "OMX_Component.h"
32 #include "OMX_Video.h"
33 #include "ExynosVideoApi.h"
35 typedef struct _EXYNOS_MFC_H264DEC_HANDLE
37 OMX_HANDLETYPE hMFCHandle;
38 OMX_BOOL bShareableBuf;
39 OMX_U32 indexTimestamp;
40 OMX_U32 outputIndexTimestamp;
41 OMX_BOOL bConfiguredMFCSrc;
42 OMX_BOOL bConfiguredMFCDst;
44 #ifdef USE_S3D_SUPPORT
45 EXYNOS_OMX_FPARGMT_TYPE S3DFPArgmtType;
48 ExynosVideoColorFormatType MFCOutputColorType;
49 ExynosVideoDecOps *pDecOps;
50 ExynosVideoDecBufferOps *pInbufOps;
51 ExynosVideoDecBufferOps *pOutbufOps;
52 ExynosVideoGeometry codecOutbufConf;
53 } EXYNOS_MFC_H264DEC_HANDLE;
55 typedef struct _EXYNOS_H264DEC_HANDLE
57 /* OMX Codec specific */
58 OMX_VIDEO_PARAM_AVCTYPE AVCComponent[ALL_PORT_NUM];
59 OMX_VIDEO_PARAM_ERRORCORRECTIONTYPE errorCorrectionType[ALL_PORT_NUM];
61 /* EXYNOS MFC Codec specific */
62 EXYNOS_MFC_H264DEC_HANDLE hMFCH264Handle;
64 OMX_BOOL bSourceStart;
65 OMX_BOOL bDestinationStart;
66 OMX_HANDLETYPE hSourceStartEvent;
67 OMX_HANDLETYPE hDestinationStartEvent;
68 } EXYNOS_H264DEC_HANDLE;
74 OSCL_EXPORT_REF OMX_ERRORTYPE Exynos_OMX_ComponentInit(OMX_HANDLETYPE hComponent, OMX_STRING componentName);
75 OMX_ERRORTYPE Exynos_OMX_ComponentDeinit(OMX_HANDLETYPE hComponent);
77 OMX_ERRORTYPE H264CodecDstSetup(OMX_COMPONENTTYPE *pOMXComponent);
78 OMX_ERRORTYPE H264CodecCheckResolutionChange(OMX_COMPONENTTYPE *pOMXComponent);