summaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorRachad <rachad@google.com>2014-12-23 16:04:59 -0800
committerRachad <rachad@google.com>2014-12-23 16:04:59 -0800
commit806f23de71be2494cfabbe08d11c09606966a5d5 (patch)
tree19839b28e56ad787bd39b399a72b64bec2d86285 /include/media
parent42740668423d6cd9d0a3b406c3e5c160dbbdabca (diff)
downloadframeworks_native-806f23de71be2494cfabbe08d11c09606966a5d5.zip
frameworks_native-806f23de71be2494cfabbe08d11c09606966a5d5.tar.gz
frameworks_native-806f23de71be2494cfabbe08d11c09606966a5d5.tar.bz2
OpenMax IL: Added support for E-AC3 codec configuration params
Bug: 17883772 Change-Id: Ibf00534607db4bba14c935cf1eaa80eb740297f9
Diffstat (limited to 'include/media')
-rw-r--r--include/media/openmax/OMX_AudioExt.h10
-rw-r--r--include/media/openmax/OMX_IndexExt.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/include/media/openmax/OMX_AudioExt.h b/include/media/openmax/OMX_AudioExt.h
index 5ac15f7..2a1c3f2 100644
--- a/include/media/openmax/OMX_AudioExt.h
+++ b/include/media/openmax/OMX_AudioExt.h
@@ -47,6 +47,7 @@ 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_CodingAndroidEAC3, /**< EAC3 encoded data */
} OMX_AUDIO_CODINGEXTTYPE;
typedef struct OMX_AUDIO_PARAM_ANDROID_AC3TYPE {
@@ -58,6 +59,15 @@ typedef struct OMX_AUDIO_PARAM_ANDROID_AC3TYPE {
variable or unknown sampling rate. */
} OMX_AUDIO_PARAM_ANDROID_AC3TYPE;
+typedef struct OMX_AUDIO_PARAM_ANDROID_EAC3TYPE {
+ 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 nSampleRate; /**< Sampling rate of the source data. Use 0 for
+ variable or unknown sampling rate. */
+} OMX_AUDIO_PARAM_ANDROID_EAC3TYPE;
+
typedef struct OMX_AUDIO_PARAM_ANDROID_OPUSTYPE {
OMX_U32 nSize; /**< size of the structure in bytes */
OMX_VERSIONTYPE nVersion; /**< OMX specification version information */
diff --git a/include/media/openmax/OMX_IndexExt.h b/include/media/openmax/OMX_IndexExt.h
index 699efcb..ea3d0da 100644
--- a/include/media/openmax/OMX_IndexExt.h
+++ b/include/media/openmax/OMX_IndexExt.h
@@ -60,6 +60,7 @@ typedef enum OMX_INDEXEXTTYPE {
OMX_IndexParamAudioAndroidAc3, /**< reference: OMX_AUDIO_PARAM_ANDROID_AC3TYPE */
OMX_IndexParamAudioAndroidOpus, /**< reference: OMX_AUDIO_PARAM_ANDROID_OPUSTYPE */
OMX_IndexParamAudioAndroidAacPresentation, /**< reference: OMX_AUDIO_PARAM_ANDROID_AACPRESENTATIONTYPE */
+ OMX_IndexParamAudioAndroidEac3, /**< reference: OMX_AUDIO_PARAM_ANDROID_EAC3TYPE */
/* Image parameters and configurations */
OMX_IndexExtImageStartUnused = OMX_IndexKhronosExtensions + 0x00500000,