Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

OMX_Audio.h

Go to the documentation of this file.
/*
 * Copyright (c) 2008 The Khronos Group Inc. 
 * 
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject
 * to the following conditions: 
 * The above copyright notice and this permission notice shall be included
 * in all copies or substantial portions of the Software. 
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
 *
 */

/** @file OMX_Audio.h - OpenMax IL version 1.1.2
 *  The structures needed by Audio components to exchange
 *  parameters and configuration data with the componenmilts.
 */

#ifndef OMX_Audio_h
#define OMX_Audio_h

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */


/* Each OMX header must include all required header files to allow the
 *  header to compile without errors.  The includes below are required
 *  for this header file to compile successfully 
 */

#include <OMX_Core.h>

/** @defgroup midi MIDI
 * @ingroup audio
 */
 
/** @defgroup effects Audio effects
 * @ingroup audio
 */

/** @defgroup audio OpenMAX IL Audio Domain
 * Structures for OpenMAX IL Audio domain
 * @{
 */

/** Enumeration used to define the possible audio codings.  
 *  If "OMX_AUDIO_CodingUnused" is selected, the coding selection must 
 *  be done in a vendor specific way.  Since this is for an audio 
 *  processing element this enum is relevant.  However, for another 
 *  type of component other enums would be in this area.
 */
00063 typedef enum OMX_AUDIO_CODINGTYPE {
00064     OMX_AUDIO_CodingUnused = 0,  /**< Placeholder value when coding is N/A  */
00065     OMX_AUDIO_CodingAutoDetect,  /**< auto detection of audio format */
00066     OMX_AUDIO_CodingPCM,         /**< Any variant of PCM coding */
00067     OMX_AUDIO_CodingADPCM,       /**< Any variant of ADPCM encoded data */
00068     OMX_AUDIO_CodingAMR,         /**< Any variant of AMR encoded data */
00069     OMX_AUDIO_CodingGSMFR,       /**< Any variant of GSM fullrate (i.e. GSM610) */
00070     OMX_AUDIO_CodingGSMEFR,      /**< Any variant of GSM Enhanced Fullrate encoded data*/
00071     OMX_AUDIO_CodingGSMHR,       /**< Any variant of GSM Halfrate encoded data */
00072     OMX_AUDIO_CodingPDCFR,       /**< Any variant of PDC Fullrate encoded data */
00073     OMX_AUDIO_CodingPDCEFR,      /**< Any variant of PDC Enhanced Fullrate encoded data */
00074     OMX_AUDIO_CodingPDCHR,       /**< Any variant of PDC Halfrate encoded data */
00075     OMX_AUDIO_CodingTDMAFR,      /**< Any variant of TDMA Fullrate encoded data (TIA/EIA-136-420) */
00076     OMX_AUDIO_CodingTDMAEFR,     /**< Any variant of TDMA Enhanced Fullrate encoded data (TIA/EIA-136-410) */
00077     OMX_AUDIO_CodingQCELP8,      /**< Any variant of QCELP 8kbps encoded data */
00078     OMX_AUDIO_CodingQCELP13,     /**< Any variant of QCELP 13kbps encoded data */
00079     OMX_AUDIO_CodingEVRC,        /**< Any variant of EVRC encoded data */
00080     OMX_AUDIO_CodingSMV,         /**< Any variant of SMV encoded data */
00081     OMX_AUDIO_CodingG711,        /**< Any variant of G.711 encoded data */
00082     OMX_AUDIO_CodingG723,        /**< Any variant of G.723 dot 1 encoded data */
00083     OMX_AUDIO_CodingG726,        /**< Any variant of G.726 encoded data */
00084     OMX_AUDIO_CodingG729,        /**< Any variant of G.729 encoded data */
00085     OMX_AUDIO_CodingAAC,         /**< Any variant of AAC encoded data */
00086     OMX_AUDIO_CodingMP3,         /**< Any variant of MP3 encoded data */
00087     OMX_AUDIO_CodingSBC,         /**< Any variant of SBC encoded data */
00088     OMX_AUDIO_CodingVORBIS,      /**< Any variant of VORBIS encoded data */
00089     OMX_AUDIO_CodingWMA,         /**< Any variant of WMA encoded data */
00090     OMX_AUDIO_CodingRA,          /**< Any variant of RA encoded data */
00091     OMX_AUDIO_CodingMIDI,        /**< Any variant of MIDI encoded data */
00092     OMX_AUDIO_CodingKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
00093     OMX_AUDIO_CodingVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
    OMX_AUDIO_CodingMax = 0x7FFFFFFF
} OMX_AUDIO_CODINGTYPE;


/** The PortDefinition structure is used to define all of the parameters 
 *  necessary for the compliant component to setup an input or an output audio 
 *  path.  If additional information is needed to define the parameters of the
 *  port (such as frequency), additional structures must be sent such as the
 *  OMX_AUDIO_PARAM_PCMMODETYPE structure to supply the extra parameters for the port.
 */
00104 typedef struct OMX_AUDIO_PORTDEFINITIONTYPE {
00105     OMX_STRING cMIMEType;            /**< MIME type of data for the port */
    OMX_NATIVE_DEVICETYPE pNativeRender; /** < platform specific reference
                                               for an output device, 
                                               otherwise this field is 0 */
00109     OMX_BOOL bFlagErrorConcealment;  /**< Turns on error concealment if it is 
                                          supported by the OMX component */
00111     OMX_AUDIO_CODINGTYPE eEncoding;  /**< Type of data expected for this 
                                          port (e.g. PCM, AMR, MP3, etc) */
} OMX_AUDIO_PORTDEFINITIONTYPE;


/**  Port format parameter.  This structure is used to enumerate
  *  the various data input/output format supported by the port.
  */
00119 typedef struct OMX_AUDIO_PARAM_PORTFORMATTYPE {
00120     OMX_U32 nSize;                  /**< size of the structure in bytes */
00121     OMX_VERSIONTYPE nVersion;       /**< OMX specification version information */
00122     OMX_U32 nPortIndex;             /**< Indicates which port to set */
00123     OMX_U32 nIndex;                 /**< Indicates the enumeration index for the format from 0x0 to N-1 */
00124     OMX_AUDIO_CODINGTYPE eEncoding; /**< Type of data expected for this port (e.g. PCM, AMR, MP3, etc) */
} OMX_AUDIO_PARAM_PORTFORMATTYPE;


/** PCM mode type  */ 
00129 typedef enum OMX_AUDIO_PCMMODETYPE { 
00130     OMX_AUDIO_PCMModeLinear = 0,  /**< Linear PCM encoded data */ 
00131     OMX_AUDIO_PCMModeALaw,        /**< A law PCM encoded data (G.711) */ 
00132     OMX_AUDIO_PCMModeMULaw,       /**< Mu law PCM encoded data (G.711)  */ 
00133     OMX_AUDIO_PCMModeKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
00134     OMX_AUDIO_PCMModeVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
    OMX_AUDIO_PCMModeMax = 0x7FFFFFFF 
} OMX_AUDIO_PCMMODETYPE; 


00139 typedef enum OMX_AUDIO_CHANNELTYPE {
00140     OMX_AUDIO_ChannelNone = 0x0,    /**< Unused or empty */
00141     OMX_AUDIO_ChannelLF   = 0x1,    /**< Left front */
00142     OMX_AUDIO_ChannelRF   = 0x2,    /**< Right front */
00143     OMX_AUDIO_ChannelCF   = 0x3,    /**< Center front */
00144     OMX_AUDIO_ChannelLS   = 0x4,    /**< Left surround */
00145     OMX_AUDIO_ChannelRS   = 0x5,    /**< Right surround */
00146     OMX_AUDIO_ChannelLFE  = 0x6,    /**< Low frequency effects */
00147     OMX_AUDIO_ChannelCS   = 0x7,    /**< Back surround */
00148     OMX_AUDIO_ChannelLR   = 0x8,    /**< Left rear. */
00149     OMX_AUDIO_ChannelRR   = 0x9,    /**< Right rear. */
00150     OMX_AUDIO_ChannelKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
00151     OMX_AUDIO_ChannelVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
    OMX_AUDIO_ChannelMax  = 0x7FFFFFFF 
} OMX_AUDIO_CHANNELTYPE;

00155 #define OMX_AUDIO_MAXCHANNELS 16  /**< maximum number distinct audio channels that a buffer may contain */
00156 #define OMX_MIN_PCMPAYLOAD_MSEC 5 /**< Minimum audio buffer payload size for uncompressed (PCM) audio */

/** PCM format description */ 
00159 typedef struct OMX_AUDIO_PARAM_PCMMODETYPE { 
00160     OMX_U32 nSize;                    /**< Size of this structure, in Bytes */ 
00161     OMX_VERSIONTYPE nVersion;         /**< OMX specification version information */ 
00162     OMX_U32 nPortIndex;               /**< port that this structure applies to */ 
00163     OMX_U32 nChannels;                /**< Number of channels (e.g. 2 for stereo) */ 
00164     OMX_NUMERICALDATATYPE eNumData;   /**< indicates PCM data as signed or unsigned */ 
00165     OMX_ENDIANTYPE eEndian;           /**< indicates PCM data as little or big endian */ 
00166     OMX_BOOL bInterleaved;            /**< True for normal interleaved data; false for 
                                           non-interleaved data (e.g. block data) */ 
00168     OMX_U32 nBitPerSample;            /**< Bit per sample */ 
00169     OMX_U32 nSamplingRate;            /**< Sampling rate of the source data.  Use 0 for 
                                           variable or unknown sampling rate. */ 
00171     OMX_AUDIO_PCMMODETYPE ePCMMode;   /**< PCM mode enumeration */ 
00172     OMX_AUDIO_CHANNELTYPE eChannelMapping[OMX_AUDIO_MAXCHANNELS]; /**< Slot i contains channel defined by eChannelMap[i] */

} OMX_AUDIO_PARAM_PCMMODETYPE; 


/** Audio channel mode.  This is used by both AAC and MP3, although the names are more appropriate
 * for the MP3.  For example, JointStereo for MP3 is CouplingChannels for AAC. 
 */
