diff options
author | Tim Walker <tdskywalker@gmail.com> | 2013-12-11 02:03:34 +0000 |
---|---|---|
committer | Tim Walker <tdskywalker@gmail.com> | 2014-01-05 16:41:56 +0100 |
commit | 13345fc1f86fc3615789e196d5a339c1c27c9068 (patch) | |
tree | cf75c8dd998ac64143a75ec57914ab1b0e2c5742 /libavcodec/ac3.h | |
parent | e92123093dfdca0ef6608998240e2f9345d63bff (diff) | |
download | ffmpeg-13345fc1f86fc3615789e196d5a339c1c27c9068.tar.gz |
(e)ac3: parse and store the Dolby Surround, Surround EX and Headphone mode flags.
Diffstat (limited to 'libavcodec/ac3.h')
-rw-r--r-- | libavcodec/ac3.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libavcodec/ac3.h b/libavcodec/ac3.h index 647432f02e..f01da07213 100644 --- a/libavcodec/ac3.h +++ b/libavcodec/ac3.h @@ -80,6 +80,30 @@ typedef enum { AC3_CHMODE_3F2R } AC3ChannelMode; +/** Dolby Surround mode */ +typedef enum AC3DolbySurroundMode { + AC3_DSURMOD_NOTINDICATED = 0, + AC3_DSURMOD_OFF, + AC3_DSURMOD_ON, + AC3_DSURMOD_RESERVED +} AC3DolbySurroundMode; + +/** Dolby Surround EX mode */ +typedef enum AC3DolbySurroundEXMode { + AC3_DSUREXMOD_NOTINDICATED = 0, + AC3_DSUREXMOD_OFF, + AC3_DSUREXMOD_ON, + AC3_DSUREXMOD_PLIIZ +} AC3DolbySurroundEXMode; + +/** Dolby Headphone mode */ +typedef enum AC3DolbyHeadphoneMode { + AC3_DHEADPHONMOD_NOTINDICATED = 0, + AC3_DHEADPHONMOD_OFF, + AC3_DHEADPHONMOD_ON, + AC3_DHEADPHONMOD_RESERVED +} AC3DolbyHeadphoneMode; + typedef struct AC3BitAllocParameters { int sr_code; int sr_shift; @@ -108,6 +132,7 @@ typedef struct AC3HeaderInfo { int surround_mix_level; ///< Surround mix level index uint16_t channel_map; int num_blocks; ///< number of audio blocks + int dolby_surround_mode; /** @} */ /** @name Derived values |