diff options
| author | 2016-03-17 19:09:21 -0700 | |
|---|---|---|
| committer | 2016-03-17 20:29:10 -0700 | |
| commit | 18cff14e4e78ea02c5705107af3ae2bf305a332b (patch) | |
| tree | 9d946aa314c95eb4ca472ebb542b1605eaf822f1 | |
| parent | d6c017de4238c0aa448596dae23cbdb9d10ae7fd (diff) | |
media: add and clarify OMX float numerical type
Bug: 27172163
Change-Id: Idb399c05d14ee51f944251430d3561479feee6e3
| -rw-r--r-- | include/media/openmax/OMX_Audio.h | 2 | ||||
| -rw-r--r-- | include/media/openmax/OMX_Types.h | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/include/media/openmax/OMX_Audio.h b/include/media/openmax/OMX_Audio.h index a0cbd3bb99..d8bee76a9b 100644 --- a/include/media/openmax/OMX_Audio.h +++ b/include/media/openmax/OMX_Audio.h @@ -178,7 +178,7 @@ typedef struct OMX_AUDIO_PARAM_PCMMODETYPE { OMX_VERSIONTYPE nVersion; /**< OMX specification version information */ OMX_U32 nPortIndex; /**< port that this structure applies to */ OMX_U32 nChannels; /**< Number of channels (e.g. 2 for stereo) */ - OMX_NUMERICALDATATYPE eNumData; /**< indicates PCM data as signed or unsigned */ + OMX_NUMERICALDATATYPE eNumData; /**< indicates PCM data as signed, unsigned or floating pt. */ OMX_ENDIANTYPE eEndian; /**< indicates PCM data as little or big endian */ OMX_BOOL bInterleaved; /**< True for normal interleaved data; false for non-interleaved data (e.g. block data) */ diff --git a/include/media/openmax/OMX_Types.h b/include/media/openmax/OMX_Types.h index 5afaba057c..515e002213 100644 --- a/include/media/openmax/OMX_Types.h +++ b/include/media/openmax/OMX_Types.h @@ -280,12 +280,18 @@ typedef enum OMX_ENDIANTYPE /** The OMX_NUMERICALDATATYPE enumeration is used to indicate if data - is signed or unsigned + is signed, unsigned or floating point (Android extension). + + Android floating point support policy: + If component does not support floating point raw audio, it can reset + configuration to signed 16-bit integer (support for which is required.) + nBitsPerSample will be set to 32 for float data. */ typedef enum OMX_NUMERICALDATATYPE { OMX_NumericalDataSigned, /**< signed data */ OMX_NumericalDataUnsigned, /**< unsigned data */ + OMX_NumericalDataFloat = 0x7F000001, /**< floating point data */ OMX_NumercialDataMax = 0x7FFFFFFF } OMX_NUMERICALDATATYPE; |