00180 typedef enum OMX_AUDIO_CHANNELMODETYPE {
00181     OMX_AUDIO_ChannelModeStereo = 0,  /**< 2 channels, the bitrate allocation between those 
                                          two channels changes accordingly to each channel information */
00183     OMX_AUDIO_ChannelModeJointStereo, /**< mode that takes advantage of what is common between 
                                           2 channels for higher compression gain */
00185     OMX_AUDIO_ChannelModeDual,        /**< 2 mono-channels, each channel is encoded with half 
                                           the bitrate of the overall bitrate */
00187     OMX_AUDIO_ChannelModeMono,        /**< Mono channel mode */
00188     OMX_AUDIO_ChannelModeKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
00189     OMX_AUDIO_ChannelModeVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
    OMX_AUDIO_ChannelModeMax = 0x7FFFFFFF
} OMX_AUDIO_CHANNELMODETYPE;


00194 typedef enum OMX_AUDIO_MP3STREAMFORMATTYPE {
00195     OMX_AUDIO_MP3StreamFormatMP1Layer3 = 0, /**< MP3 Audio MPEG 1 Layer 3 Stream format */
00196     OMX_AUDIO_MP3StreamFormatMP2Layer3,     /**< MP3 Audio MPEG 2 Layer 3 Stream format */
00197     OMX_AUDIO_MP3StreamFormatMP2_5Layer3,   /**< MP3 Audio MPEG2.5 Layer 3 Stream format */
00198     OMX_AUDIO_MP3StreamFormatKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
00199     OMX_AUDIO_MP3StreamFormatVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
    OMX_AUDIO_MP3StreamFormatMax = 0x7FFFFFFF
} OMX_AUDIO_MP3STREAMFORMATTYPE;

/** MP3 params */
00204 typedef struct OMX_AUDIO_PARAM_MP3TYPE {
00205     OMX_U32 nSize;                 /**< size of the structure in bytes */
00206     OMX_VERSIONTYPE nVersion;      /**< OMX specification version information */
00207     OMX_U32 nPortIndex;            /**< port that this structure applies to */
00208     OMX_U32 nChannels;             /**< Number of channels */
00209     OMX_U32 nBitRate;              /**< Bit rate of the input data.  Use 0 for variable
                                        rate or unknown bit rates */
00211     OMX_U32 nSampleRate;           /**< Sampling rate of the source data.  Use 0 for
                                        variable or unknown sampling rate. */
00213     OMX_U32 nAudioBandWidth;       /**< Audio band width (in Hz) to which an encoder should
                                        limit the audio signal. Use 0 to let encoder decide */
00215     OMX_AUDIO_CHANNELMODETYPE eChannelMode;   /**< Channel mode enumeration */
00216     OMX_AUDIO_MP3STREAMFORMATTYPE eFormat;  /**< MP3 stream format */
} OMX_AUDIO_PARAM_MP3TYPE;


00220 typedef enum OMX_AUDIO_AACSTREAMFORMATTYPE {
00221     OMX_AUDIO_AACStreamFormatMP2ADTS = 0, /**< AAC Audio Data Transport Stream 2 format */
00222     OMX_AUDIO_AACStreamFormatMP4ADTS,     /**< AAC Audio Data Transport Stream 4 format */
00223     OMX_AUDIO_AACStreamFormatMP4LOAS,     /**< AAC Low Overhead Audio Stream format */
00224     OMX_AUDIO_AACStreamFormatMP4LATM,     /**< AAC Low overhead Audio Transport Multiplex */
00225     OMX_AUDIO_AACStreamFormatADIF,        /**< AAC Audio Data Interchange Format */
00226     OMX_AUDIO_AACStreamFormatMP4FF,       /**< AAC inside MPEG-4/ISO File Format */
00227     OMX_AUDIO_AACStreamFormatRAW,         /**< AAC Raw Format */
00228     OMX_AUDIO_AACStreamFormatKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
00229     OMX_AUDIO_AACStreamFormatVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
    OMX_AUDIO_AACStreamFormatMax = 0x7FFFFFFF
} OMX_AUDIO_AACSTREAMFORMATTYPE;


/** AAC mode type.  Note that the term profile is used with the MPEG-2
 * standard and the term object type and profile is used with MPEG-4 */
00236 typedef enum OMX_AUDIO_AACPROFILETYPE{
00237   OMX_AUDIO_AACObjectNull = 0,      /**< Null, not used */
00238   OMX_AUDIO_AACObjectMain = 1,      /**< AAC Main object */
00239   OMX_AUDIO_AACObjectLC,            /**< AAC Low Complexity object (AAC profile) */
00240   OMX_AUDIO_AACObjectSSR,           /**< AAC Scalable Sample Rate object */
00241   OMX_AUDIO_AACObjectLTP,           /**< AAC Long Term Prediction object */
00242   OMX_AUDIO_AACObjectHE,            /**< AAC High Efficiency (object type SBR, HE-AAC profile) */
00243   OMX_AUDIO_AACObjectScalable,      /**< AAC Scalable object */
00244   OMX_AUDIO_AACObjectERLC = 17,     /**< ER AAC Low Complexity object (Error Resilient AAC-LC) */
00245   OMX_AUDIO_AACObjectLD = 23,       /**< AAC Low Delay object (Error Resilient) */
00246   OMX_AUDIO_AACObjectHE_PS = 29,    /**< AAC High Efficiency with Parametric Stereo coding (HE-AAC v2, object type PS) */
00247   OMX_AUDIO_AACObjectKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
00248   OMX_AUDIO_AACObjectVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
  OMX_AUDIO_AACObjectMax = 0x7FFFFFFF
} OMX_AUDIO_AACPROFILETYPE;


/** AAC tool usage (for nAACtools in OMX_AUDIO_PARAM_AACPROFILETYPE).
 * Required for encoder configuration and optional as decoder info output.
 * For MP3, OMX_AUDIO_CHANNELMODETYPE is sufficient. */
00256 #define OMX_AUDIO_AACToolNone 0x00000000 /**< no AAC tools allowed (encoder config) or active (decoder info output) */
00257 #define OMX_AUDIO_AACToolMS   0x00000001 /**< MS: Mid/side joint coding tool allowed or active */
00258 #define OMX_AUDIO_AACToolIS   0x00000002 /**< IS: Intensity stereo tool allowed or active */
00259 #define OMX_AUDIO_AACToolTNS  0x00000004 /**< TNS: Temporal Noise Shaping tool allowed or active */
00260 #define OMX_AUDIO_AACToolPNS  0x00000008 /**< PNS: MPEG-4 Perceptual Noise substitution tool allowed or active */
00261 #define OMX_AUDIO_AACToolLTP  0x00000010 /**< LTP: MPEG-4 Long Term Prediction tool allowed or active */
00262 #define OMX_AUDIO_AACToolAll  0x7FFFFFFF /**< all AAC tools allowed or active (*/

/** MPEG-4 AAC error resilience (ER) tool usage (for nAACERtools in OMX_AUDIO_PARAM_AACPROFILETYPE).
 * Required for ER encoder configuration and optional as decoder info output */
00266 #define OMX_AUDIO_AACERNone  0x00000000  /**< no AAC ER tools allowed/used */
00267 #define OMX_AUDIO_AACERVCB11 0x00000001  /**< VCB11: Virtual Code Books for AAC section data */
00268 #define OMX_AUDIO_AACERRVLC  0x00000002  /**< RVLC: Reversible Variable Length Coding */
00269 #define OMX_AUDIO_AACERHCR   0x00000004  /**< HCR: Huffman Codeword Reordering */
00270 #define OMX_AUDIO_AACERAll   0x7FFFFFFF  /**< all AAC ER tools allowed/used */


/** AAC params */
00274 typedef struct OMX_AUDIO_PARAM_AACPROFILETYPE {
00275     OMX_U32 nSize;                 /**< Size of this structure, in Bytes */
00276     OMX_VERSIONTYPE nVersion;      /**< OMX specification version information */
00277     OMX_U32 nPortIndex;            /**< Port that this structure applies to */
00278     OMX_U32 nChannels;             /**< Number of channels */
00279     OMX_U32 nSampleRate;           /**< Sampling rate of the source data.  Use 0 for
                                        variable or unknown sampling rate. */
00281     OMX_U32 nBitRate;              /**< Bit rate of the input data.  Use 0 for variable
                                        rate or unknown bit rates */
00283     OMX_U32 nAudioBandWidth;       /**< Audio band width (in Hz) to which an encoder should
                                        limit the audio signal. Use 0 to let encoder decide */
00285     OMX_U32 nFrameLength;          /**< Frame length (in audio samples per channel) of the codec.
                                        Can be 1024 or 960 (AAC-LC), 2048 (HE-AAC), 480 or 512 (AAC-LD).
                                        Use 0 to let encoder decide */
00288     OMX_U32 nAACtools;             /**< AAC tool usage */
00289     OMX_U32 nAACERtools;           /**< MPEG-4 AAC error resilience tool usage */
00290     OMX_AUDIO_AACPROFILETYPE eAACProfile;   /**< AAC profile enumeration */
00291     OMX_AUDIO_AACSTREAMFORMATTYPE eAACStreamFormat; /**< AAC stream format enumeration */
00292     OMX_AUDIO_CHANNELMODETYPE eChannelMode;   /**< Channel mode enumeration */
} OMX_AUDIO_PARAM_AACPROFILETYPE;


/** VORBIS params */
00297 typedef struct OMX_AUDIO_PARAM_VORBISTYPE {
00298     OMX_U32 nSize;            /**< size of the structure in bytes */
00299     OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
00300     OMX_U32 nPortIndex;       /**< port that this structure applies to */
00301     OMX_U32 nChannels;        /**< Number of channels */
00302     OMX_U32 nBitRate;         /**< Bit rate of the encoded data data.  Use 0 for variable
                                   rate or unknown bit rates. Encoding is set to the
                                   bitrate closest to specified  value (in bps) */
00305     OMX_U32 nMinBitRate;      /**< Sets minimum bitrate (in bps). */
00306     OMX_U32 nMaxBitRate;      /**< Sets maximum bitrate (in bps). */

00308     OMX_U32 nSampleRate;      /**< Sampling rate of the source data.  Use 0 for
                                   variable or unknown sampling rate. */
00310     OMX_U32 nAudioBandWidth;  /**< Audio band width (in Hz) to which an encoder should
                                   limit the audio signal. Use 0 to let encoder decide */
00312     OMX_S32 nQuality;           /**< Sets encoding quality to n, between -1 (low) and 10 (high).
                                   In the default mode of operation, teh quality level is 3.
                                   Normal quality range is 0 - 10. */
00315     OMX_BOOL bManaged;          /**< Set  bitrate  management  mode. This turns off the
                                   normal VBR encoding, but allows hard or soft bitrate
                                   constraints to be enforced by the encoder. This mode can
                                   be slower, and may also be lower quality. It is
                                   primarily useful for streaming. */
00320     OMX_BOOL bDownmix;          /**< Downmix input from stereo to mono (has no effect on 
                                   non-stereo streams). Useful for lower-bitrate encoding. */     
} OMX_AUDIO_PARAM_VORBISTYPE;


