diff options
author | Vignesh Venkatasubramanian <vigneshv@google.com> | 2014-02-03 14:21:31 -0800 |
---|---|---|
committer | Vignesh Venkatasubramanian <vigneshv@google.com> | 2014-03-03 12:01:33 -0800 |
commit | 1a8b0ed985b3767fdd795fb5216014e05b30791b (patch) | |
tree | a0b3972cca420cd27d553dcc115c2ff2f200e7b7 /include/media | |
parent | ee319ab1d29f9cfd98752e8e3e876c9e7fccb264 (diff) | |
download | frameworks_native-1a8b0ed985b3767fdd795fb5216014e05b30791b.zip frameworks_native-1a8b0ed985b3767fdd795fb5216014e05b30791b.tar.gz frameworks_native-1a8b0ed985b3767fdd795fb5216014e05b30791b.tar.bz2 |
Adding Opus related struct definitions to OMX_Index
Adding Opus related structure and constant definitions to
OMX_Index.h
Change-Id: Iae0394c86900f0db322893ffce695f854624833a
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/openmax/OMX_AudioExt.h | 15 | ||||
-rw-r--r-- | include/media/openmax/OMX_IndexExt.h | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/include/media/openmax/OMX_AudioExt.h b/include/media/openmax/OMX_AudioExt.h index aa6e6d0..dc6457b 100644 --- a/include/media/openmax/OMX_AudioExt.h +++ b/include/media/openmax/OMX_AudioExt.h @@ -43,6 +43,7 @@ extern "C" { typedef enum OMX_AUDIO_CODINGEXTTYPE { OMX_AUDIO_CodingAndroidUnused = OMX_AUDIO_CodingKhronosExtensions + 0x00100000, OMX_AUDIO_CodingAndroidAC3, /**< AC3 encoded data */ + OMX_AUDIO_CodingAndroidOPUS, /**< OPUS encoded data */ } OMX_AUDIO_CODINGEXTTYPE; typedef struct OMX_AUDIO_PARAM_ANDROID_AC3TYPE { @@ -54,6 +55,20 @@ typedef struct OMX_AUDIO_PARAM_ANDROID_AC3TYPE { variable or unknown sampling rate. */ } OMX_AUDIO_PARAM_ANDROID_AC3TYPE; +typedef struct OMX_AUDIO_PARAM_ANDROID_OPUSTYPE { + OMX_U32 nSize; /**< size of the structure in bytes */ + OMX_VERSIONTYPE nVersion; /**< OMX specification version information */ + OMX_U32 nPortIndex; /**< port that this structure applies to */ + OMX_U32 nChannels; /**< Number of channels */ + 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) */ + OMX_U32 nSampleRate; /**< Sampling rate of the source data. Use 0 for + variable or unknown sampling rate. */ + OMX_U32 nAudioBandWidth; /**< Audio band width (in Hz) to which an encoder should + limit the audio signal. Use 0 to let encoder decide */ +} OMX_AUDIO_PARAM_ANDROID_OPUSTYPE; + #ifdef __cplusplus } #endif /* __cplusplus */ diff --git a/include/media/openmax/OMX_IndexExt.h b/include/media/openmax/OMX_IndexExt.h index c47a885..ffcd4f3 100644 --- a/include/media/openmax/OMX_IndexExt.h +++ b/include/media/openmax/OMX_IndexExt.h @@ -58,6 +58,7 @@ typedef enum OMX_INDEXEXTTYPE { /* Audio parameters and configurations */ OMX_IndexExtAudioStartUnused = OMX_IndexKhronosExtensions + 0x00400000, OMX_IndexParamAudioAndroidAc3, /**< reference: OMX_AUDIO_PARAM_ANDROID_AC3TYPE */ + OMX_IndexParamAudioAndroidOpus, /**< reference: OMX_AUDIO_PARAM_ANDROID_OPUSTYPE */ /* Image parameters and configurations */ OMX_IndexExtImageStartUnused = OMX_IndexKhronosExtensions + 0x00500000, |