for callback invoke when resolution is changed
[platform/adaptation/ap_samsung/libomxil-e3250-v4l2.git] / openmax / component / audio / dec / mp3 / Exynos_OMX_Mp3dec.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_Mp3dec.h
20  * @brief
21  * @author      Yunji Kim (yunji.kim@samsung.com)
22  * @version     1.1.0
23  * @history
24  *   2012.02.28 : Create
25  */
26
27 #ifndef EXYNOS_OMX_MP3_DEC_COMPONENT
28 #define EXYNOS_OMX_MP3_DEC_COMPONENT
29
30 #include "Exynos_OMX_Def.h"
31 #include "OMX_Component.h"
32
33 typedef struct _EXYNOS_SRP_MP3_HANDLE
34 {
35     OMX_HANDLETYPE hSRPHandle;
36     OMX_BOOL       bConfiguredSRP;
37     OMX_BOOL       bSRPLoaded;
38     OMX_BOOL       bSRPSendEOS;
39     OMX_S32        returnCodec;
40 } EXYNOS_SRP_MP3_HANDLE;
41
42 typedef struct _EXYNOS_MP3_HANDLE
43 {
44     /* OMX Codec specific */
45     OMX_AUDIO_PARAM_MP3TYPE     mp3Param;
46     OMX_AUDIO_PARAM_PCMMODETYPE pcmParam;
47
48     /* SEC SRP Codec specific */
49     EXYNOS_SRP_MP3_HANDLE      hSRPMp3Handle;
50
51 #ifdef TIZEN_FEATURE_E3250
52     OMX_TICKS                   timeStamp;
53     OMX_U32                     nPendingflags;
54 #endif
55 } EXYNOS_MP3_HANDLE;
56
57 #ifdef __cplusplus
58 extern "C" {
59 #endif
60
61 OSCL_EXPORT_REF OMX_ERRORTYPE Exynos_OMX_ComponentInit(OMX_HANDLETYPE hComponent, OMX_STRING componentName);
62                 OMX_ERRORTYPE Exynos_OMX_ComponentDeinit(OMX_HANDLETYPE hComponent);
63
64 #ifdef __cplusplus
65 };
66 #endif
67
68 #endif /* EXYNOS_OMX_MP3_DEC_COMPONENT */