/** WMA Version */
00326 typedef enum OMX_AUDIO_WMAFORMATTYPE {
00327   OMX_AUDIO_WMAFormatUnused = 0, /**< format unused or unknown */
00328   OMX_AUDIO_WMAFormat7,          /**< Windows Media Audio format 7 */
00329   OMX_AUDIO_WMAFormat8,          /**< Windows Media Audio format 8 */
00330   OMX_AUDIO_WMAFormat9,          /**< Windows Media Audio format 9 */
00331   OMX_AUDIO_WMAFormatKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
00332   OMX_AUDIO_WMAFormatVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
  OMX_AUDIO_WMAFormatMax = 0x7FFFFFFF
} OMX_AUDIO_WMAFORMATTYPE;


/** WMA Profile */
00338 typedef enum OMX_AUDIO_WMAPROFILETYPE {
00339   OMX_AUDIO_WMAProfileUnused = 0,  /**< profile unused or unknown */
00340   OMX_AUDIO_WMAProfileL1,          /**< Windows Media audio version 9 profile L1 */
00341   OMX_AUDIO_WMAProfileL2,          /**< Windows Media audio version 9 profile L2 */
00342   OMX_AUDIO_WMAProfileL3,          /**< Windows Media audio version 9 profile L3 */
00343   OMX_AUDIO_WMAProfileKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
00344   OMX_AUDIO_WMAProfileVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
  OMX_AUDIO_WMAProfileMax = 0x7FFFFFFF
} OMX_AUDIO_WMAPROFILETYPE;


/** WMA params */
00350 typedef struct OMX_AUDIO_PARAM_WMATYPE {
00351     OMX_U32 nSize;            /**< size of the structure in bytes */
00352     OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
00353     OMX_U32 nPortIndex;       /**< port that this structure applies to */
00354     OMX_U16 nChannels;        /**< Number of channels */
00355     OMX_U32 nBitRate;         /**< Bit rate of the input data.  Use 0 for variable
                                   rate or unknown bit rates */
00357     OMX_AUDIO_WMAFORMATTYPE eFormat; /**< Version of WMA stream / data */
00358       OMX_AUDIO_WMAPROFILETYPE eProfile;  /**< Profile of WMA stream / data */
00359     OMX_U32 nSamplingRate;    /**< Sampling rate of the source data */
00360     OMX_U16 nBlockAlign;      /**< is the block alignment, or block size, in bytes of the audio codec */
00361     OMX_U16 nEncodeOptions;   /**< WMA Type-specific data */
00362     OMX_U32 nSuperBlockAlign; /**< WMA Type-specific data */
} OMX_AUDIO_PARAM_WMATYPE;

/** 
 * RealAudio format
 */
00368 typedef enum OMX_AUDIO_RAFORMATTYPE {
00369     OMX_AUDIO_RAFormatUnused = 0, /**< Format unused or unknown */
00370     OMX_AUDIO_RA8,                /**< RealAudio 8 codec */
00371     OMX_AUDIO_RA9,                /**< RealAudio 9 codec */
00372     OMX_AUDIO_RA10_AAC,           /**< MPEG-4 AAC codec for bitrates of more than 128kbps */
00373     OMX_AUDIO_RA10_CODEC,         /**< RealAudio codec for bitrates less than 128 kbps */
00374     OMX_AUDIO_RA10_LOSSLESS,      /**< RealAudio Lossless */
00375     OMX_AUDIO_RA10_MULTICHANNEL,  /**< RealAudio Multichannel */
00376     OMX_AUDIO_RA10_VOICE,         /**< RealAudio Voice for bitrates below 15 kbps */
00377     OMX_AUDIO_RAFormatKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
00378     OMX_AUDIO_RAFormatVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
    OMX_VIDEO_RAFormatMax = 0x7FFFFFFF
} OMX_AUDIO_RAFORMATTYPE;

/** RA (Real Audio) params */ 
00383 typedef struct OMX_AUDIO_PARAM_RATYPE { 
00384     OMX_U32 nSize;              /**< Size of this structure, in Bytes */ 
00385     OMX_VERSIONTYPE nVersion;   /**< OMX specification version information */ 
00386     OMX_U32 nPortIndex;         /**< Port that this structure applies to */ 
00387     OMX_U32 nChannels;          /**< Number of channels */ 
00388     OMX_U32 nSamplingRate;      /**< is the sampling rate of the source data */ 
00389     OMX_U32 nBitsPerFrame;      /**< is the value for bits per frame  */ 
00390     OMX_U32 nSamplePerFrame;    /**< is the value for samples per frame */ 
00391     OMX_U32 nCouplingQuantBits; /**< is the number of coupling quantization bits in the stream */ 
00392     OMX_U32 nCouplingStartRegion;   /**< is the coupling start region in the stream  */ 
00393     OMX_U32 nNumRegions;        /**< is the number of regions value */ 
00394     OMX_AUDIO_RAFORMATTYPE eFormat; /**< is the RealAudio audio format */
} OMX_AUDIO_PARAM_RATYPE; 


/** SBC Allocation Method Type */
00399 typedef enum OMX_AUDIO_SBCALLOCMETHODTYPE {
00400   OMX_AUDIO_SBCAllocMethodLoudness, /**< Loudness allocation method */
00401   OMX_AUDIO_SBCAllocMethodSNR,      /**< SNR allocation method */
00402   OMX_AUDIO_SBCAllocMethodKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
00403   OMX_AUDIO_SBCAllocMethodVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
  OMX_AUDIO_SBCAllocMethodMax = 0x7FFFFFFF
} OMX_AUDIO_SBCALLOCMETHODTYPE;


/** SBC params */
00409 typedef struct OMX_AUDIO_PARAM_SBCTYPE {
00410     OMX_U32 nSize;             /**< size of the structure in bytes */
00411     OMX_VERSIONTYPE nVersion;  /**< OMX specification version information */
00412     OMX_U32 nPortIndex;        /**< port that this structure applies to */
00413     OMX_U32 nChannels;         /**< Number of channels */
00414     OMX_U32 nBitRate;          /**< Bit rate of the input data.  Use 0 for variable
                                    rate or unknown bit rates */
00416     OMX_U32 nSampleRate;       /**< Sampling rate of the source data.  Use 0 for
                                    variable or unknown sampling rate. */
00418     OMX_U32 nBlocks;           /**< Number of blocks */
00419     OMX_U32 nSubbands;         /**< Number of subbands */
00420     OMX_U32 nBitPool;          /**< Bitpool value */
00421     OMX_BOOL bEnableBitrate;   /**< Use bitrate value instead of bitpool */
00422     OMX_AUDIO_CHANNELMODETYPE eChannelMode; /**< Channel mode enumeration */
00423     OMX_AUDIO_SBCALLOCMETHODTYPE eSBCAllocType;   /**< SBC Allocation method type */
} OMX_AUDIO_PARAM_SBCTYPE;


/** ADPCM stream format parameters */ 
00428 typedef struct OMX_AUDIO_PARAM_ADPCMTYPE { 
00429     OMX_U32 nSize;              /**< size of the structure in bytes */ 
00430     OMX_VERSIONTYPE nVersion;   /**< OMX specification version information */ 
00431     OMX_U32 nPortIndex;         /**< port that this structure applies to */ 
00432     OMX_U32 nChannels;          /**< Number of channels in the data stream (not 
                                     necessarily the same as the number of channels 
                                     to be rendered. */ 
00435     OMX_U32 nBitsPerSample;     /**< Number of bits in each sample */ 
00436     OMX_U32 nSampleRate;        /**< Sampling rate of the source data.  Use 0 for 
                                    variable or unknown sampling rate. */ 
} OMX_AUDIO_PARAM_ADPCMTYPE; 


/** G723 rate */
00442 typedef enum OMX_AUDIO_G723RATE {
00443     OMX_AUDIO_G723ModeUnused = 0,  /**< AMRNB Mode unused / unknown */
00444     OMX_AUDIO_G723ModeLow,         /**< 5300 bps */
00445     OMX_AUDIO_G723ModeHigh,        /**< 6300 bps */
00446     OMX_AUDIO_G723ModeKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
00447     OMX_AUDIO_G723ModeVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
    OMX_AUDIO_G723ModeMax = 0x7FFFFFFF
} OMX_AUDIO_G723RATE;


/** G723 - Sample rate must be 8 KHz */
00453 typedef struct OMX_AUDIO_PARAM_G723TYPE { 
00454     OMX_U32 nSize;                /**< size of the structure in bytes */ 
00455     OMX_VERSIONTYPE nVersion;     /**< OMX specification version information */ 
00456     OMX_U32 nPortIndex;           /**< port that this structure applies to */ 
00457     OMX_U32 nChannels;            /**< Number of channels in the data stream (not 
                                       necessarily the same as the number of channels 
                                       to be rendered. */ 
00460     OMX_BOOL bDTX;                /**< Enable Discontinuous Transmisssion */ 
00461     OMX_AUDIO_G723RATE eBitRate;  /**< todo: Should this be moved to a config? */
00462     OMX_BOOL bHiPassFilter;       /**< Enable High Pass Filter */ 
00463     OMX_BOOL bPostFilter;         /**< Enable Post Filter */ 
} OMX_AUDIO_PARAM_G723TYPE; 


/** ITU G726 (ADPCM) rate */
00468 typedef enum OMX_AUDIO_G726MODE {
00469     OMX_AUDIO_G726ModeUnused = 0,  /**< G726 Mode unused / unknown */
00470     OMX_AUDIO_G726Mode16,          /**< 16 kbps */
00471     OMX_AUDIO_G726Mode24,          /**< 24 kbps */
00472     OMX_AUDIO_G726Mode32,          /**< 32 kbps, most common rate, also G721 */
00473     OMX_AUDIO_G726Mode40,          /**< 40 kbps */
00474     OMX_AUDIO_G726ModeKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
00475     OMX_AUDIO_G726ModeVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
    OMX_AUDIO_G726ModeMax = 0x7FFFFFFF
} OMX_AUDIO_G726MODE;


