summaryrefslogtreecommitdiff
path: root/libavcodec/dca_core.h
diff options
context:
space:
mode:
authorfoo86 <foobaz86@gmail.com>2017-07-10 17:11:31 +0300
committerJames Almer <jamrial@gmail.com>2017-07-18 21:04:55 -0300
commitf6b86b62f785a67a356c87f5ea483a1cbe338191 (patch)
treeb7c319a425f3fa8cfb089df32d712f17ea427e87 /libavcodec/dca_core.h
parent5c7e7ac6d4504364b2f08a05cc983ced76bb5c51 (diff)
downloadffmpeg-f6b86b62f785a67a356c87f5ea483a1cbe338191.tar.gz
avcodec/dca: move some enumeration typedefs into headers
These values will be used by the parser. Prefix them with DCA_ appropriately. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/dca_core.h')
-rw-r--r--libavcodec/dca_core.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/libavcodec/dca_core.h b/libavcodec/dca_core.h
index 7dcfb13bc7..cce0ffd7b1 100644
--- a/libavcodec/dca_core.h
+++ b/libavcodec/dca_core.h
@@ -56,6 +56,34 @@
#define DCA_FILTER_MODE_X96 0x01
#define DCA_FILTER_MODE_FIXED 0x02
+enum DCACoreAudioMode {
+ DCA_AMODE_MONO, // Mode 0: A (mono)
+ DCA_AMODE_MONO_DUAL, // Mode 1: A + B (dual mono)
+ DCA_AMODE_STEREO, // Mode 2: L + R (stereo)
+ DCA_AMODE_STEREO_SUMDIFF, // Mode 3: (L+R) + (L-R) (sum-diff)
+ DCA_AMODE_STEREO_TOTAL, // Mode 4: LT + RT (left and right total)
+ DCA_AMODE_3F, // Mode 5: C + L + R
+ DCA_AMODE_2F1R, // Mode 6: L + R + S
+ DCA_AMODE_3F1R, // Mode 7: C + L + R + S
+ DCA_AMODE_2F2R, // Mode 8: L + R + SL + SR
+ DCA_AMODE_3F2R, // Mode 9: C + L + R + SL + SR
+
+ DCA_AMODE_COUNT
+};
+
+enum DCACoreExtAudioType {
+ DCA_EXT_AUDIO_XCH = 0,
+ DCA_EXT_AUDIO_X96 = 2,
+ DCA_EXT_AUDIO_XXCH = 6
+};
+
+enum DCACoreLFEFlag {
+ DCA_LFE_FLAG_NONE,
+ DCA_LFE_FLAG_128,
+ DCA_LFE_FLAG_64,
+ DCA_LFE_FLAG_INVALID
+};
+
typedef struct DCADSPData {
union {
struct {