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
33typedef 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
42typedef 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} EXYNOS_MP3_HANDLE;
51
52#ifdef __cplusplus
53extern "C" {
54#endif
55
56OSCL_EXPORT_REF OMX_ERRORTYPE Exynos_OMX_ComponentInit(OMX_HANDLETYPE hComponent, OMX_STRING componentName);
57                OMX_ERRORTYPE Exynos_OMX_ComponentDeinit(OMX_HANDLETYPE hComponent);
58
59#ifdef __cplusplus
60};
61#endif
62
63#endif /* EXYNOS_OMX_MP3_DEC_COMPONENT */
64