/** G.726 stream format parameters - must be at 8KHz */ 
00481 typedef struct OMX_AUDIO_PARAM_G726TYPE { 
00482     OMX_U32 nSize;              /**< size of the structure in bytes */ 
00483     OMX_VERSIONTYPE nVersion;   /**< OMX specification version information */ 
00484     OMX_U32 nPortIndex;         /**< port that this structure applies to */ 
00485     OMX_U32 nChannels;          /**< Number of channels in the data stream (not 
                                     necessarily the same as the number of channels 
                                     to be rendered. */ 
     OMX_AUDIO_G726MODE eG726Mode;
} OMX_AUDIO_PARAM_G726TYPE; 


/** G729 coder type */
00493 typedef enum OMX_AUDIO_G729TYPE {
00494     OMX_AUDIO_G729 = 0,           /**< ITU G.729  encoded data */
00495     OMX_AUDIO_G729A,              /**< ITU G.729 annex A  encoded data */
00496     OMX_AUDIO_G729B,              /**< ITU G.729 with annex B encoded data */
00497     OMX_AUDIO_G729AB,             /**< ITU G.729 annexes A and B encoded data */
00498     OMX_AUDIO_G729KhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
00499     OMX_AUDIO_G729VendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
    OMX_AUDIO_G729Max = 0x7FFFFFFF
} OMX_AUDIO_G729TYPE;


/** G729 stream format parameters - fixed 6KHz sample rate */
00505 typedef struct OMX_AUDIO_PARAM_G729TYPE {
00506     OMX_U32 nSize;            /**< size of the structure in bytes */
00507     OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
00508     OMX_U32 nPortIndex;       /**< port that this structure applies to */
00509     OMX_U32 nChannels;        /**< Number of channels in the data stream (not
                                   necessarily the same as the number of channels
                                   to be rendered. */
00512     OMX_BOOL bDTX;            /**< Enable Discontinuous Transmisssion */
    OMX_AUDIO_G729TYPE eBitType;
} OMX_AUDIO_PARAM_G729TYPE;


/** AMR Frame format */ 
00518 typedef enum OMX_AUDIO_AMRFRAMEFORMATTYPE { 
00519     OMX_AUDIO_AMRFrameFormatConformance = 0,  /**< Frame Format is AMR Conformance 
                                                   (Standard) Format */ 
00521     OMX_AUDIO_AMRFrameFormatIF1,              /**< Frame Format is AMR Interface 
                                                   Format 1 */ 
00523     OMX_AUDIO_AMRFrameFormatIF2,              /**< Frame Format is AMR Interface 
                                                   Format 2*/ 
00525     OMX_AUDIO_AMRFrameFormatFSF,              /**< Frame Format is AMR File Storage 
                                                   Format */ 
00527     OMX_AUDIO_AMRFrameFormatRTPPayload,       /**< Frame Format is AMR Real-Time 
                                                   Transport Protocol Payload Format */ 
00529     OMX_AUDIO_AMRFrameFormatITU,              /**< Frame Format is ITU Format (added at Motorola request) */ 
00530     OMX_AUDIO_AMRFrameFormatKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
00531     OMX_AUDIO_AMRFrameFormatVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
    OMX_AUDIO_AMRFrameFormatMax = 0x7FFFFFFF 
} OMX_AUDIO_AMRFRAMEFORMATTYPE; 


/** AMR band mode */
00537 typedef enum OMX_AUDIO_AMRBANDMODETYPE {
00538     OMX_AUDIO_AMRBandModeUnused = 0,          /**< AMRNB Mode unused / unknown */
00539     OMX_AUDIO_AMRBandModeNB0,                 /**< AMRNB Mode 0 =  4750 bps */
00540     OMX_AUDIO_AMRBandModeNB1,                 /**< AMRNB Mode 1 =  5150 bps */
00541     OMX_AUDIO_AMRBandModeNB2,                 /**< AMRNB Mode 2 =  5900 bps */ 
00542     OMX_AUDIO_AMRBandModeNB3,                 /**< AMRNB Mode 3 =  6700 bps */
00543     OMX_AUDIO_AMRBandModeNB4,                 /**< AMRNB Mode 4 =  7400 bps */
00544     OMX_AUDIO_AMRBandModeNB5,                 /**< AMRNB Mode 5 =  7950 bps */
00545     OMX_AUDIO_AMRBandModeNB6,                 /**< AMRNB Mode 6 = 10200 bps */
00546     OMX_AUDIO_AMRBandModeNB7,                 /**< AMRNB Mode 7 = 12200 bps */
00547     OMX_AUDIO_AMRBandModeWB0,                 /**< AMRWB Mode 0 =  6600 bps */
00548     OMX_AUDIO_AMRBandModeWB1,                 /**< AMRWB Mode 1 =  8850 bps */
00549     OMX_AUDIO_AMRBandModeWB2,                 /**< AMRWB Mode 2 = 12650 bps */ 
00550     OMX_AUDIO_AMRBandModeWB3,                 /**< AMRWB Mode 3 = 14250 bps */ 
00551     OMX_AUDIO_AMRBandModeWB4,                 /**< AMRWB Mode 4 = 15850 bps */
00552     OMX_AUDIO_AMRBandModeWB5,                 /**< AMRWB Mode 5 = 18250 bps */
00553     OMX_AUDIO_AMRBandModeWB6,                 /**< AMRWB Mode 6 = 19850 bps */
00554     OMX_AUDIO_AMRBandModeWB7,                 /**< AMRWB Mode 7 = 23050 bps */
00555     OMX_AUDIO_AMRBandModeWB8,                 /**< AMRWB Mode 8 = 23850 bps */      
00556     OMX_AUDIO_AMRBandModeKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
00557     OMX_AUDIO_AMRBandModeVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
    OMX_AUDIO_AMRBandModeMax = 0x7FFFFFFF
} OMX_AUDIO_AMRBANDMODETYPE;
     

/** AMR Discontinuous Transmission mode */ 
00563 typedef enum OMX_AUDIO_AMRDTXMODETYPE { 
00564     OMX_AUDIO_AMRDTXModeOff = 0,        /**< AMR Discontinuous Transmission Mode is disabled */ 
00565     OMX_AUDIO_AMRDTXModeOnVAD1,         /**< AMR Discontinuous Transmission Mode using 
                                             Voice Activity Detector 1 (VAD1) is enabled */ 
00567     OMX_AUDIO_AMRDTXModeOnVAD2,         /**< AMR Discontinuous Transmission Mode using 
                                             Voice Activity Detector 2 (VAD2) is enabled */       
00569     OMX_AUDIO_AMRDTXModeOnAuto,         /**< The codec will automatically select between 
                                             Off, VAD1 or VAD2 modes */ 

00572     OMX_AUDIO_AMRDTXasEFR,             /**< DTX as EFR instead of AMR standard (3GPP 26.101, frame type =8,9,10) */

00574     OMX_AUDIO_AMRDTXModeKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
00575     OMX_AUDIO_AMRDTXModeVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
    OMX_AUDIO_AMRDTXModeMax = 0x7FFFFFFF 
} OMX_AUDIO_AMRDTXMODETYPE; 
 

/** AMR params */
00581 typedef struct OMX_AUDIO_PARAM_AMRTYPE {
00582     OMX_U32 nSize;                          /**< size of the structure in bytes */
00583     OMX_VERSIONTYPE nVersion;               /**< OMX specification version information */
00584     OMX_U32 nPortIndex;                     /**< port that this structure applies to */
00585     OMX_U32 nChannels;                      /**< Number of channels */
00586     OMX_U32 nBitRate;                       /**< Bit rate read only field */
00587     OMX_AUDIO_AMRBANDMODETYPE eAMRBandMode; /**< AMR Band Mode enumeration */ 
00588     OMX_AUDIO_AMRDTXMODETYPE  eAMRDTXMode;  /**< AMR DTX Mode enumeration */
00589     OMX_AUDIO_AMRFRAMEFORMATTYPE eAMRFrameFormat; /**< AMR frame format enumeration */
} OMX_AUDIO_PARAM_AMRTYPE;


/** GSM_FR (ETSI 06.10, 3GPP 46.010) stream format parameters */
00594 typedef struct OMX_AUDIO_PARAM_GSMFRTYPE {
00595     OMX_U32 nSize;            /**< size of the structure in bytes */
00596     OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
00597     OMX_U32 nPortIndex;       /**< port that this structure applies to */
00598     OMX_BOOL bDTX;            /**< Enable Discontinuous Transmisssion */
00599     OMX_BOOL bHiPassFilter;   /**< Enable High Pass Filter */
} OMX_AUDIO_PARAM_GSMFRTYPE;


/** GSM-HR (ETSI 06.20, 3GPP 46.020) stream format parameters */
00604 typedef struct OMX_AUDIO_PARAM_GSMHRTYPE {
00605     OMX_U32 nSize;            /**< size of the structure in bytes */
00606     OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
00607     OMX_U32 nPortIndex;       /**< port that this structure applies to */
00608     OMX_BOOL bDTX;            /**< Enable Discontinuous Transmisssion */
00609     OMX_BOOL bHiPassFilter;   /**< Enable High Pass Filter */
} OMX_AUDIO_PARAM_GSMHRTYPE;


/** GSM-EFR (ETSI 06.60, 3GPP 46.060) stream format parameters */
00614 typedef struct OMX_AUDIO_PARAM_GSMEFRTYPE {
00615     OMX_U32 nSize;            /**< size of the structure in bytes */
00616     OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
00617     OMX_U32 nPortIndex;       /**< port that this structure applies to */
00618     OMX_BOOL bDTX;            /**< Enable Discontinuous Transmisssion */
00619     OMX_BOOL bHiPassFilter;   /**< Enable High Pass Filter */
} OMX_AUDIO_PARAM_GSMEFRTYPE;


