blob: dc6457b6e26ec56d16153488b56c9dbaa0379a14 [file] [log] [blame]
Changwan Ryuc9a8a342013-10-28 11:32:47 +09001/*
2 * Copyright (c) 2010 The Khronos Group Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining
5 * a copy of this software and associated documentation files (the
6 * "Software"), to deal in the Software without restriction, including
7 * without limitation the rights to use, copy, modify, merge, publish,
8 * distribute, sublicense, and/or sell copies of the Software, and to
9 * permit persons to whom the Software is furnished to do so, subject
10 * to the following conditions:
11 * The above copyright notice and this permission notice shall be included
12 * in all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 *
22 */
23
24/** OMX_AudioExt.h - OpenMax IL version 1.1.2
25 * The OMX_AudioExt header file contains extensions to the
26 * definitions used by both the application and the component to
27 * access video items.
28 */
29
30#ifndef OMX_AudioExt_h
31#define OMX_AudioExt_h
32
33#ifdef __cplusplus
34extern "C" {
35#endif /* __cplusplus */
36
37/* Each OMX header shall include all required header files to allow the
38 * header to compile without errors. The includes below are required
39 * for this header file to compile successfully
40 */
41#include <OMX_Core.h>
42
43typedef enum OMX_AUDIO_CODINGEXTTYPE {
44 OMX_AUDIO_CodingAndroidUnused = OMX_AUDIO_CodingKhronosExtensions + 0x00100000,
45 OMX_AUDIO_CodingAndroidAC3, /**< AC3 encoded data */
Vignesh Venkatasubramanian1a8b0ed2014-02-03 14:21:31 -080046 OMX_AUDIO_CodingAndroidOPUS, /**< OPUS encoded data */
Changwan Ryuc9a8a342013-10-28 11:32:47 +090047} OMX_AUDIO_CODINGEXTTYPE;
48
49typedef struct OMX_AUDIO_PARAM_ANDROID_AC3TYPE {
50 OMX_U32 nSize; /**< size of the structure in bytes */
51 OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
52 OMX_U32 nPortIndex; /**< port that this structure applies to */
53 OMX_U32 nChannels; /**< Number of channels */
54 OMX_U32 nSampleRate; /**< Sampling rate of the source data. Use 0 for
55 variable or unknown sampling rate. */
56} OMX_AUDIO_PARAM_ANDROID_AC3TYPE;
57
Vignesh Venkatasubramanian1a8b0ed2014-02-03 14:21:31 -080058typedef struct OMX_AUDIO_PARAM_ANDROID_OPUSTYPE {
59 OMX_U32 nSize; /**< size of the structure in bytes */
60 OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
61 OMX_U32 nPortIndex; /**< port that this structure applies to */
62 OMX_U32 nChannels; /**< Number of channels */
63 OMX_U32 nBitRate; /**< Bit rate of the encoded data data. Use 0 for variable
64 rate or unknown bit rates. Encoding is set to the
65 bitrate closest to specified value (in bps) */
66 OMX_U32 nSampleRate; /**< Sampling rate of the source data. Use 0 for
67 variable or unknown sampling rate. */
68 OMX_U32 nAudioBandWidth; /**< Audio band width (in Hz) to which an encoder should
69 limit the audio signal. Use 0 to let encoder decide */
70} OMX_AUDIO_PARAM_ANDROID_OPUSTYPE;
71
Changwan Ryuc9a8a342013-10-28 11:32:47 +090072#ifdef __cplusplus
73}
74#endif /* __cplusplus */
75
76#endif /* OMX_AudioExt_h */
77/* File EOF */