1334de520b0369215b7931fefa424fb92d295f0ebJames Dong/* ------------------------------------------------------------------
2334de520b0369215b7931fefa424fb92d295f0ebJames Dong * Copyright (C) 1998-2009 PacketVideo
3334de520b0369215b7931fefa424fb92d295f0ebJames Dong *
4334de520b0369215b7931fefa424fb92d295f0ebJames Dong * Licensed under the Apache License, Version 2.0 (the "License");
5334de520b0369215b7931fefa424fb92d295f0ebJames Dong * you may not use this file except in compliance with the License.
6334de520b0369215b7931fefa424fb92d295f0ebJames Dong * You may obtain a copy of the License at
7334de520b0369215b7931fefa424fb92d295f0ebJames Dong *
8334de520b0369215b7931fefa424fb92d295f0ebJames Dong *      http://www.apache.org/licenses/LICENSE-2.0
9334de520b0369215b7931fefa424fb92d295f0ebJames Dong *
10334de520b0369215b7931fefa424fb92d295f0ebJames Dong * Unless required by applicable law or agreed to in writing, software
11334de520b0369215b7931fefa424fb92d295f0ebJames Dong * distributed under the License is distributed on an "AS IS" BASIS,
12334de520b0369215b7931fefa424fb92d295f0ebJames Dong * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13334de520b0369215b7931fefa424fb92d295f0ebJames Dong * express or implied.
14334de520b0369215b7931fefa424fb92d295f0ebJames Dong * See the License for the specific language governing permissions
15334de520b0369215b7931fefa424fb92d295f0ebJames Dong * and limitations under the License.
16334de520b0369215b7931fefa424fb92d295f0ebJames Dong * -------------------------------------------------------------------
17334de520b0369215b7931fefa424fb92d295f0ebJames Dong */
18334de520b0369215b7931fefa424fb92d295f0ebJames Dong/*
19a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar * Copyright (c) 2008 The Khronos Group Inc.
20a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar *
21334de520b0369215b7931fefa424fb92d295f0ebJames Dong * Permission is hereby granted, free of charge, to any person obtaining
22334de520b0369215b7931fefa424fb92d295f0ebJames Dong * a copy of this software and associated documentation files (the
23334de520b0369215b7931fefa424fb92d295f0ebJames Dong * "Software"), to deal in the Software without restriction, including
24334de520b0369215b7931fefa424fb92d295f0ebJames Dong * without limitation the rights to use, copy, modify, merge, publish,
25334de520b0369215b7931fefa424fb92d295f0ebJames Dong * distribute, sublicense, and/or sell copies of the Software, and to
26334de520b0369215b7931fefa424fb92d295f0ebJames Dong * permit persons to whom the Software is furnished to do so, subject
27a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar * to the following conditions:
28334de520b0369215b7931fefa424fb92d295f0ebJames Dong * The above copyright notice and this permission notice shall be included
29a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar * in all copies or substantial portions of the Software.
30a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar *
31334de520b0369215b7931fefa424fb92d295f0ebJames Dong * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
32334de520b0369215b7931fefa424fb92d295f0ebJames Dong * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
33334de520b0369215b7931fefa424fb92d295f0ebJames Dong * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
34334de520b0369215b7931fefa424fb92d295f0ebJames Dong * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
35334de520b0369215b7931fefa424fb92d295f0ebJames Dong * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
36334de520b0369215b7931fefa424fb92d295f0ebJames Dong * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
37a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
38334de520b0369215b7931fefa424fb92d295f0ebJames Dong *
39334de520b0369215b7931fefa424fb92d295f0ebJames Dong */
40334de520b0369215b7931fefa424fb92d295f0ebJames Dong
41334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** @file OMX_Audio.h - OpenMax IL version 1.1.2
42334de520b0369215b7931fefa424fb92d295f0ebJames Dong *  The structures needed by Audio components to exchange
43334de520b0369215b7931fefa424fb92d295f0ebJames Dong *  parameters and configuration data with the componenmilts.
44334de520b0369215b7931fefa424fb92d295f0ebJames Dong */
45334de520b0369215b7931fefa424fb92d295f0ebJames Dong
46334de520b0369215b7931fefa424fb92d295f0ebJames Dong#ifndef OMX_Audio_h
47334de520b0369215b7931fefa424fb92d295f0ebJames Dong#define OMX_Audio_h
48334de520b0369215b7931fefa424fb92d295f0ebJames Dong
49334de520b0369215b7931fefa424fb92d295f0ebJames Dong#ifdef __cplusplus
50334de520b0369215b7931fefa424fb92d295f0ebJames Dongextern "C" {
51334de520b0369215b7931fefa424fb92d295f0ebJames Dong#endif /* __cplusplus */
52334de520b0369215b7931fefa424fb92d295f0ebJames Dong
53334de520b0369215b7931fefa424fb92d295f0ebJames Dong/* Each OMX header must include all required header files to allow the
54334de520b0369215b7931fefa424fb92d295f0ebJames Dong *  header to compile without errors.  The includes below are required
55a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar *  for this header file to compile successfully
56334de520b0369215b7931fefa424fb92d295f0ebJames Dong */
57334de520b0369215b7931fefa424fb92d295f0ebJames Dong
58334de520b0369215b7931fefa424fb92d295f0ebJames Dong#include <OMX_Core.h>
59334de520b0369215b7931fefa424fb92d295f0ebJames Dong
60334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** @defgroup midi MIDI
61334de520b0369215b7931fefa424fb92d295f0ebJames Dong * @ingroup audio
62334de520b0369215b7931fefa424fb92d295f0ebJames Dong */
63a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
64334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** @defgroup effects Audio effects
65334de520b0369215b7931fefa424fb92d295f0ebJames Dong * @ingroup audio
66334de520b0369215b7931fefa424fb92d295f0ebJames Dong */
67334de520b0369215b7931fefa424fb92d295f0ebJames Dong
68334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** @defgroup audio OpenMAX IL Audio Domain
69334de520b0369215b7931fefa424fb92d295f0ebJames Dong * Structures for OpenMAX IL Audio domain
70334de520b0369215b7931fefa424fb92d295f0ebJames Dong * @{
71334de520b0369215b7931fefa424fb92d295f0ebJames Dong */
72334de520b0369215b7931fefa424fb92d295f0ebJames Dong
73a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/** Enumeration used to define the possible audio codings.
74a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar *  If "OMX_AUDIO_CodingUnused" is selected, the coding selection must
75a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar *  be done in a vendor specific way.  Since this is for an audio
76a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar *  processing element this enum is relevant.  However, for another
77334de520b0369215b7931fefa424fb92d295f0ebJames Dong *  type of component other enums would be in this area.
78334de520b0369215b7931fefa424fb92d295f0ebJames Dong */
79334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef enum OMX_AUDIO_CODINGTYPE {
80334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingUnused = 0,  /**< Placeholder value when coding is N/A  */
81334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingAutoDetect,  /**< auto detection of audio format */
82334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingPCM,         /**< Any variant of PCM coding */
83334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingADPCM,       /**< Any variant of ADPCM encoded data */
84334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingAMR,         /**< Any variant of AMR encoded data */
85334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingGSMFR,       /**< Any variant of GSM fullrate (i.e. GSM610) */
86334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingGSMEFR,      /**< Any variant of GSM Enhanced Fullrate encoded data*/
87334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingGSMHR,       /**< Any variant of GSM Halfrate encoded data */
88334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingPDCFR,       /**< Any variant of PDC Fullrate encoded data */
89334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingPDCEFR,      /**< Any variant of PDC Enhanced Fullrate encoded data */
90334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingPDCHR,       /**< Any variant of PDC Halfrate encoded data */
91334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingTDMAFR,      /**< Any variant of TDMA Fullrate encoded data (TIA/EIA-136-420) */
92334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingTDMAEFR,     /**< Any variant of TDMA Enhanced Fullrate encoded data (TIA/EIA-136-410) */
93334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingQCELP8,      /**< Any variant of QCELP 8kbps encoded data */
94334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingQCELP13,     /**< Any variant of QCELP 13kbps encoded data */
95334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingEVRC,        /**< Any variant of EVRC encoded data */
96334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingSMV,         /**< Any variant of SMV encoded data */
97334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingG711,        /**< Any variant of G.711 encoded data */
98334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingG723,        /**< Any variant of G.723 dot 1 encoded data */
99334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingG726,        /**< Any variant of G.726 encoded data */
100334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingG729,        /**< Any variant of G.729 encoded data */
101334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingAAC,         /**< Any variant of AAC encoded data */
102334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingMP3,         /**< Any variant of MP3 encoded data */
103334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingSBC,         /**< Any variant of SBC encoded data */
104334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingVORBIS,      /**< Any variant of VORBIS encoded data */
105334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingWMA,         /**< Any variant of WMA encoded data */
106334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingRA,          /**< Any variant of RA encoded data */
107334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingMIDI,        /**< Any variant of MIDI encoded data */
108224c78405f14b95416d2278e317b98cdb97497ccJean-Michel Trivi    OMX_AUDIO_CodingFLAC,        /**< Any variant of FLAC encoded data */
109a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_CodingKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
110334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
111334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CodingMax = 0x7FFFFFFF
112334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_CODINGTYPE;
113334de520b0369215b7931fefa424fb92d295f0ebJames Dong
114334de520b0369215b7931fefa424fb92d295f0ebJames Dong
115a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/** The PortDefinition structure is used to define all of the parameters
116a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar *  necessary for the compliant component to setup an input or an output audio
117334de520b0369215b7931fefa424fb92d295f0ebJames Dong *  path.  If additional information is needed to define the parameters of the
118334de520b0369215b7931fefa424fb92d295f0ebJames Dong *  port (such as frequency), additional structures must be sent such as the
119334de520b0369215b7931fefa424fb92d295f0ebJames Dong *  OMX_AUDIO_PARAM_PCMMODETYPE structure to supply the extra parameters for the port.
120334de520b0369215b7931fefa424fb92d295f0ebJames Dong */
121334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_PORTDEFINITIONTYPE {
122334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_STRING cMIMEType;            /**< MIME type of data for the port */
123334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_NATIVE_DEVICETYPE pNativeRender; /** < platform specific reference
124a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar                                               for an output device,
125334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                               otherwise this field is 0 */
126a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_BOOL bFlagErrorConcealment;  /**< Turns on error concealment if it is
127334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                          supported by the OMX component */
128a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_CODINGTYPE eEncoding;  /**< Type of data expected for this
129334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                          port (e.g. PCM, AMR, MP3, etc) */
130334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_PORTDEFINITIONTYPE;
131334de520b0369215b7931fefa424fb92d295f0ebJames Dong
132334de520b0369215b7931fefa424fb92d295f0ebJames Dong
133334de520b0369215b7931fefa424fb92d295f0ebJames Dong/**  Port format parameter.  This structure is used to enumerate
134334de520b0369215b7931fefa424fb92d295f0ebJames Dong  *  the various data input/output format supported by the port.
135334de520b0369215b7931fefa424fb92d295f0ebJames Dong  */
136334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_PARAM_PORTFORMATTYPE {
137334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSize;                  /**< size of the structure in bytes */
138334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VERSIONTYPE nVersion;       /**< OMX specification version information */
139334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nPortIndex;             /**< Indicates which port to set */
140334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nIndex;                 /**< Indicates the enumeration index for the format from 0x0 to N-1 */
141334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CODINGTYPE eEncoding; /**< Type of data expected for this port (e.g. PCM, AMR, MP3, etc) */
142334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_PARAM_PORTFORMATTYPE;
143334de520b0369215b7931fefa424fb92d295f0ebJames Dong
144334de520b0369215b7931fefa424fb92d295f0ebJames Dong
145a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/** PCM mode type  */
146a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnartypedef enum OMX_AUDIO_PCMMODETYPE {
147a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_PCMModeLinear = 0,  /**< Linear PCM encoded data */
148a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_PCMModeALaw,        /**< A law PCM encoded data (G.711) */
149a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_PCMModeMULaw,       /**< Mu law PCM encoded data (G.711)  */
150a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_PCMModeKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
151334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_PCMModeVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
152a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_PCMModeMax = 0x7FFFFFFF
153a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar} OMX_AUDIO_PCMMODETYPE;
154334de520b0369215b7931fefa424fb92d295f0ebJames Dong
155334de520b0369215b7931fefa424fb92d295f0ebJames Dong
156334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef enum OMX_AUDIO_CHANNELTYPE {
157334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_ChannelNone = 0x0,    /**< Unused or empty */
158334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_ChannelLF   = 0x1,    /**< Left front */
159334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_ChannelRF   = 0x2,    /**< Right front */
160334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_ChannelCF   = 0x3,    /**< Center front */
161334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_ChannelLS   = 0x4,    /**< Left surround */
162334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_ChannelRS   = 0x5,    /**< Right surround */
163334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_ChannelLFE  = 0x6,    /**< Low frequency effects */
164334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_ChannelCS   = 0x7,    /**< Back surround */
165334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_ChannelLR   = 0x8,    /**< Left rear. */
166334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_ChannelRR   = 0x9,    /**< Right rear. */
167a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_ChannelKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
168334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_ChannelVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
169a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_ChannelMax  = 0x7FFFFFFF
170334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_CHANNELTYPE;
171334de520b0369215b7931fefa424fb92d295f0ebJames Dong
172334de520b0369215b7931fefa424fb92d295f0ebJames Dong#define OMX_AUDIO_MAXCHANNELS 16  /**< maximum number distinct audio channels that a buffer may contain */
173334de520b0369215b7931fefa424fb92d295f0ebJames Dong#define OMX_MIN_PCMPAYLOAD_MSEC 5 /**< Minimum audio buffer payload size for uncompressed (PCM) audio */
174334de520b0369215b7931fefa424fb92d295f0ebJames Dong
175a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/** PCM format description */
176a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnartypedef struct OMX_AUDIO_PARAM_PCMMODETYPE {
177a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nSize;                    /**< Size of this structure, in Bytes */
178a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_VERSIONTYPE nVersion;         /**< OMX specification version information */
179a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nPortIndex;               /**< port that this structure applies to */
180a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nChannels;                /**< Number of channels (e.g. 2 for stereo) */
181a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_NUMERICALDATATYPE eNumData;   /**< indicates PCM data as signed or unsigned */
182a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_ENDIANTYPE eEndian;           /**< indicates PCM data as little or big endian */
183a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_BOOL bInterleaved;            /**< True for normal interleaved data; false for
184a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar                                           non-interleaved data (e.g. block data) */
185a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nBitPerSample;            /**< Bit per sample */
186a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nSamplingRate;            /**< Sampling rate of the source data.  Use 0 for
187a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar                                           variable or unknown sampling rate. */
188a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_PCMMODETYPE ePCMMode;   /**< PCM mode enumeration */
189334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CHANNELTYPE eChannelMapping[OMX_AUDIO_MAXCHANNELS]; /**< Slot i contains channel defined by eChannelMap[i] */
190334de520b0369215b7931fefa424fb92d295f0ebJames Dong
191a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar} OMX_AUDIO_PARAM_PCMMODETYPE;
192334de520b0369215b7931fefa424fb92d295f0ebJames Dong
193334de520b0369215b7931fefa424fb92d295f0ebJames Dong
194334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** Audio channel mode.  This is used by both AAC and MP3, although the names are more appropriate
195a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar * for the MP3.  For example, JointStereo for MP3 is CouplingChannels for AAC.
196334de520b0369215b7931fefa424fb92d295f0ebJames Dong */
197334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef enum OMX_AUDIO_CHANNELMODETYPE {
198a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_ChannelModeStereo = 0,  /**< 2 channels, the bitrate allocation between those
199334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                          two channels changes accordingly to each channel information */
200a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_ChannelModeJointStereo, /**< mode that takes advantage of what is common between
201334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                           2 channels for higher compression gain */
202a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_ChannelModeDual,        /**< 2 mono-channels, each channel is encoded with half
203334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                           the bitrate of the overall bitrate */
204334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_ChannelModeMono,        /**< Mono channel mode */
205a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_ChannelModeKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
206334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_ChannelModeVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
207334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_ChannelModeMax = 0x7FFFFFFF
208334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_CHANNELMODETYPE;
209334de520b0369215b7931fefa424fb92d295f0ebJames Dong
210334de520b0369215b7931fefa424fb92d295f0ebJames Dong
211334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef enum OMX_AUDIO_MP3STREAMFORMATTYPE {
212334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MP3StreamFormatMP1Layer3 = 0, /**< MP3 Audio MPEG 1 Layer 3 Stream format */
213334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MP3StreamFormatMP2Layer3,     /**< MP3 Audio MPEG 2 Layer 3 Stream format */
214334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MP3StreamFormatMP2_5Layer3,   /**< MP3 Audio MPEG2.5 Layer 3 Stream format */
215a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_MP3StreamFormatKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
216334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MP3StreamFormatVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
217334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MP3StreamFormatMax = 0x7FFFFFFF
218334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_MP3STREAMFORMATTYPE;
219334de520b0369215b7931fefa424fb92d295f0ebJames Dong
220334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** MP3 params */
221334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_PARAM_MP3TYPE {
222334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSize;                 /**< size of the structure in bytes */
223334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VERSIONTYPE nVersion;      /**< OMX specification version information */
224334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nPortIndex;            /**< port that this structure applies to */
225334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nChannels;             /**< Number of channels */
226334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nBitRate;              /**< Bit rate of the input data.  Use 0 for variable
227334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                        rate or unknown bit rates */
228334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSampleRate;           /**< Sampling rate of the source data.  Use 0 for
229334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                        variable or unknown sampling rate. */
230334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nAudioBandWidth;       /**< Audio band width (in Hz) to which an encoder should
231334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                        limit the audio signal. Use 0 to let encoder decide */
232334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CHANNELMODETYPE eChannelMode;   /**< Channel mode enumeration */
233334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MP3STREAMFORMATTYPE eFormat;  /**< MP3 stream format */
234334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_PARAM_MP3TYPE;
235334de520b0369215b7931fefa424fb92d295f0ebJames Dong
236334de520b0369215b7931fefa424fb92d295f0ebJames Dong
237334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef enum OMX_AUDIO_AACSTREAMFORMATTYPE {
238334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AACStreamFormatMP2ADTS = 0, /**< AAC Audio Data Transport Stream 2 format */
239334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AACStreamFormatMP4ADTS,     /**< AAC Audio Data Transport Stream 4 format */
240334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AACStreamFormatMP4LOAS,     /**< AAC Low Overhead Audio Stream format */
241334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AACStreamFormatMP4LATM,     /**< AAC Low overhead Audio Transport Multiplex */
242334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AACStreamFormatADIF,        /**< AAC Audio Data Interchange Format */
243334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AACStreamFormatMP4FF,       /**< AAC inside MPEG-4/ISO File Format */
244334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AACStreamFormatRAW,         /**< AAC Raw Format */
245a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_AACStreamFormatKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
246334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AACStreamFormatVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
247334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AACStreamFormatMax = 0x7FFFFFFF
248334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_AACSTREAMFORMATTYPE;
249334de520b0369215b7931fefa424fb92d295f0ebJames Dong
250334de520b0369215b7931fefa424fb92d295f0ebJames Dong
251334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** AAC mode type.  Note that the term profile is used with the MPEG-2
252334de520b0369215b7931fefa424fb92d295f0ebJames Dong * standard and the term object type and profile is used with MPEG-4 */
253334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef enum OMX_AUDIO_AACPROFILETYPE{
254334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_AACObjectNull = 0,      /**< Null, not used */
255334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_AACObjectMain = 1,      /**< AAC Main object */
256334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_AACObjectLC,            /**< AAC Low Complexity object (AAC profile) */
257334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_AACObjectSSR,           /**< AAC Scalable Sample Rate object */
258334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_AACObjectLTP,           /**< AAC Long Term Prediction object */
259334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_AACObjectHE,            /**< AAC High Efficiency (object type SBR, HE-AAC profile) */
260334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_AACObjectScalable,      /**< AAC Scalable object */
261334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_AACObjectERLC = 17,     /**< ER AAC Low Complexity object (Error Resilient AAC-LC) */
262334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_AACObjectLD = 23,       /**< AAC Low Delay object (Error Resilient) */
263334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_AACObjectHE_PS = 29,    /**< AAC High Efficiency with Parametric Stereo coding (HE-AAC v2, object type PS) */
2648e846fd6b3e09f5a52f47311e97b8d8f683833d4Dave Burke  OMX_AUDIO_AACObjectELD = 39,      /** AAC Enhanced Low Delay. NOTE: Pending Khronos standardization **/
2658e846fd6b3e09f5a52f47311e97b8d8f683833d4Dave Burke  OMX_AUDIO_AACObjectKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
266334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_AACObjectVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
267334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_AACObjectMax = 0x7FFFFFFF
268334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_AACPROFILETYPE;
269334de520b0369215b7931fefa424fb92d295f0ebJames Dong
270334de520b0369215b7931fefa424fb92d295f0ebJames Dong
271334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** AAC tool usage (for nAACtools in OMX_AUDIO_PARAM_AACPROFILETYPE).
272334de520b0369215b7931fefa424fb92d295f0ebJames Dong * Required for encoder configuration and optional as decoder info output.
273334de520b0369215b7931fefa424fb92d295f0ebJames Dong * For MP3, OMX_AUDIO_CHANNELMODETYPE is sufficient. */
274334de520b0369215b7931fefa424fb92d295f0ebJames Dong#define OMX_AUDIO_AACToolNone 0x00000000 /**< no AAC tools allowed (encoder config) or active (decoder info output) */
275334de520b0369215b7931fefa424fb92d295f0ebJames Dong#define OMX_AUDIO_AACToolMS   0x00000001 /**< MS: Mid/side joint coding tool allowed or active */
276334de520b0369215b7931fefa424fb92d295f0ebJames Dong#define OMX_AUDIO_AACToolIS   0x00000002 /**< IS: Intensity stereo tool allowed or active */
277334de520b0369215b7931fefa424fb92d295f0ebJames Dong#define OMX_AUDIO_AACToolTNS  0x00000004 /**< TNS: Temporal Noise Shaping tool allowed or active */
278334de520b0369215b7931fefa424fb92d295f0ebJames Dong#define OMX_AUDIO_AACToolPNS  0x00000008 /**< PNS: MPEG-4 Perceptual Noise substitution tool allowed or active */
279334de520b0369215b7931fefa424fb92d295f0ebJames Dong#define OMX_AUDIO_AACToolLTP  0x00000010 /**< LTP: MPEG-4 Long Term Prediction tool allowed or active */
280e91cd213d439c076051b1fb02c8bc40c11791dbbJean-Michel Trivi#define OMX_AUDIO_AACToolVendor 0x00010000 /**< NOT A KHRONOS VALUE, offset for vendor-specific additions */
281334de520b0369215b7931fefa424fb92d295f0ebJames Dong#define OMX_AUDIO_AACToolAll  0x7FFFFFFF /**< all AAC tools allowed or active (*/
282334de520b0369215b7931fefa424fb92d295f0ebJames Dong
283334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** MPEG-4 AAC error resilience (ER) tool usage (for nAACERtools in OMX_AUDIO_PARAM_AACPROFILETYPE).
284334de520b0369215b7931fefa424fb92d295f0ebJames Dong * Required for ER encoder configuration and optional as decoder info output */
285334de520b0369215b7931fefa424fb92d295f0ebJames Dong#define OMX_AUDIO_AACERNone  0x00000000  /**< no AAC ER tools allowed/used */
286334de520b0369215b7931fefa424fb92d295f0ebJames Dong#define OMX_AUDIO_AACERVCB11 0x00000001  /**< VCB11: Virtual Code Books for AAC section data */
287334de520b0369215b7931fefa424fb92d295f0ebJames Dong#define OMX_AUDIO_AACERRVLC  0x00000002  /**< RVLC: Reversible Variable Length Coding */
288334de520b0369215b7931fefa424fb92d295f0ebJames Dong#define OMX_AUDIO_AACERHCR   0x00000004  /**< HCR: Huffman Codeword Reordering */
289334de520b0369215b7931fefa424fb92d295f0ebJames Dong#define OMX_AUDIO_AACERAll   0x7FFFFFFF  /**< all AAC ER tools allowed/used */
290334de520b0369215b7931fefa424fb92d295f0ebJames Dong
291334de520b0369215b7931fefa424fb92d295f0ebJames Dong
292334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** AAC params */
293334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_PARAM_AACPROFILETYPE {
294334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSize;                 /**< Size of this structure, in Bytes */
295334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VERSIONTYPE nVersion;      /**< OMX specification version information */
296334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nPortIndex;            /**< Port that this structure applies to */
297334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nChannels;             /**< Number of channels */
298334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSampleRate;           /**< Sampling rate of the source data.  Use 0 for
299334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                        variable or unknown sampling rate. */
300334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nBitRate;              /**< Bit rate of the input data.  Use 0 for variable
301334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                        rate or unknown bit rates */
302334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nAudioBandWidth;       /**< Audio band width (in Hz) to which an encoder should
303334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                        limit the audio signal. Use 0 to let encoder decide */
304334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nFrameLength;          /**< Frame length (in audio samples per channel) of the codec.
305334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                        Can be 1024 or 960 (AAC-LC), 2048 (HE-AAC), 480 or 512 (AAC-LD).
306334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                        Use 0 to let encoder decide */
307334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nAACtools;             /**< AAC tool usage */
308334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nAACERtools;           /**< MPEG-4 AAC error resilience tool usage */
309334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AACPROFILETYPE eAACProfile;   /**< AAC profile enumeration */
310334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AACSTREAMFORMATTYPE eAACStreamFormat; /**< AAC stream format enumeration */
311334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CHANNELMODETYPE eChannelMode;   /**< Channel mode enumeration */
312334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_PARAM_AACPROFILETYPE;
313334de520b0369215b7931fefa424fb92d295f0ebJames Dong
314334de520b0369215b7931fefa424fb92d295f0ebJames Dong
315334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** VORBIS params */
316334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_PARAM_VORBISTYPE {
317334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSize;            /**< size of the structure in bytes */
318334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
319334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nPortIndex;       /**< port that this structure applies to */
320334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nChannels;        /**< Number of channels */
321334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nBitRate;         /**< Bit rate of the encoded data data.  Use 0 for variable
322334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                   rate or unknown bit rates. Encoding is set to the
323334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                   bitrate closest to specified  value (in bps) */
324334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nMinBitRate;      /**< Sets minimum bitrate (in bps). */
325334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nMaxBitRate;      /**< Sets maximum bitrate (in bps). */
326334de520b0369215b7931fefa424fb92d295f0ebJames Dong
327334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSampleRate;      /**< Sampling rate of the source data.  Use 0 for
328334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                   variable or unknown sampling rate. */
329334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nAudioBandWidth;  /**< Audio band width (in Hz) to which an encoder should
330334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                   limit the audio signal. Use 0 to let encoder decide */
331a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_S32 nQuality;         /**< Sets encoding quality to n, between -1 (low) and 10 (high).
332334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                   In the default mode of operation, teh quality level is 3.
333334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                   Normal quality range is 0 - 10. */
334a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_BOOL bManaged;        /**< Set  bitrate  management  mode. This turns off the
335334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                   normal VBR encoding, but allows hard or soft bitrate
336334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                   constraints to be enforced by the encoder. This mode can
337334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                   be slower, and may also be lower quality. It is
338334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                   primarily useful for streaming. */
339a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_BOOL bDownmix;        /**< Downmix input from stereo to mono (has no effect on
340a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar                                   non-stereo streams). Useful for lower-bitrate encoding. */
341334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_PARAM_VORBISTYPE;
342334de520b0369215b7931fefa424fb92d295f0ebJames Dong
343334de520b0369215b7931fefa424fb92d295f0ebJames Dong
344224c78405f14b95416d2278e317b98cdb97497ccJean-Michel Trivi/** FLAC params */
345224c78405f14b95416d2278e317b98cdb97497ccJean-Michel Trivitypedef struct OMX_AUDIO_PARAM_FLACTYPE {
346224c78405f14b95416d2278e317b98cdb97497ccJean-Michel Trivi    OMX_U32 nSize;            /**< size of the structure in bytes */
347224c78405f14b95416d2278e317b98cdb97497ccJean-Michel Trivi    OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
348224c78405f14b95416d2278e317b98cdb97497ccJean-Michel Trivi    OMX_U32 nPortIndex;       /**< port that this structure applies to */
349224c78405f14b95416d2278e317b98cdb97497ccJean-Michel Trivi    OMX_U32 nChannels;        /**< Number of channels */
350224c78405f14b95416d2278e317b98cdb97497ccJean-Michel Trivi    OMX_U32 nSampleRate;      /**< Sampling rate of the source data.  Use 0 for
351224c78405f14b95416d2278e317b98cdb97497ccJean-Michel Trivi                                   unknown sampling rate. */
352224c78405f14b95416d2278e317b98cdb97497ccJean-Michel Trivi    OMX_U32 nCompressionLevel;/**< FLAC compression level, from 0 (fastest compression)
353224c78405f14b95416d2278e317b98cdb97497ccJean-Michel Trivi                                   to 8 (highest compression */
354224c78405f14b95416d2278e317b98cdb97497ccJean-Michel Trivi} OMX_AUDIO_PARAM_FLACTYPE;
355224c78405f14b95416d2278e317b98cdb97497ccJean-Michel Trivi
356224c78405f14b95416d2278e317b98cdb97497ccJean-Michel Trivi
357334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** WMA Version */
358334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef enum OMX_AUDIO_WMAFORMATTYPE {
359334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_WMAFormatUnused = 0, /**< format unused or unknown */
360334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_WMAFormat7,          /**< Windows Media Audio format 7 */
361334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_WMAFormat8,          /**< Windows Media Audio format 8 */
362334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_WMAFormat9,          /**< Windows Media Audio format 9 */
363a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar  OMX_AUDIO_WMAFormatKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
364334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_WMAFormatVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
365334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_WMAFormatMax = 0x7FFFFFFF
366334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_WMAFORMATTYPE;
367334de520b0369215b7931fefa424fb92d295f0ebJames Dong
368334de520b0369215b7931fefa424fb92d295f0ebJames Dong
369334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** WMA Profile */
370334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef enum OMX_AUDIO_WMAPROFILETYPE {
371334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_WMAProfileUnused = 0,  /**< profile unused or unknown */
372334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_WMAProfileL1,          /**< Windows Media audio version 9 profile L1 */
373334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_WMAProfileL2,          /**< Windows Media audio version 9 profile L2 */
374334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_WMAProfileL3,          /**< Windows Media audio version 9 profile L3 */
375a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar  OMX_AUDIO_WMAProfileKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
376334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_WMAProfileVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
377334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_WMAProfileMax = 0x7FFFFFFF
378334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_WMAPROFILETYPE;
379334de520b0369215b7931fefa424fb92d295f0ebJames Dong
380334de520b0369215b7931fefa424fb92d295f0ebJames Dong
381334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** WMA params */
382334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_PARAM_WMATYPE {
383334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSize;            /**< size of the structure in bytes */
384334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
385334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nPortIndex;       /**< port that this structure applies to */
386334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U16 nChannels;        /**< Number of channels */
387334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nBitRate;         /**< Bit rate of the input data.  Use 0 for variable
388334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                   rate or unknown bit rates */
389334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_WMAFORMATTYPE eFormat; /**< Version of WMA stream / data */
390a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_WMAPROFILETYPE eProfile;  /**< Profile of WMA stream / data */
391334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSamplingRate;    /**< Sampling rate of the source data */
392334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U16 nBlockAlign;      /**< is the block alignment, or block size, in bytes of the audio codec */
393334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U16 nEncodeOptions;   /**< WMA Type-specific data */
394334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSuperBlockAlign; /**< WMA Type-specific data */
395334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_PARAM_WMATYPE;
396334de520b0369215b7931fefa424fb92d295f0ebJames Dong
397a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/**
398334de520b0369215b7931fefa424fb92d295f0ebJames Dong * RealAudio format
399334de520b0369215b7931fefa424fb92d295f0ebJames Dong */
400334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef enum OMX_AUDIO_RAFORMATTYPE {
401334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_RAFormatUnused = 0, /**< Format unused or unknown */
402334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_RA8,                /**< RealAudio 8 codec */
403334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_RA9,                /**< RealAudio 9 codec */
404334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_RA10_AAC,           /**< MPEG-4 AAC codec for bitrates of more than 128kbps */
405334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_RA10_CODEC,         /**< RealAudio codec for bitrates less than 128 kbps */
406334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_RA10_LOSSLESS,      /**< RealAudio Lossless */
407334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_RA10_MULTICHANNEL,  /**< RealAudio Multichannel */
408334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_RA10_VOICE,         /**< RealAudio Voice for bitrates below 15 kbps */
409a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_RAFormatKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
410334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_RAFormatVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
411334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VIDEO_RAFormatMax = 0x7FFFFFFF
412334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_RAFORMATTYPE;
413334de520b0369215b7931fefa424fb92d295f0ebJames Dong
414a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/** RA (Real Audio) params */
415a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnartypedef struct OMX_AUDIO_PARAM_RATYPE {
416a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nSize;              /**< Size of this structure, in Bytes */
417a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_VERSIONTYPE nVersion;   /**< OMX specification version information */
418a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nPortIndex;         /**< Port that this structure applies to */
419a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nChannels;          /**< Number of channels */
420a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nSamplingRate;      /**< is the sampling rate of the source data */
421a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nBitsPerFrame;      /**< is the value for bits per frame  */
422a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nSamplePerFrame;    /**< is the value for samples per frame */
423a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nCouplingQuantBits; /**< is the number of coupling quantization bits in the stream */
424a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nCouplingStartRegion;   /**< is the coupling start region in the stream  */
425a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nNumRegions;        /**< is the number of regions value */
426334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_RAFORMATTYPE eFormat; /**< is the RealAudio audio format */
427a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar} OMX_AUDIO_PARAM_RATYPE;
428334de520b0369215b7931fefa424fb92d295f0ebJames Dong
429334de520b0369215b7931fefa424fb92d295f0ebJames Dong
430334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** SBC Allocation Method Type */
431334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef enum OMX_AUDIO_SBCALLOCMETHODTYPE {
432334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_SBCAllocMethodLoudness, /**< Loudness allocation method */
433334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_SBCAllocMethodSNR,      /**< SNR allocation method */
434a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar  OMX_AUDIO_SBCAllocMethodKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
435334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_SBCAllocMethodVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
436334de520b0369215b7931fefa424fb92d295f0ebJames Dong  OMX_AUDIO_SBCAllocMethodMax = 0x7FFFFFFF
437334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_SBCALLOCMETHODTYPE;
438334de520b0369215b7931fefa424fb92d295f0ebJames Dong
439334de520b0369215b7931fefa424fb92d295f0ebJames Dong
440334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** SBC params */
441334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_PARAM_SBCTYPE {
442334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSize;             /**< size of the structure in bytes */
443334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VERSIONTYPE nVersion;  /**< OMX specification version information */
444334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nPortIndex;        /**< port that this structure applies to */
445334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nChannels;         /**< Number of channels */
446334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nBitRate;          /**< Bit rate of the input data.  Use 0 for variable
447334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                    rate or unknown bit rates */
448334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSampleRate;       /**< Sampling rate of the source data.  Use 0 for
449334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                    variable or unknown sampling rate. */
450334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nBlocks;           /**< Number of blocks */
451334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSubbands;         /**< Number of subbands */
452334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nBitPool;          /**< Bitpool value */
453334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bEnableBitrate;   /**< Use bitrate value instead of bitpool */
454334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CHANNELMODETYPE eChannelMode; /**< Channel mode enumeration */
455334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_SBCALLOCMETHODTYPE eSBCAllocType;   /**< SBC Allocation method type */
456334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_PARAM_SBCTYPE;
457334de520b0369215b7931fefa424fb92d295f0ebJames Dong
458334de520b0369215b7931fefa424fb92d295f0ebJames Dong
459a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/** ADPCM stream format parameters */
460a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnartypedef struct OMX_AUDIO_PARAM_ADPCMTYPE {
461a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nSize;              /**< size of the structure in bytes */
462a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_VERSIONTYPE nVersion;   /**< OMX specification version information */
463a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nPortIndex;         /**< port that this structure applies to */
464a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nChannels;          /**< Number of channels in the data stream (not
465a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar                                     necessarily the same as the number of channels
466a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar                                     to be rendered. */
467a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nBitsPerSample;     /**< Number of bits in each sample */
468a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nSampleRate;        /**< Sampling rate of the source data.  Use 0 for
469a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar                                    variable or unknown sampling rate. */
470a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar} OMX_AUDIO_PARAM_ADPCMTYPE;
471334de520b0369215b7931fefa424fb92d295f0ebJames Dong
472334de520b0369215b7931fefa424fb92d295f0ebJames Dong
473334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** G723 rate */
474334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef enum OMX_AUDIO_G723RATE {
475334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_G723ModeUnused = 0,  /**< AMRNB Mode unused / unknown */
476334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_G723ModeLow,         /**< 5300 bps */
477334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_G723ModeHigh,        /**< 6300 bps */
478a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_G723ModeKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
479334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_G723ModeVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
480334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_G723ModeMax = 0x7FFFFFFF
481334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_G723RATE;
482334de520b0369215b7931fefa424fb92d295f0ebJames Dong
483334de520b0369215b7931fefa424fb92d295f0ebJames Dong
484334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** G723 - Sample rate must be 8 KHz */
485a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnartypedef struct OMX_AUDIO_PARAM_G723TYPE {
486a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nSize;                /**< size of the structure in bytes */
487a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_VERSIONTYPE nVersion;     /**< OMX specification version information */
488a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nPortIndex;           /**< port that this structure applies to */
489a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nChannels;            /**< Number of channels in the data stream (not
490a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar                                       necessarily the same as the number of channels
491a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar                                       to be rendered. */
492a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_BOOL bDTX;                /**< Enable Discontinuous Transmisssion */
493334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_G723RATE eBitRate;  /**< todo: Should this be moved to a config? */
494a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_BOOL bHiPassFilter;       /**< Enable High Pass Filter */
495a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_BOOL bPostFilter;         /**< Enable Post Filter */
496a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar} OMX_AUDIO_PARAM_G723TYPE;
497334de520b0369215b7931fefa424fb92d295f0ebJames Dong
498334de520b0369215b7931fefa424fb92d295f0ebJames Dong
499334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** ITU G726 (ADPCM) rate */
500334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef enum OMX_AUDIO_G726MODE {
501334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_G726ModeUnused = 0,  /**< G726 Mode unused / unknown */
502334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_G726Mode16,          /**< 16 kbps */
503334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_G726Mode24,          /**< 24 kbps */
504334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_G726Mode32,          /**< 32 kbps, most common rate, also G721 */
505334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_G726Mode40,          /**< 40 kbps */
506a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_G726ModeKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
507334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_G726ModeVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
508334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_G726ModeMax = 0x7FFFFFFF
509334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_G726MODE;
510334de520b0369215b7931fefa424fb92d295f0ebJames Dong
511334de520b0369215b7931fefa424fb92d295f0ebJames Dong
512a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/** G.726 stream format parameters - must be at 8KHz */
513a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnartypedef struct OMX_AUDIO_PARAM_G726TYPE {
514a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nSize;              /**< size of the structure in bytes */
515a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_VERSIONTYPE nVersion;   /**< OMX specification version information */
516a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nPortIndex;         /**< port that this structure applies to */
517a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nChannels;          /**< Number of channels in the data stream (not
518a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar                                     necessarily the same as the number of channels
519a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar                                     to be rendered. */
520334de520b0369215b7931fefa424fb92d295f0ebJames Dong     OMX_AUDIO_G726MODE eG726Mode;
521a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar} OMX_AUDIO_PARAM_G726TYPE;
522334de520b0369215b7931fefa424fb92d295f0ebJames Dong
523334de520b0369215b7931fefa424fb92d295f0ebJames Dong
524334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** G729 coder type */
525334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef enum OMX_AUDIO_G729TYPE {
526334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_G729 = 0,           /**< ITU G.729  encoded data */
527334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_G729A,              /**< ITU G.729 annex A  encoded data */
528334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_G729B,              /**< ITU G.729 with annex B encoded data */
529334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_G729AB,             /**< ITU G.729 annexes A and B encoded data */
530a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_G729KhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
531334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_G729VendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
532334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_G729Max = 0x7FFFFFFF
533334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_G729TYPE;
534334de520b0369215b7931fefa424fb92d295f0ebJames Dong
535334de520b0369215b7931fefa424fb92d295f0ebJames Dong
536334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** G729 stream format parameters - fixed 6KHz sample rate */
537334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_PARAM_G729TYPE {
538334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSize;            /**< size of the structure in bytes */
539334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
540334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nPortIndex;       /**< port that this structure applies to */
541334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nChannels;        /**< Number of channels in the data stream (not
542334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                   necessarily the same as the number of channels
543334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                   to be rendered. */
544334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bDTX;            /**< Enable Discontinuous Transmisssion */
545334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_G729TYPE eBitType;
546334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_PARAM_G729TYPE;
547334de520b0369215b7931fefa424fb92d295f0ebJames Dong
548334de520b0369215b7931fefa424fb92d295f0ebJames Dong
549a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/** AMR Frame format */
550a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnartypedef enum OMX_AUDIO_AMRFRAMEFORMATTYPE {
551a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_AMRFrameFormatConformance = 0,  /**< Frame Format is AMR Conformance
552a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar                                                   (Standard) Format */
553a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_AMRFrameFormatIF1,              /**< Frame Format is AMR Interface
554a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar                                                   Format 1 */
555a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_AMRFrameFormatIF2,              /**< Frame Format is AMR Interface
556a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar                                                   Format 2*/
557a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_AMRFrameFormatFSF,              /**< Frame Format is AMR File Storage
558a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar                                                   Format */
559a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_AMRFrameFormatRTPPayload,       /**< Frame Format is AMR Real-Time
560a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar                                                   Transport Protocol Payload Format */
561a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_AMRFrameFormatITU,              /**< Frame Format is ITU Format (added at Motorola request) */
562a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_AMRFrameFormatKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
563334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AMRFrameFormatVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
564a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_AMRFrameFormatMax = 0x7FFFFFFF
565a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar} OMX_AUDIO_AMRFRAMEFORMATTYPE;
566334de520b0369215b7931fefa424fb92d295f0ebJames Dong
567334de520b0369215b7931fefa424fb92d295f0ebJames Dong
568334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** AMR band mode */
569334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef enum OMX_AUDIO_AMRBANDMODETYPE {
570334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AMRBandModeUnused = 0,          /**< AMRNB Mode unused / unknown */
571334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AMRBandModeNB0,                 /**< AMRNB Mode 0 =  4750 bps */
572334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AMRBandModeNB1,                 /**< AMRNB Mode 1 =  5150 bps */
573a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_AMRBandModeNB2,                 /**< AMRNB Mode 2 =  5900 bps */
574334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AMRBandModeNB3,                 /**< AMRNB Mode 3 =  6700 bps */
575334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AMRBandModeNB4,                 /**< AMRNB Mode 4 =  7400 bps */
576334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AMRBandModeNB5,                 /**< AMRNB Mode 5 =  7950 bps */
577334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AMRBandModeNB6,                 /**< AMRNB Mode 6 = 10200 bps */
578334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AMRBandModeNB7,                 /**< AMRNB Mode 7 = 12200 bps */
579334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AMRBandModeWB0,                 /**< AMRWB Mode 0 =  6600 bps */
580334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AMRBandModeWB1,                 /**< AMRWB Mode 1 =  8850 bps */
581a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_AMRBandModeWB2,                 /**< AMRWB Mode 2 = 12650 bps */
582a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_AMRBandModeWB3,                 /**< AMRWB Mode 3 = 14250 bps */
583334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AMRBandModeWB4,                 /**< AMRWB Mode 4 = 15850 bps */
584334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AMRBandModeWB5,                 /**< AMRWB Mode 5 = 18250 bps */
585334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AMRBandModeWB6,                 /**< AMRWB Mode 6 = 19850 bps */
586334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AMRBandModeWB7,                 /**< AMRWB Mode 7 = 23050 bps */
587a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_AMRBandModeWB8,                 /**< AMRWB Mode 8 = 23850 bps */
588a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_AMRBandModeKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
589334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AMRBandModeVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
590334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AMRBandModeMax = 0x7FFFFFFF
591334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_AMRBANDMODETYPE;
592a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
593a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
594a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/** AMR Discontinuous Transmission mode */
595a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnartypedef enum OMX_AUDIO_AMRDTXMODETYPE {
596a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_AMRDTXModeOff = 0,        /**< AMR Discontinuous Transmission Mode is disabled */
597a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_AMRDTXModeOnVAD1,         /**< AMR Discontinuous Transmission Mode using
598a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar                                             Voice Activity Detector 1 (VAD1) is enabled */
599a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_AMRDTXModeOnVAD2,         /**< AMR Discontinuous Transmission Mode using
600a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar                                             Voice Activity Detector 2 (VAD2) is enabled */
601a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_AMRDTXModeOnAuto,         /**< The codec will automatically select between
602a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar                                             Off, VAD1 or VAD2 modes */
603334de520b0369215b7931fefa424fb92d295f0ebJames Dong
604334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AMRDTXasEFR,             /**< DTX as EFR instead of AMR standard (3GPP 26.101, frame type =8,9,10) */
605334de520b0369215b7931fefa424fb92d295f0ebJames Dong
606a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_AMRDTXModeKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
607334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AMRDTXModeVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
608a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_AMRDTXModeMax = 0x7FFFFFFF
609a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar} OMX_AUDIO_AMRDTXMODETYPE;
610a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar
611334de520b0369215b7931fefa424fb92d295f0ebJames Dong
612334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** AMR params */
613334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_PARAM_AMRTYPE {
614334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSize;                          /**< size of the structure in bytes */
615334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VERSIONTYPE nVersion;               /**< OMX specification version information */
616334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nPortIndex;                     /**< port that this structure applies to */
617334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nChannels;                      /**< Number of channels */
618334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nBitRate;                       /**< Bit rate read only field */
619a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_AMRBANDMODETYPE eAMRBandMode; /**< AMR Band Mode enumeration */
620334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AMRDTXMODETYPE  eAMRDTXMode;  /**< AMR DTX Mode enumeration */
621334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_AMRFRAMEFORMATTYPE eAMRFrameFormat; /**< AMR frame format enumeration */
622334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_PARAM_AMRTYPE;
623334de520b0369215b7931fefa424fb92d295f0ebJames Dong
624334de520b0369215b7931fefa424fb92d295f0ebJames Dong
625334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** GSM_FR (ETSI 06.10, 3GPP 46.010) stream format parameters */
626334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_PARAM_GSMFRTYPE {
627334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSize;            /**< size of the structure in bytes */
628334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
629334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nPortIndex;       /**< port that this structure applies to */
630334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bDTX;            /**< Enable Discontinuous Transmisssion */
631334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bHiPassFilter;   /**< Enable High Pass Filter */
632334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_PARAM_GSMFRTYPE;
633334de520b0369215b7931fefa424fb92d295f0ebJames Dong
634334de520b0369215b7931fefa424fb92d295f0ebJames Dong
635334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** GSM-HR (ETSI 06.20, 3GPP 46.020) stream format parameters */
636334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_PARAM_GSMHRTYPE {
637334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSize;            /**< size of the structure in bytes */
638334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
639334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nPortIndex;       /**< port that this structure applies to */
640334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bDTX;            /**< Enable Discontinuous Transmisssion */
641334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bHiPassFilter;   /**< Enable High Pass Filter */
642334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_PARAM_GSMHRTYPE;
643334de520b0369215b7931fefa424fb92d295f0ebJames Dong
644334de520b0369215b7931fefa424fb92d295f0ebJames Dong
645334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** GSM-EFR (ETSI 06.60, 3GPP 46.060) stream format parameters */
646334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_PARAM_GSMEFRTYPE {
647334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSize;            /**< size of the structure in bytes */
648334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
649334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nPortIndex;       /**< port that this structure applies to */
650334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bDTX;            /**< Enable Discontinuous Transmisssion */
651334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bHiPassFilter;   /**< Enable High Pass Filter */
652334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_PARAM_GSMEFRTYPE;
653334de520b0369215b7931fefa424fb92d295f0ebJames Dong
654334de520b0369215b7931fefa424fb92d295f0ebJames Dong
655334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** TDMA FR (TIA/EIA-136-420, VSELP 7.95kbps coder) stream format parameters */
656334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_PARAM_TDMAFRTYPE {
657334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSize;                /**< size of the structure in bytes */
658334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VERSIONTYPE nVersion;     /**< OMX specification version information */
659334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nPortIndex;           /**< port that this structure applies to */
660334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nChannels;            /**< Number of channels in the data stream (not
661334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                       necessarily the same as the number of channels
662334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                       to be rendered. */
663334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bDTX;                /**< Enable Discontinuous Transmisssion */
664334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bHiPassFilter;       /**< Enable High Pass Filter */
665334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_PARAM_TDMAFRTYPE;
666334de520b0369215b7931fefa424fb92d295f0ebJames Dong
667334de520b0369215b7931fefa424fb92d295f0ebJames Dong
668334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** TDMA EFR (TIA/EIA-136-410, ACELP 7.4kbps coder) stream format parameters */
669334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_PARAM_TDMAEFRTYPE {
670334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSize;                /**< size of the structure in bytes */
671334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VERSIONTYPE nVersion;     /**< OMX specification version information */
672334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nPortIndex;           /**< port that this structure applies to */
673334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nChannels;            /**< Number of channels in the data stream (not
674334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                       necessarily the same as the number of channels
675334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                       to be rendered. */
676334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bDTX;                /**< Enable Discontinuous Transmisssion */
677334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bHiPassFilter;       /**< Enable High Pass Filter */
678334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_PARAM_TDMAEFRTYPE;
679334de520b0369215b7931fefa424fb92d295f0ebJames Dong
680334de520b0369215b7931fefa424fb92d295f0ebJames Dong
681334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** PDC FR ( RCR-27, VSELP 6.7kbps coder) stream format parameters */
682334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_PARAM_PDCFRTYPE {
683334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSize;                /**< size of the structure in bytes */
684334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VERSIONTYPE nVersion;     /**< OMX specification version information */
685334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nPortIndex;           /**< port that this structure applies to */
686334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nChannels;            /**< Number of channels in the data stream (not
687334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                       necessarily the same as the number of channels
688334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                       to be rendered. */
689334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bDTX;                /**< Enable Discontinuous Transmisssion */
690334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bHiPassFilter;       /**< Enable High Pass Filter */
691334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_PARAM_PDCFRTYPE;
692334de520b0369215b7931fefa424fb92d295f0ebJames Dong
693334de520b0369215b7931fefa424fb92d295f0ebJames Dong
694334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** PDC EFR ( RCR-27, ACELP 6.7kbps coder) stream format parameters */
695334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_PARAM_PDCEFRTYPE {
696334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSize;                /**< size of the structure in bytes */
697334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VERSIONTYPE nVersion;     /**< OMX specification version information */
698334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nPortIndex;           /**< port that this structure applies to */
699334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nChannels;            /**< Number of channels in the data stream (not
700334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                       necessarily the same as the number of channels
701334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                       to be rendered. */
702334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bDTX;                /**< Enable Discontinuous Transmisssion */
703334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bHiPassFilter;       /**< Enable High Pass Filter */
704334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_PARAM_PDCEFRTYPE;
705334de520b0369215b7931fefa424fb92d295f0ebJames Dong
706334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** PDC HR ( RCR-27, PSI-CELP 3.45kbps coder) stream format parameters */
707334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_PARAM_PDCHRTYPE {
708334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSize;                /**< size of the structure in bytes */
709334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VERSIONTYPE nVersion;     /**< OMX specification version information */
710334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nPortIndex;           /**< port that this structure applies to */
711334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nChannels;            /**< Number of channels in the data stream (not
712334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                       necessarily the same as the number of channels
713334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                       to be rendered. */
714334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bDTX;                /**< Enable Discontinuous Transmisssion */
715334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bHiPassFilter;       /**< Enable High Pass Filter */
716334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_PARAM_PDCHRTYPE;
717334de520b0369215b7931fefa424fb92d295f0ebJames Dong
718334de520b0369215b7931fefa424fb92d295f0ebJames Dong
719334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** CDMA Rate types */
720334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef enum OMX_AUDIO_CDMARATETYPE {
721334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CDMARateBlank = 0,          /**< CDMA encoded frame is blank */
722334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CDMARateFull,               /**< CDMA encoded frame in full rate */
723334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CDMARateHalf,               /**< CDMA encoded frame in half rate */
724334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CDMARateQuarter,            /**< CDMA encoded frame in quarter rate */
725334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CDMARateEighth,             /**< CDMA encoded frame in eighth rate (DTX)*/
726334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CDMARateErasure,            /**< CDMA erasure frame */
727a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_CDMARateKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
728334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CDMARateVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
729334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CDMARateMax = 0x7FFFFFFF
730334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_CDMARATETYPE;
731334de520b0369215b7931fefa424fb92d295f0ebJames Dong
732334de520b0369215b7931fefa424fb92d295f0ebJames Dong
733334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** QCELP8 (TIA/EIA-96, up to 8kbps coder) stream format parameters */
734334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_PARAM_QCELP8TYPE {
735334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSize;                /**< size of the structure in bytes */
736334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VERSIONTYPE nVersion;     /**< OMX specification version information */
737334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nPortIndex;           /**< port that this structure applies to */
738334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nChannels;            /**< Number of channels in the data stream (not
739334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                       necessarily the same as the number of channels
740334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                       to be rendered. */
741334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nBitRate;             /**< Bit rate of the input data.  Use 0 for variable
742334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                       rate or unknown bit rates */
743334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CDMARATETYPE eCDMARate; /**< Frame rate */
744334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nMinBitRate;          /**< minmal rate for the encoder = 1,2,3,4, default = 1 */
745334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nMaxBitRate;          /**< maximal rate for the encoder = 1,2,3,4, default = 4 */
746334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_PARAM_QCELP8TYPE;
747334de520b0369215b7931fefa424fb92d295f0ebJames Dong
748334de520b0369215b7931fefa424fb92d295f0ebJames Dong
749334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** QCELP13 ( CDMA, EIA/TIA-733, 13.3kbps coder) stream format parameters */
750334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_PARAM_QCELP13TYPE {
751334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSize;                /**< size of the structure in bytes */
752334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VERSIONTYPE nVersion;     /**< OMX specification version information */
753334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nPortIndex;           /**< port that this structure applies to */
754334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nChannels;            /**< Number of channels in the data stream (not
755334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                       necessarily the same as the number of channels
756334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                       to be rendered. */
757334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CDMARATETYPE eCDMARate; /**< Frame rate */
758334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nMinBitRate;          /**< minmal rate for the encoder = 1,2,3,4, default = 1 */
759334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nMaxBitRate;          /**< maximal rate for the encoder = 1,2,3,4, default = 4 */
760334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_PARAM_QCELP13TYPE;
761334de520b0369215b7931fefa424fb92d295f0ebJames Dong
762334de520b0369215b7931fefa424fb92d295f0ebJames Dong
763334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** EVRC ( CDMA, EIA/TIA-127, RCELP up to 8.55kbps coder) stream format parameters */
764334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_PARAM_EVRCTYPE {
765334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSize;                /**< size of the structure in bytes */
766334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VERSIONTYPE nVersion;     /**< OMX specification version information */
767334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nPortIndex;           /**< port that this structure applies to */
768334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nChannels;            /**< Number of channels in the data stream (not
769334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                       necessarily the same as the number of channels
770334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                       to be rendered. */
771334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CDMARATETYPE eCDMARate; /**< actual Frame rate */
772334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bRATE_REDUCon;       /**< RATE_REDUCtion is requested for this frame */
773334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nMinBitRate;          /**< minmal rate for the encoder = 1,2,3,4, default = 1 */
774334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nMaxBitRate;          /**< maximal rate for the encoder = 1,2,3,4, default = 4 */
775334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bHiPassFilter;       /**< Enable encoder's High Pass Filter */
776334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bNoiseSuppressor;    /**< Enable encoder's noise suppressor pre-processing */
777334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bPostFilter;         /**< Enable decoder's post Filter */
778334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_PARAM_EVRCTYPE;
779334de520b0369215b7931fefa424fb92d295f0ebJames Dong
780334de520b0369215b7931fefa424fb92d295f0ebJames Dong
781334de520b0369215b7931fefa424fb92d295f0ebJames Dong/** SMV ( up to 8.55kbps coder) stream format parameters */
782334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_PARAM_SMVTYPE {
783334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSize;                /**< size of the structure in bytes */
784334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VERSIONTYPE nVersion;     /**< OMX specification version information */
785334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nPortIndex;           /**< port that this structure applies to */
786334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nChannels;            /**< Number of channels in the data stream (not
787334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                       necessarily the same as the number of channels
788334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                       to be rendered. */
789334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_CDMARATETYPE eCDMARate; /**< Frame rate */
790334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bRATE_REDUCon;           /**< RATE_REDUCtion is requested for this frame */
791334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nMinBitRate;          /**< minmal rate for the encoder = 1,2,3,4, default = 1 ??*/
792334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nMaxBitRate;          /**< maximal rate for the encoder = 1,2,3,4, default = 4 ??*/
793334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bHiPassFilter;       /**< Enable encoder's High Pass Filter ??*/
794334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bNoiseSuppressor;    /**< Enable encoder's noise suppressor pre-processing */
795334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_BOOL bPostFilter;         /**< Enable decoder's post Filter ??*/
796334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_PARAM_SMVTYPE;
797334de520b0369215b7931fefa424fb92d295f0ebJames Dong
798334de520b0369215b7931fefa424fb92d295f0ebJames Dong
799a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/** MIDI Format
800334de520b0369215b7931fefa424fb92d295f0ebJames Dong * @ingroup midi
801334de520b0369215b7931fefa424fb92d295f0ebJames Dong */
802334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef enum OMX_AUDIO_MIDIFORMATTYPE
803334de520b0369215b7931fefa424fb92d295f0ebJames Dong{
804334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MIDIFormatUnknown = 0, /**< MIDI Format unknown or don't care */
805334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MIDIFormatSMF0,        /**< Standard MIDI File Type 0 */
806334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MIDIFormatSMF1,        /**< Standard MIDI File Type 1 */
807334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MIDIFormatSMF2,        /**< Standard MIDI File Type 2 */
808334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MIDIFormatSPMIDI,      /**< SP-MIDI */
809334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MIDIFormatXMF0,        /**< eXtensible Music Format type 0 */
810334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MIDIFormatXMF1,        /**< eXtensible Music Format type 1 */
811334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MIDIFormatMobileXMF,   /**< Mobile XMF (eXtensible Music Format type 2) */
812a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_MIDIFormatKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
813334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MIDIFormatVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
814334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MIDIFormatMax = 0x7FFFFFFF
815334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_MIDIFORMATTYPE;
816334de520b0369215b7931fefa424fb92d295f0ebJames Dong
817334de520b0369215b7931fefa424fb92d295f0ebJames Dong
818a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/** MIDI params
819334de520b0369215b7931fefa424fb92d295f0ebJames Dong * @ingroup midi
820334de520b0369215b7931fefa424fb92d295f0ebJames Dong */
821334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_PARAM_MIDITYPE {
822334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSize;                 /**< size of the structure in bytes */
823334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VERSIONTYPE nVersion;      /**< OMX specification version information */
824334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nPortIndex;            /**< port that this structure applies to */
825a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nFileSize;             /**< size of the MIDI file in bytes, where the entire
826a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar                                        MIDI file passed in, otherwise if 0x0, the MIDI data
827a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar                                        is merged and streamed (instead of passed as an
828334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                        entire MIDI file) */
829a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_BU32 sMaxPolyphony;        /**< Specifies the maximum simultaneous polyphonic
830a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar                                        voices. A value of zero indicates that the default
831a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar                                        polyphony of the device is used  */
832a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_BOOL bLoadDefaultSound;    /**< Whether to load default sound
833334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                        bank at initialization */
834a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_MIDIFORMATTYPE eMidiFormat; /**< Version of the MIDI file */
835334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_PARAM_MIDITYPE;
836334de520b0369215b7931fefa424fb92d295f0ebJames Dong
837334de520b0369215b7931fefa424fb92d295f0ebJames Dong
838a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/** Type of the MIDI sound bank
839334de520b0369215b7931fefa424fb92d295f0ebJames Dong * @ingroup midi
840334de520b0369215b7931fefa424fb92d295f0ebJames Dong */
841334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef enum OMX_AUDIO_MIDISOUNDBANKTYPE {
842334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MIDISoundBankUnused = 0,           /**< unused/unknown soundbank type */
843334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MIDISoundBankDLS1,                 /**< DLS version 1 */
844334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MIDISoundBankDLS2,                 /**< DLS version 2 */
845334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MIDISoundBankMobileDLSBase,        /**< Mobile DLS, using the base functionality */
846334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MIDISoundBankMobileDLSPlusOptions, /**< Mobile DLS, using the specification-defined optional feature set */
847a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_AUDIO_MIDISoundBankKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
848334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MIDISoundBankVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
849334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MIDISoundBankMax = 0x7FFFFFFF
850334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_MIDISOUNDBANKTYPE;
851334de520b0369215b7931fefa424fb92d295f0ebJames Dong
852334de520b0369215b7931fefa424fb92d295f0ebJames Dong
853a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/** Bank Layout describes how bank MSB & LSB are used in the DLS instrument definitions sound bank
854334de520b0369215b7931fefa424fb92d295f0ebJames Dong * @ingroup midi
855334de520b0369215b7931fefa424fb92d295f0ebJames Dong */
856334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef enum OMX_AUDIO_MIDISOUNDBANKLAYOUTTYPE {
857334de520b0369215b7931fefa424fb92d295f0ebJames Dong   OMX_AUDIO_MIDISoundBankLayoutUnused = 0,   /**< unused/unknown soundbank type */
858334de520b0369215b7931fefa424fb92d295f0ebJames Dong   OMX_AUDIO_MIDISoundBankLayoutGM,           /**< GS layout (based on bank MSB 0x00) */
859334de520b0369215b7931fefa424fb92d295f0ebJames Dong   OMX_AUDIO_MIDISoundBankLayoutGM2,          /**< General MIDI 2 layout (using MSB 0x78/0x79, LSB 0x00) */
860334de520b0369215b7931fefa424fb92d295f0ebJames Dong   OMX_AUDIO_MIDISoundBankLayoutUser,         /**< Does not conform to any bank numbering standards */
861a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar   OMX_AUDIO_MIDISoundBankLayoutKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */
862334de520b0369215b7931fefa424fb92d295f0ebJames Dong   OMX_AUDIO_MIDISoundBankLayoutVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
863334de520b0369215b7931fefa424fb92d295f0ebJames Dong   OMX_AUDIO_MIDISoundBankLayoutMax = 0x7FFFFFFF
864334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_MIDISOUNDBANKLAYOUTTYPE;
865334de520b0369215b7931fefa424fb92d295f0ebJames Dong
866334de520b0369215b7931fefa424fb92d295f0ebJames Dong
867a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/** MIDI params to load/unload user soundbank
868334de520b0369215b7931fefa424fb92d295f0ebJames Dong * @ingroup midi
869334de520b0369215b7931fefa424fb92d295f0ebJames Dong */
870334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_PARAM_MIDILOADUSERSOUNDTYPE {
871334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSize;            /**< size of the structure in bytes */
872334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
873334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nPortIndex;       /**< port that this structure applies to */
874334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nDLSIndex;        /**< DLS file index to be loaded */
875334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nDLSSize;         /**< Size in bytes */
876334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_PTR pDLSData;         /**< Pointer to DLS file data */
877334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MIDISOUNDBANKTYPE eMidiSoundBank;   /**< Midi sound bank type enumeration */
878334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_AUDIO_MIDISOUNDBANKLAYOUTTYPE eMidiSoundBankLayout; /**< Midi sound bank layout enumeration */
879334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_PARAM_MIDILOADUSERSOUNDTYPE;
880334de520b0369215b7931fefa424fb92d295f0ebJames Dong
881334de520b0369215b7931fefa424fb92d295f0ebJames Dong
882a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/** Structure for Live MIDI events and MIP messages.
883a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar * (MIP = Maximum Instantaneous Polyphony; part of the SP-MIDI standard.)
884334de520b0369215b7931fefa424fb92d295f0ebJames Dong * @ingroup midi
885334de520b0369215b7931fefa424fb92d295f0ebJames Dong */
886334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_CONFIG_MIDIIMMEDIATEEVENTTYPE {
887334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSize;            /**< size of the structure in bytes */
888334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
889334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nPortIndex;       /**< Port that this structure applies to */
890334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nMidiEventSize;   /**< Size of immediate MIDI events or MIP message in bytes  */
891334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U8 nMidiEvents[1];    /**< MIDI event array to be rendered immediately, or an
892a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar                                   array for the MIP message buffer, where the size is
893334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                   indicated by nMidiEventSize */
894334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_CONFIG_MIDIIMMEDIATEEVENTTYPE;
895334de520b0369215b7931fefa424fb92d295f0ebJames Dong
896334de520b0369215b7931fefa424fb92d295f0ebJames Dong
897a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar/** MIDI sound bank/ program pair in a given channel
898334de520b0369215b7931fefa424fb92d295f0ebJames Dong * @ingroup midi
899334de520b0369215b7931fefa424fb92d295f0ebJames Dong */
900334de520b0369215b7931fefa424fb92d295f0ebJames Dongtypedef struct OMX_AUDIO_CONFIG_MIDISOUNDBANKPROGRAMTYPE {
901334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nSize;              /**< size of the structure in bytes */
902334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_VERSIONTYPE nVersion;   /**< OMX specification version information */
903334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nPortIndex;         /**< Port that this structure applies to */
904334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U32 nChannel;           /**< Valid channel values range from 1 to 16 */
905334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U16 nIDProgram;         /**< Valid program ID range is 1 to 128 */
906334de520b0369215b7931fefa424fb92d295f0ebJames Dong    OMX_U16 nIDSoundBank;       /**< Sound bank ID */
907a1ae5a4fe52192525f510dc14ecf1f7d4fb107f5Lajos Molnar    OMX_U32 nUserSoundBankIndex;/**< User soundbank index, easier to access soundbanks
908334de520b0369215b7931fefa424fb92d295f0ebJames Dong                                     by index if multiple banks are present */
909334de520b0369215b7931fefa424fb92d295f0ebJames Dong} OMX_AUDIO_CONFIG_MIDISOUNDBANKPROGRAMTYPE;
910334de520b0369215b7931fefa424fb92d295f0ebJames Dong
911334de520b0369215b7931fefa424fb92d295f0ebJames Dong
912