/** TDMA FR (TIA/EIA-136-420, VSELP 7.95kbps coder) stream format parameters */
00624 typedef struct OMX_AUDIO_PARAM_TDMAFRTYPE {
00625     OMX_U32 nSize;                /**< size of the structure in bytes */
00626     OMX_VERSIONTYPE nVersion;     /**< OMX specification version information */
00627     OMX_U32 nPortIndex;           /**< port that this structure applies to */
00628     OMX_U32 nChannels;            /**< Number of channels in the data stream (not
                                       necessarily the same as the number of channels
                                       to be rendered. */
00631     OMX_BOOL bDTX;                /**< Enable Discontinuous Transmisssion */
00632     OMX_BOOL bHiPassFilter;       /**< Enable High Pass Filter */
} OMX_AUDIO_PARAM_TDMAFRTYPE;


/** TDMA EFR (TIA/EIA-136-410, ACELP 7.4kbps coder) stream format parameters */
00637 typedef struct OMX_AUDIO_PARAM_TDMAEFRTYPE {
00638     OMX_U32 nSize;                /**< size of the structure in bytes */
00639     OMX_VERSIONTYPE nVersion;     /**< OMX specification version information */
00640     OMX_U32 nPortIndex;           /**< port that this structure applies to */
00641     OMX_U32 nChannels;            /**< Number of channels in the data stream (not
                                       necessarily the same as the number of channels
                                       to be rendered. */
00644     OMX_BOOL bDTX;                /**< Enable Discontinuous Transmisssion */
00645     OMX_BOOL bHiPassFilter;       /**< Enable High Pass Filter */
} OMX_AUDIO_PARAM_TDMAEFRTYPE;


/** PDC FR ( RCR-27, VSELP 6.7kbps coder) stream format parameters */
00650 typedef struct OMX_AUDIO_PARAM_PDCFRTYPE {
00651     OMX_U32 nSize;                /**< size of the structure in bytes */
00652     OMX_VERSIONTYPE nVersion;     /**< OMX specification version information */
00653     OMX_U32 nPortIndex;           /**< port that this structure applies to */
00654     OMX_U32 nChannels;            /**< Number of channels in the data stream (not
                                       necessarily the same as the number of channels
                                       to be rendered. */
00657     OMX_BOOL bDTX;                /**< Enable Discontinuous Transmisssion */
00658     OMX_BOOL bHiPassFilter;       /**< Enable High Pass Filter */
} OMX_AUDIO_PARAM_PDCFRTYPE;


/** PDC EFR ( RCR-27, ACELP 6.7kbps coder) stream format parameters */
00663 typedef struct OMX_AUDIO_PARAM_PDCEFRTYPE {
00664     OMX_U32 nSize;                /**< size of the structure in bytes */
00665     OMX_VERSIONTYPE nVersion;     /**< OMX specification version information */
00666     OMX_U32 nPortIndex;           /**< port that this structure applies to */
00667     OMX_U32 nChannels;            /**< Number of channels in the data stream (not
                                       necessarily the same as the number of channels
                                       to be rendered. */
00670     OMX_BOOL bDTX;                /**< Enable Discontinuous Transmisssion */
00671     OMX_BOOL bHiPassFilter;       /**< Enable High Pass Filter */
} OMX_AUDIO_PARAM_PDCEFRTYPE;

/** PDC HR ( RCR-27, PSI-CELP 3.45kbps coder) stream format parameters */
00675 typedef struct OMX_AUDIO_PARAM_PDCHRTYPE {
00676     OMX_U32 nSize;                /**< size of the structure in bytes */
00677     OMX_VERSIONTYPE nVersion;     /**< OMX specification version information */
00678     OMX_U32 nPortIndex;           /**< port that this structure applies to */
00679     OMX_U32 nChannels;            /**< Number of channels in the data stream (not
                                       necessarily the same as the number of channels
                                       to be rendered. */
00682     OMX_BOOL bDTX;                /**< Enable Discontinuous Transmisssion */
00683     OMX_BOOL bHiPassFilter;       /**< Enable High Pass Filter */
} OMX_AUDIO_PARAM_PDCHRTYPE;


/** CDMA Rate types */
00688 typedef enum OMX_AUDIO_CDMARATETYPE {
00689     OMX_AUDIO_CDMARateBlank = 0,          /**< CDMA encoded frame is blank */
00690     OMX_AUDIO_CDMARateFull,               /**< CDMA encoded frame in full rate */
00691     OMX_AUDIO_CDMARateHalf,               /**< CDMA encoded frame in half rate */
00692     OMX_AUDIO_CDMARateQuarter,            /**< CDMA encoded frame in quarter rate */
00693     OMX_AUDIO_CDMARateEighth,             /**< CDMA encoded frame in eighth rate (DTX)*/
00694     OMX_AUDIO_CDMARateErasure,            /**< CDMA erasure frame */
00695     OMX_AUDIO_CDMARateKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
00696     OMX_AUDIO_CDMARateVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
    OMX_AUDIO_CDMARateMax = 0x7FFFFFFF
} OMX_AUDIO_CDMARATETYPE;


/** QCELP8 (TIA/EIA-96, up to 8kbps coder) stream format parameters */
00702 typedef struct OMX_AUDIO_PARAM_QCELP8TYPE {
00703     OMX_U32 nSize;                /**< size of the structure in bytes */
00704     OMX_VERSIONTYPE nVersion;     /**< OMX specification version information */
00705     OMX_U32 nPortIndex;           /**< port that this structure applies to */
00706     OMX_U32 nChannels;            /**< Number of channels in the data stream (not
                                       necessarily the same as the number of channels
                                       to be rendered. */
00709     OMX_U32 nBitRate;             /**< Bit rate of the input data.  Use 0 for variable
                                       rate or unknown bit rates */
00711     OMX_AUDIO_CDMARATETYPE eCDMARate; /**< Frame rate */
00712     OMX_U32 nMinBitRate;          /**< minmal rate for the encoder = 1,2,3,4, default = 1 */
00713     OMX_U32 nMaxBitRate;          /**< maximal rate for the encoder = 1,2,3,4, default = 4 */
} OMX_AUDIO_PARAM_QCELP8TYPE;


/** QCELP13 ( CDMA, EIA/TIA-733, 13.3kbps coder) stream format parameters */
00718 typedef struct OMX_AUDIO_PARAM_QCELP13TYPE {
00719     OMX_U32 nSize;                /**< size of the structure in bytes */
00720     OMX_VERSIONTYPE nVersion;     /**< OMX specification version information */
00721     OMX_U32 nPortIndex;           /**< port that this structure applies to */
00722     OMX_U32 nChannels;            /**< Number of channels in the data stream (not
                                       necessarily the same as the number of channels
                                       to be rendered. */
00725     OMX_AUDIO_CDMARATETYPE eCDMARate; /**< Frame rate */
00726     OMX_U32 nMinBitRate;          /**< minmal rate for the encoder = 1,2,3,4, default = 1 */
00727     OMX_U32 nMaxBitRate;          /**< maximal rate for the encoder = 1,2,3,4, default = 4 */
} OMX_AUDIO_PARAM_QCELP13TYPE;


/** EVRC ( CDMA, EIA/TIA-127, RCELP up to 8.55kbps coder) stream format parameters */
00732 typedef struct OMX_AUDIO_PARAM_EVRCTYPE {
00733     OMX_U32 nSize;                /**< size of the structure in bytes */
00734     OMX_VERSIONTYPE nVersion;     /**< OMX specification version information */
00735     OMX_U32 nPortIndex;           /**< port that this structure applies to */
00736     OMX_U32 nChannels;            /**< Number of channels in the data stream (not
                                       necessarily the same as the number of channels
                                       to be rendered. */
00739     OMX_AUDIO_CDMARATETYPE eCDMARate; /**< actual Frame rate */
00740     OMX_BOOL bRATE_REDUCon;       /**< RATE_REDUCtion is requested for this frame */
00741     OMX_U32 nMinBitRate;          /**< minmal rate for the encoder = 1,2,3,4, default = 1 */
00742     OMX_U32 nMaxBitRate;          /**< maximal rate for the encoder = 1,2,3,4, default = 4 */
00743     OMX_BOOL bHiPassFilter;       /**< Enable encoder's High Pass Filter */
00744     OMX_BOOL bNoiseSuppressor;    /**< Enable encoder's noise suppressor pre-processing */
00745     OMX_BOOL bPostFilter;         /**< Enable decoder's post Filter */
} OMX_AUDIO_PARAM_EVRCTYPE;


/** SMV ( up to 8.55kbps coder) stream format parameters */
00750 typedef struct OMX_AUDIO_PARAM_SMVTYPE {
00751     OMX_U32 nSize;                /**< size of the structure in bytes */
00752     OMX_VERSIONTYPE nVersion;     /**< OMX specification version information */
00753     OMX_U32 nPortIndex;           /**< port that this structure applies to */
00754     OMX_U32 nChannels;            /**< Number of channels in the data stream (not
                                       necessarily the same as the number of channels
                                       to be rendered. */
00757     OMX_AUDIO_CDMARATETYPE eCDMARate; /**< Frame rate */
00758     OMX_BOOL bRATE_REDUCon;           /**< RATE_REDUCtion is requested for this frame */
00759     OMX_U32 nMinBitRate;          /**< minmal rate for the encoder = 1,2,3,4, default = 1 ??*/
00760     OMX_U32 nMaxBitRate;          /**< maximal rate for the encoder = 1,2,3,4, default = 4 ??*/
00761     OMX_BOOL bHiPassFilter;       /**< Enable encoder's High Pass Filter ??*/
00762     OMX_BOOL bNoiseSuppressor;    /**< Enable encoder's noise suppressor pre-processing */
00763     OMX_BOOL bPostFilter;         /**< Enable decoder's post Filter ??*/
} OMX_AUDIO_PARAM_SMVTYPE;


/** MIDI Format 
 * @ingroup midi
 */
00770 typedef enum OMX_AUDIO_MIDIFORMATTYPE
{
00772     OMX_AUDIO_MIDIFormatUnknown = 0, /**< MIDI Format unknown or don't care */
00773     OMX_AUDIO_MIDIFormatSMF0,        /**< Standard MIDI File Type 0 */
00774     OMX_AUDIO_MIDIFormatSMF1,        /**< Standard MIDI File Type 1 */
00775     OMX_AUDIO_MIDIFormatSMF2,        /**< Standard MIDI File Type 2 */
00776     OMX_AUDIO_MIDIFormatSPMIDI,      /**< SP-MIDI */
00777     OMX_AUDIO_MIDIFormatXMF0,        /**< eXtensible Music Format type 0 */
00778     OMX_AUDIO_MIDIFormatXMF1,        /**< eXtensible Music Format type 1 */
00779     OMX_AUDIO_MIDIFormatMobileXMF,   /**< Mobile XMF (eXtensible Music Format type 2) */
00780     OMX_AUDIO_MIDIFormatKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
00781     OMX_AUDIO_MIDIFormatVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
    OMX_AUDIO_MIDIFormatMax = 0x7FFFFFFF
} OMX_AUDIO_MIDIFORMATTYPE;


/** MIDI params 
 * @ingroup midi
 */
00789 typedef struct OMX_AUDIO_PARAM_MIDITYPE {
00790     OMX_U32 nSize;                 /**< size of the structure in bytes */
00791     OMX_VERSIONTYPE nVersion;      /**< OMX specification version information */
00792     OMX_U32 nPortIndex;            /**< port that this structure applies to */
00793     OMX_U32 nFileSize;             /**< size of the MIDI file in bytes, where the entire 
                                        MIDI file passed in, otherwise if 0x0, the MIDI data 
                                        is merged and streamed (instead of passed as an 
                                        entire MIDI file) */
00797     OMX_BU32 sMaxPolyphony;        /**< Specifies the maximum simultaneous polyphonic 
                                        voices. A value of zero indicates that the default 
                                        polyphony of the device is used  */                                    
00800     OMX_BOOL bLoadDefaultSound;    /**< Whether to load default sound 
                                        bank at initialization */
00802     OMX_AUDIO_MIDIFORMATTYPE eMidiFormat; /**< Version of the MIDI file */                                                                           
} OMX_AUDIO_PARAM_MIDITYPE;


/** Type of the MIDI sound bank 
 * @ingroup midi
 */
00809 typedef enum OMX_AUDIO_MIDISOUNDBANKTYPE {
00810     OMX_AUDIO_MIDISoundBankUnused = 0,           /**< unused/unknown soundbank type */
00811     OMX_AUDIO_MIDISoundBankDLS1,                 /**< DLS version 1 */
00812     OMX_AUDIO_MIDISoundBankDLS2,                 /**< DLS version 2 */
00813     OMX_AUDIO_MIDISoundBankMobileDLSBase,        /**< Mobile DLS, using the base functionality */
00814     OMX_AUDIO_MIDISoundBankMobileDLSPlusOptions, /**< Mobile DLS, using the specification-defined optional feature set */
00815     OMX_AUDIO_MIDISoundBankKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
00816     OMX_AUDIO_MIDISoundBankVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
    OMX_AUDIO_MIDISoundBankMax = 0x7FFFFFFF
} OMX_AUDIO_MIDISOUNDBANKTYPE;


/** Bank Layout describes how bank MSB & LSB are used in the DLS instrument definitions sound bank 
 * @ingroup midi
 */
00824 typedef enum OMX_AUDIO_MIDISOUNDBANKLAYOUTTYPE {
00825    OMX_AUDIO_MIDISoundBankLayoutUnused = 0,   /**< unused/unknown soundbank type */
00826    OMX_AUDIO_MIDISoundBankLayoutGM,           /**< GS layout (based on bank MSB 0x00) */
00827    OMX_AUDIO_MIDISoundBankLayoutGM2,          /**< General MIDI 2 layout (using MSB 0x78/0x79, LSB 0x00) */
00828    OMX_AUDIO_MIDISoundBankLayoutUser,         /**< Does not conform to any bank numbering standards */
00829    OMX_AUDIO_MIDISoundBankLayoutKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
00830    OMX_AUDIO_MIDISoundBankLayoutVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
   OMX_AUDIO_MIDISoundBankLayoutMax = 0x7FFFFFFF
} OMX_AUDIO_MIDISOUNDBANKLAYOUTTYPE;


/** MIDI params to load/unload user soundbank 
 * @ingroup midi
 */
00838 typedef struct OMX_AUDIO_PARAM_MIDILOADUSERSOUNDTYPE {
00839     OMX_U32 nSize;            /**< size of the structure in bytes */
00840     OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
00841     OMX_U32 nPortIndex;       /**< port that this structure applies to */
00842     OMX_U32 nDLSIndex;        /**< DLS file index to be loaded */
00843     OMX_U32 nDLSSize;         /**< Size in bytes */
00844     OMX_PTR pDLSData;         /**< Pointer to DLS file data */
00845     OMX_AUDIO_MIDISOUNDBANKTYPE eMidiSoundBank;   /**< Midi sound bank type enumeration */
00846     OMX_AUDIO_MIDISOUNDBANKLAYOUTTYPE eMidiSoundBankLayout; /**< Midi sound bank layout enumeration */
} OMX_AUDIO_PARAM_MIDILOADUSERSOUNDTYPE;


/** Structure for Live MIDI events and MIP messages. 
 * (MIP = Maximum Instantaneous Polyphony; part of the SP-MIDI standard.) 
 * @ingroup midi
 */
00854 typedef struct OMX_AUDIO_CONFIG_MIDIIMMEDIATEEVENTTYPE {
00855     OMX_U32 nSize;            /**< size of the structure in bytes */
00856     OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
00857     OMX_U32 nPortIndex;       /**< Port that this structure applies to */
00858     OMX_U32 nMidiEventSize;   /**< Size of immediate MIDI events or MIP message in bytes  */
00859     OMX_U8 nMidiEvents[1];    /**< MIDI event array to be rendered immediately, or an
                                   array for the MIP message buffer, where the size is 
                                   indicated by nMidiEventSize */
} OMX_AUDIO_CONFIG_MIDIIMMEDIATEEVENTTYPE;


/** MIDI sound bank/ program pair in a given channel 
 * @ingroup midi
 */
00868 typedef struct OMX_AUDIO_CONFIG_MIDISOUNDBANKPROGRAMTYPE {
00869     OMX_U32 nSize;              /**< size of the structure in bytes */
00870     OMX_VERSIONTYPE nVersion;   /**< OMX specification version information */
00871     OMX_U32 nPortIndex;         /**< Port that this structure applies to */
00872     OMX_U32 nChannel;           /**< Valid channel values range from 1 to 16 */
00873     OMX_U16 nIDProgram;         /**< Valid program ID range is 1 to 128 */
00874     OMX_U16 nIDSoundBank;       /**< Sound bank ID */
00875     OMX_U32 nUserSoundBankIndex;/**< User soundbank index, easier to access soundbanks 
                                     by index if multiple banks are present */
} OMX_AUDIO_CONFIG_MIDISOUNDBANKPROGRAMTYPE;


/** MIDI control 
 * @ingroup midi
 */
00883 typedef struct OMX_AUDIO_CONFIG_MIDICONTROLTYPE {
00884     OMX_U32 nSize;                /**< size of the structure in bytes */
00885     OMX_VERSIONTYPE nVersion;     /**< OMX specification version information */
00886     OMX_U32 nPortIndex;           /**< port that this structure applies to */
00887     OMX_BS32 sPitchTransposition; /**< Pitch transposition in semitones, stored as Q22.10 
                                       format based on JAVA MMAPI (JSR-135) requirement */
00889     OMX_BU32 sPlayBackRate;       /**< Relative playback rate, stored as Q14.17 fixed-point
                                       number based on JSR-135 requirement */
00891     OMX_BU32 sTempo ;             /**< Tempo in beats per minute (BPM), stored as Q22.10 
                                       fixed-point number based on JSR-135 requirement */
00893     OMX_U32 nMaxPolyphony;        /**< Specifies the maximum simultaneous polyphonic 
                                       voices. A value of zero indicates that the default 
                                       polyphony of the device is used  */
00896     OMX_U32 nNumRepeat;           /**< Number of times to repeat playback */
00897     OMX_U32 nStopTime;            /**< Time in milliseconds to indicate when playback 
                                       will stop automatically.  Set to zero if not used */
00899     OMX_U16 nChannelMuteMask;     /**< 16 bit mask for channel mute status */
00900     OMX_U16 nChannelSoloMask;     /**< 16 bit mask for channel solo status */
00901     OMX_U32 nTrack0031MuteMask;   /**< 32 bit mask for track mute status. Note: This is for tracks 0-31 */
00902     OMX_U32 nTrack3263MuteMask;   /**< 32 bit mask for track mute status. Note: This is for tracks 32-63 */
00903     OMX_U32 nTrack0031SoloMask;   /**< 32 bit mask for track solo status. Note: This is for tracks 0-31 */
00904     OMX_U32 nTrack3263SoloMask;   /**< 32 bit mask for track solo status. Note: This is for tracks 32-63 */

} OMX_AUDIO_CONFIG_MIDICONTROLTYPE;


/** MIDI Playback States 
 * @ingroup midi
 */
00912 typedef enum OMX_AUDIO_MIDIPLAYBACKSTATETYPE {
00913   OMX_AUDIO_MIDIPlayBackStateUnknown = 0,      /**< Unknown state or state does not map to 
                                                                              other defined states */
00915   OMX_AUDIO_MIDIPlayBackStateClosedEngaged,    /**< No MIDI resource is currently open. 
                                                    The MIDI engine is currently processing 
                                                    MIDI events. */
00918   OMX_AUDIO_MIDIPlayBackStateParsing,          /**< A MIDI resource is open and is being 
                                                    primed. The MIDI engine is currently 
                                                    processing MIDI events. */
00921   OMX_AUDIO_MIDIPlayBackStateOpenEngaged,      /**< A MIDI resource is open and primed but 
                                                    not playing. The MIDI engine is currently
                                                    processing MIDI events. The transition to
                                                    this state is only possible from the 
                                                    OMX_AUDIO_MIDIPlayBackStatePlaying state,
                                                    when the 'playback head' reaches the end
                                                    of media data or the playback stops due
                                                    to stop time set.*/
00929   OMX_AUDIO_MIDIPlayBackStatePlaying,          /**< A MIDI resource is open and currently
                                                    playing. The MIDI engine is currently
                                                    processing MIDI events.*/
00932   OMX_AUDIO_MIDIPlayBackStatePlayingPartially, /**< Best-effort playback due to SP-MIDI/DLS
                                                    resource constraints */
00934   OMX_AUDIO_MIDIPlayBackStatePlayingSilently,  /**< Due to system resource constraints and
                                                    SP-MIDI content constraints, there is
                                                    no audible MIDI content during playback
                                                    currently. The situation may change if
                                                    resources are freed later.*/
00939   OMX_AUDIO_MIDIPlayBackStateKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
00940   OMX_AUDIO_MIDIPlayBackStateVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
  OMX_AUDIO_MIDIPlayBackStateMax = 0x7FFFFFFF
} OMX_AUDIO_MIDIPLAYBACKSTATETYPE;


/** MIDI status 
 * @ingroup midi
 */
00948 typedef struct OMX_AUDIO_CONFIG_MIDISTATUSTYPE {
00949     OMX_U32 nSize;              /**< size of the structure in bytes */
00950     OMX_VERSIONTYPE nVersion;   /**< OMX specification version information */
00951     OMX_U32 nPortIndex;         /**< port that this structure applies to */
00952     OMX_U16 nNumTracks;         /**< Number of MIDI tracks in the file, read only field. 
                                     NOTE: May not return a meaningful value until the entire 
                                     file is parsed and buffered.  */
00955     OMX_U32 nDuration;          /**< The length of the currently open MIDI resource 
                                     in milliseconds. NOTE: May not return a meaningful value 
                                     until the entire file is parsed and buffered.  */  
00958     OMX_U32 nPosition;          /**< Current Position of the MIDI resource being played 
                                     in milliseconds */
00960     OMX_BOOL bVibra;            /**< Does Vibra track exist? NOTE: May not return a meaningful 
                                     value until the entire file is parsed and buffered. */
00962     OMX_U32 nNumMetaEvents;     /**< Total number of MIDI Meta Events in the currently 
                                     open MIDI resource. NOTE: May not return a meaningful value 
                                     until the entire file is parsed and buffered.  */
00965     OMX_U32 nNumActiveVoices;   /**< Number of active voices in the currently playing 
                                     MIDI resource. NOTE: May not return a meaningful value until 
                                     the entire file is parsed and buffered. */
00968     OMX_AUDIO_MIDIPLAYBACKSTATETYPE eMIDIPlayBackState;  /**< MIDI playback state enumeration, read only field */
} OMX_AUDIO_CONFIG_MIDISTATUSTYPE;


/** MIDI Meta Event structure one per Meta Event.
 *  MIDI Meta Events are like audio metadata, except that they are interspersed 
 *  with the MIDI content throughout the file and are not localized in the header. 
 *  As such, it is necessary to retrieve information about these Meta Events from 
 *  the engine, as it encounters these Meta Events within the MIDI content. 
 *  For example, SMF files can have up to 14 types of MIDI Meta Events (copyright, 
 *  author, default tempo, etc.) scattered throughout the file. 
 *  @ingroup midi
 */
00981 typedef struct OMX_AUDIO_CONFIG_MIDIMETAEVENTTYPE{ 
00982     OMX_U32 nSize;            /**< size of the structure in bytes */ 
00983     OMX_VERSIONTYPE nVersion; /**< OMX specification version information */ 
00984     OMX_U32 nPortIndex;       /**< port that this structure applies to */ 
00985     OMX_U32 nIndex;           /**< Index of Meta Event */ 
00986     OMX_U8 nMetaEventType;    /**< Meta Event Type, 7bits (i.e. 0 - 127) */ 
00987     OMX_U32 nMetaEventSize;   /**< size of the Meta Event in bytes */ 
00988     OMX_U32 nTrack;           /**< track number for the meta event */
00989     OMX_U32 nPosition;        /**< Position of the meta-event in milliseconds */
} OMX_AUDIO_CONFIG_MIDIMETAEVENTTYPE; 


/** MIDI Meta Event Data structure - one per Meta Event. 
 * @ingroup midi
 */ 
00996 typedef struct OMX_AUDIO_CONFIG_MIDIMETAEVENTDATATYPE{ 
00997     OMX_U32 nSize;            /**< size of the structure in bytes */ 
00998     OMX_VERSIONTYPE nVersion; /**< OMX specification version information */ 
00999     OMX_U32 nPortIndex;       /**< port that this structure applies to */ 
01000     OMX_U32 nIndex;           /**< Index of Meta Event */ 
01001     OMX_U32 nMetaEventSize;   /**< size of the Meta Event in bytes */ 
01002     OMX_U8 nData[1];          /**< array of one or more bytes of meta data 
                                   as indicated by the nMetaEventSize field */ 
} OMX_AUDIO_CONFIG__MIDIMETAEVENTDATATYPE; 


/** Audio Volume adjustment for a port */
01008 typedef struct OMX_AUDIO_CONFIG_VOLUMETYPE {
01009     OMX_U32 nSize;              /**< size of the structure in bytes */
01010     OMX_VERSIONTYPE nVersion;   /**< OMX specification version information */
01011     OMX_U32 nPortIndex;         /**< Port index indicating which port to 
                                     set.  Select the input port to set 
                                     just that port's volume.  Select the 
                                     output port to adjust the master 
                                     volume. */
01016     OMX_BOOL bLinear;           /**< Is the volume to be set in linear (0.100) 
                                     or logarithmic scale (mB) */
01018     OMX_BS32 sVolume;           /**< Volume linear setting in the 0..100 range, OR
                                     Volume logarithmic setting for this port.  The values
                                     for volume are in mB (millibels = 1/100 dB) relative
                                     to a gain of 1 (e.g. the output is the same as the 
                                     input level).  Values are in mB from nMax 
                                     (maximum volume) to nMin mB (typically negative).
                                     Since the volume is "voltage"
                                     and not a "power", it takes a setting of
                                     -600 mB to decrease the volume by 1/2.  If
                                     a component cannot accurately set the 
                                     volume to the requested value, it must
                                     set the volume to the closest value BELOW
                                     the requested value.  When getting the
                                     volume setting, the current actual volume
                                     must be returned. */
} OMX_AUDIO_CONFIG_VOLUMETYPE;


/** Audio Volume adjustment for a channel */
01037 typedef struct OMX_AUDIO_CONFIG_CHANNELVOLUMETYPE {
01038     OMX_U32 nSize;              /**< size of the structure in bytes */
01039     OMX_VERSIONTYPE nVersion;   /**< OMX specification version information */
01040     OMX_U32 nPortIndex;         /**< Port index indicating which port to 
                                     set.  Select the input port to set 
                                     just that port's volume.  Select the 
                                     output port to adjust the master 
                                     volume. */
01045     OMX_U32 nChannel;           /**< channel to select from 0 to N-1, 
                                     using OMX_ALL to apply volume settings
                                     to all channels */
01048     OMX_BOOL bLinear;           /**< Is the volume to be set in linear (0.100) or 
                                     logarithmic scale (mB) */
01050     OMX_BS32 sVolume;           /**< Volume linear setting in the 0..100 range, OR
                                     Volume logarithmic setting for this port.  
                                     The values for volume are in mB 
                                     (millibels = 1/100 dB) relative to a gain
                                     of 1 (e.g. the output is the same as the 
                                     input level).  Values are in mB from nMax 
                                     (maximum volume) to nMin mB (typically negative).  
                                     Since the volume is "voltage"
                                     and not a "power", it takes a setting of
                                     -600 mB to decrease the volume by 1/2.  If
                                     a component cannot accurately set the 
                                     volume to the requested value, it must
                                     set the volume to the closest value BELOW
                                     the requested value.  When getting the
                                     volume setting, the current actual volume
                                     must be returned. */
01066     OMX_BOOL bIsMIDI;           /**< TRUE if nChannel refers to a MIDI channel,
                                     FALSE otherwise */
} OMX_AUDIO_CONFIG_CHANNELVOLUMETYPE;


/** Audio balance setting */
01072 typedef struct OMX_AUDIO_CONFIG_BALANCETYPE {
01073     OMX_U32 nSize;              /**< size of the structure in bytes */
01074     OMX_VERSIONTYPE nVersion;   /**< OMX specification version information */
01075     OMX_U32 nPortIndex;         /**< Port index indicating which port to 
                                     set.  Select the input port to set 
                                     just that port's balance.  Select the 
                                     output port to adjust the master 
                                     balance. */
01080     OMX_S32 nBalance;           /**< balance setting for this port 
                                     (-100 to 100, where -100 indicates
                                     all left, and no right */
} OMX_AUDIO_CONFIG_BALANCETYPE;


/** Audio Port mute */
01087 typedef struct OMX_AUDIO_CONFIG_MUTETYPE {
01088     OMX_U32 nSize;              /**< size of the structure in bytes */
01089     OMX_VERSIONTYPE nVersion;   /**< OMX specification version information */
01090     OMX_U32 nPortIndex;         /**< Port index indicating which port to 
                                     set.  Select the input port to set 
                                     just that port's mute.  Select the 
                                     output port to adjust the master 
                                     mute. */
01095     OMX_BOOL bMute;             /**< Mute setting for this port */
} OMX_AUDIO_CONFIG_MUTETYPE;


/** Audio Channel mute */
01100 typedef struct OMX_AUDIO_CONFIG_CHANNELMUTETYPE {
01101     OMX_U32 nSize;              /**< size of the structure in bytes */
01102     OMX_VERSIONTYPE nVersion;   /**< OMX specification version information */
01103     OMX_U32 nPortIndex;         /**< port that this structure applies to */
01104     OMX_U32 nChannel;           /**< channel to select from 0 to N-1, 
                                     using OMX_ALL to apply mute settings
                                     to all channels */
01107     OMX_BOOL bMute;             /**< Mute setting for this channel */
01108     OMX_BOOL bIsMIDI;           /**< TRUE if nChannel refers to a MIDI channel,
                                     FALSE otherwise */ 
} OMX_AUDIO_CONFIG_CHANNELMUTETYPE;



/** Enable / Disable for loudness control, which boosts bass and to a 
 *  smaller extent high end frequencies to compensate for hearing
 *  ability at the extreme ends of the audio spectrum
 */ 
01118 typedef struct OMX_AUDIO_CONFIG_LOUDNESSTYPE {
01119     OMX_U32 nSize;             /**< size of the structure in bytes */
01120     OMX_VERSIONTYPE nVersion;  /**< OMX specification version information */
01121     OMX_U32 nPortIndex;        /**< port that this structure applies to */
01122     OMX_BOOL bLoudness;        /**< Enable/disable for loudness */
} OMX_AUDIO_CONFIG_LOUDNESSTYPE;


/** Enable / Disable for bass, which controls low frequencies
 */ 
01128 typedef struct OMX_AUDIO_CONFIG_BASSTYPE {
01129     OMX_U32 nSize;             /**< size of the structure in bytes */
01130     OMX_VERSIONTYPE nVersion;  /**< OMX specification version information */
01131     OMX_U32 nPortIndex;        /**< port that this structure applies to */
01132     OMX_BOOL bEnable;          /**< Enable/disable for bass control */
01133     OMX_S32 nBass;             /**< bass setting for the port, as a 
                                    continuous value from -100 to 100  
                                    (0 means no change in bass level)*/
} OMX_AUDIO_CONFIG_BASSTYPE;


/** Enable / Disable for treble, which controls high frequencies tones
 */ 
01141 typedef struct OMX_AUDIO_CONFIG_TREBLETYPE {
01142     OMX_U32 nSize;             /**< size of the structure in bytes */
01143     OMX_VERSIONTYPE nVersion;  /**< OMX specification version information */
01144     OMX_U32 nPortIndex;        /**< port that this structure applies to */
01145     OMX_BOOL bEnable;          /**< Enable/disable for treble control */
01146     OMX_S32  nTreble;          /**< treble setting for the port, as a
                                    continuous value from -100 to 100  
                                    (0 means no change in treble level) */
} OMX_AUDIO_CONFIG_TREBLETYPE;


/** An equalizer is typically used for two reasons: to compensate for an 
 *  sub-optimal frequency response of a system to make it sound more natural 
 *  or to create intentionally some unnatural coloring to the sound to create
 *  an effect.
 *  @ingroup effects
 */
01158 typedef struct OMX_AUDIO_CONFIG_EQUALIZERTYPE {
01159     OMX_U32 nSize;             /**< size of the structure in bytes */
01160     OMX_VERSIONTYPE nVersion;  /**< OMX specification version information */
01161     OMX_U32 nPortIndex;        /**< port that this structure applies to */
01162     OMX_BOOL bEnable;          /**< Enable/disable for equalizer */
01163     OMX_BU32 sBandIndex;       /**< Band number to be set.  Upper Limit is 
                                    N-1, where N is the number of bands, lower limit is 0 */
01165     OMX_BU32 sCenterFreq;      /**< Center frequecies in Hz.  This is a
                                    read only element and is used to determine 
                                    the lower, center and upper frequency of 
                                    this band.  */
01169     OMX_BS32 sBandLevel;       /**< band level in millibels */
} OMX_AUDIO_CONFIG_EQUALIZERTYPE;


/** Stereo widening mode type 
 * @ingroup effects
 */ 
01176 typedef enum OMX_AUDIO_STEREOWIDENINGTYPE {
01177     OMX_AUDIO_StereoWideningHeadphones,    /**< Stereo widening for loudspeakers */
01178     OMX_AUDIO_StereoWideningLoudspeakers,  /**< Stereo widening for closely spaced loudspeakers */
01179     OMX_AUDIO_StereoWideningKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
01180     OMX_AUDIO_StereoWideningVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
    OMX_AUDIO_StereoWideningMax = 0x7FFFFFFF
} OMX_AUDIO_STEREOWIDENINGTYPE;


/** Control for stereo widening, which is a special 2-channel
 *  case of the audio virtualizer effect. For example, for 5.1-channel 
 *  output, it translates to virtual surround sound. 
 * @ingroup effects
 */ 
01190 typedef struct OMX_AUDIO_CONFIG_STEREOWIDENINGTYPE {
01191     OMX_U32 nSize;             /**< size of the structure in bytes */
01192     OMX_VERSIONTYPE nVersion;  /**< OMX specification version information */
01193     OMX_U32 nPortIndex;        /**< port that this structure applies to */
01194     OMX_BOOL bEnable;          /**< Enable/disable for stereo widening control */
01195     OMX_AUDIO_STEREOWIDENINGTYPE eWideningType; /**< Stereo widening algorithm type */
01196     OMX_U32  nStereoWidening;  /**< stereo widening setting for the port,
                                    as a continuous value from 0 to 100  */
} OMX_AUDIO_CONFIG_STEREOWIDENINGTYPE;


/** The chorus effect (or ``choralizer'') is any signal processor which makes
 *  one sound source (such as a voice) sound like many such sources singing 
 *  (or playing) in unison. Since performance in unison is never exact, chorus 
 *  effects simulate this by making independently modified copies of the input 
 *  signal. Modifications may include (1) delay, (2) frequency shift, and 
 *  (3) amplitude modulation.
 * @ingroup effects
 */
01209 typedef struct OMX_AUDIO_CONFIG_CHORUSTYPE {
01210     OMX_U32 nSize;             /**< size of the structure in bytes */
01211     OMX_VERSIONTYPE nVersion;  /**< OMX specification version information */
01212     OMX_U32 nPortIndex;        /**< port that this structure applies to */
01213     OMX_BOOL bEnable;          /**< Enable/disable for chorus */
01214     OMX_BU32 sDelay;           /**< average delay in milliseconds */
01215     OMX_BU32 sModulationRate;  /**< rate of modulation in millihertz */
01216     OMX_U32 nModulationDepth;  /**< depth of modulation as a percentage of 
                                    delay (i.e. 0 to 100) */
01218     OMX_BU32 nFeedback;        /**< Feedback from chorus output to input in percentage */
} OMX_AUDIO_CONFIG_CHORUSTYPE;


/** Reverberation is part of the reflected sound that follows the early 
 *  reflections. In a typical room, this consists of a dense succession of 
 *  echoes whose energy decays exponentially. The reverberation effect structure 
 *  as defined here includes both (early) reflections as well as (late) reverberations. 
 * @ingroup effects
 */
01228 typedef struct OMX_AUDIO_CONFIG_REVERBERATIONTYPE {
01229     OMX_U32 nSize;                /**< size of the structure in bytes */
01230     OMX_VERSIONTYPE nVersion;     /**< OMX specification version information */
01231     OMX_U32 nPortIndex;           /**< port that this structure applies to */
01232     OMX_BOOL bEnable;             /**< Enable/disable for reverberation control */
01233     OMX_BS32 sRoomLevel;          /**< Intensity level for the whole room effect 
                                       (i.e. both early reflections and late 
                                       reverberation) in millibels */
01236     OMX_BS32 sRoomHighFreqLevel;  /**< Attenuation at high frequencies
                                       relative to the intensity at low
                                       frequencies in millibels */
01239     OMX_BS32 sReflectionsLevel;   /**< Intensity level of early reflections
                                       (relative to room value), in millibels */
01241     OMX_BU32 sReflectionsDelay;   /**< Delay time of the first reflection relative 
                                       to the direct path, in milliseconds */
01243     OMX_BS32 sReverbLevel;        /**< Intensity level of late reverberation
                                       relative to room level, in millibels */
01245     OMX_BU32 sReverbDelay;        /**< Time delay from the first early reflection 
                                       to the beginning of the late reverberation 
                                       section, in milliseconds */
01248     OMX_BU32 sDecayTime;          /**< Late reverberation decay time at low
                                       frequencies, in milliseconds */
01250     OMX_BU32 nDecayHighFreqRatio; /**< Ratio of high frequency decay time relative 
                                       to low frequency decay time in percent  */
01252     OMX_U32 nDensity;             /**< Modal density in the late reverberation decay,
                                       in percent (i.e. 0 - 100) */
01254     OMX_U32 nDiffusion;           /**< Echo density in the late reverberation decay,
                                       in percent (i.e. 0 - 100) */
01256     OMX_BU32 sReferenceHighFreq;  /**< Reference high frequency in Hertz. This is 
                                       the frequency used as the reference for all 
                                       the high-frequency settings above */

} OMX_AUDIO_CONFIG_REVERBERATIONTYPE;


/** Possible settings for the Echo Cancelation structure to use 
 * @ingroup effects
 */
01266 typedef enum OMX_AUDIO_ECHOCANTYPE {
01267    OMX_AUDIO_EchoCanOff = 0,    /**< Echo Cancellation is disabled */
01268    OMX_AUDIO_EchoCanNormal,     /**< Echo Cancellation normal operation - 
                                     echo from plastics and face */
01270    OMX_AUDIO_EchoCanHFree,      /**< Echo Cancellation optimized for 
                                     Hands Free operation */
01272    OMX_AUDIO_EchoCanCarKit,    /**< Echo Cancellation optimized for 
                                     Car Kit (longer echo) */
01274    OMX_AUDIO_EchoCanKhronosExtensions = 0x6F000000, /**< Reserved region for introducing Khronos Standard Extensions */ 
01275    OMX_AUDIO_EchoCanVendorStartUnused = 0x7F000000, /**< Reserved region for introducing Vendor Extensions */
   OMX_AUDIO_EchoCanMax = 0x7FFFFFFF
} OMX_AUDIO_ECHOCANTYPE;


/** Enable / Disable for echo cancelation, which removes undesired echo's
 *  from the audio
 * @ingroup effects
 */ 
01284 typedef struct OMX_AUDIO_CONFIG_ECHOCANCELATIONTYPE {
01285     OMX_U32 nSize;             /**< size of the structure in bytes */
01286     OMX_VERSIONTYPE nVersion;  /**< OMX specification version information */
01287     OMX_U32 nPortIndex;        /**< port that this structure applies to */
01288     OMX_AUDIO_ECHOCANTYPE eEchoCancelation; /**< Echo cancelation settings */
} OMX_AUDIO_CONFIG_ECHOCANCELATIONTYPE;


/** Enable / Disable for noise reduction, which undesired noise from
 * the audio
 * @ingroup effects
 */ 
01296 typedef struct OMX_AUDIO_CONFIG_NOISEREDUCTIONTYPE {
01297     OMX_U32 nSize;             /**< size of the structure in bytes */
01298     OMX_VERSIONTYPE nVersion;  /**< OMX specification version information */
01299     OMX_U32 nPortIndex;        /**< port that this structure applies to */
01300     OMX_BOOL bNoiseReduction;  /**< Enable/disable for noise reduction */
} OMX_AUDIO_CONFIG_NOISEREDUCTIONTYPE;

/** @} */

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif
/* File EOF */


Generated by  Doxygen 1.6.0   Back to index