summaryrefslogtreecommitdiff
path: root/libavcodec/dcadata.h
diff options
context:
space:
mode:
authorTim Walker <tdskywalker@gmail.com>2013-11-22 23:47:03 +0100
committerAnton Khirnov <anton@khirnov.net>2013-11-28 22:02:53 +0100
commitaaa44d0299338e3bc90128816c21dbfab06cdb48 (patch)
treeb6cf05546d311b11e7fb643b778196b74244c00d /libavcodec/dcadata.h
parent149438cfe5d233c46bb18341b7c574fe643dd5f2 (diff)
dca: support mixing LFE in dca_downmix.
Embedded downmix coefficients can use this. Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/dcadata.h')
-rw-r--r--libavcodec/dcadata.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/libavcodec/dcadata.h b/libavcodec/dcadata.h
index e6997bc926..dc4e8b904a 100644
--- a/libavcodec/dcadata.h
+++ b/libavcodec/dcadata.h
@@ -7551,17 +7551,17 @@ static const float dca_dmixtable[241] = {
1.000000,
};
-static const float dca_default_coeffs[10][5][2] = {
- { { 0.707107, 0.707107 }, }, // A
- { { 1.000000, 0.000000 }, { 0.000000, 1.000000 }, }, // A + B (dual mono)
- { { 1.000000, 0.000000 }, { 0.000000, 1.000000 }, }, // L + R (stereo)
- { { 1.000000, 0.000000 }, { 0.000000, 1.000000 }, }, // (L+R) + (L-R) (sum-difference)
- { { 1.000000, 0.000000 }, { 0.000000, 1.000000 }, }, // LT + RT (left and right total)
- { { 0.501187, 0.501187 }, { 0.707107, 0.000000 }, { 0.000000, 0.707107 }, }, // C + L + R
- { { 0.707107, 0.000000 }, { 0.000000, 0.707107 }, { 0.501187, 0.501187 }, }, // L + R + S
- { { 0.501187, 0.501187 }, { 0.707107, 0.000000 }, { 0.000000, 0.707107 }, { 0.501187, 0.501187 }, }, // C + L + R + S
- { { 0.707107, 0.000000 }, { 0.000000, 0.707107 }, { 0.501187, 0.000000 }, { 0.000000, 0.501187 }, }, // L + R + SL + SR
- { { 0.501187, 0.501187 }, { 0.707107, 0.000000 }, { 0.000000, 0.707107 }, { 0.501187, 0.000000 }, { 0.000000, 0.501187 }, }, // C + L + R + SL + SR
+static const float dca_default_coeffs[10][6][2] = {
+ { { 0.707107, 0.707107 }, { 0.000000, 0.000000 }, }, // A [LFE]
+ { { 1.000000, 0.000000 }, { 0.000000, 1.000000 }, { 0.000000, 0.000000 }, }, // A + B (dual mono) [LFE]
+ { { 1.000000, 0.000000 }, { 0.000000, 1.000000 }, { 0.000000, 0.000000 }, }, // L + R (stereo) [LFE]
+ { { 1.000000, 0.000000 }, { 0.000000, 1.000000 }, { 0.000000, 0.000000 }, }, // (L+R) + (L-R) (sum-difference) [LFE]
+ { { 1.000000, 0.000000 }, { 0.000000, 1.000000 }, { 0.000000, 0.000000 }, }, // LT + RT (left and right total) [LFE]
+ { { 0.501187, 0.501187 }, { 0.707107, 0.000000 }, { 0.000000, 0.707107 }, { 0.000000, 0.000000 }, }, // C + L + R [LFE]
+ { { 0.707107, 0.000000 }, { 0.000000, 0.707107 }, { 0.501187, 0.501187 }, { 0.000000, 0.000000 }, }, // L + R + S [LFE]
+ { { 0.501187, 0.501187 }, { 0.707107, 0.000000 }, { 0.000000, 0.707107 }, { 0.501187, 0.501187 }, { 0.000000, 0.000000 }, }, // C + L + R + S [LFE]
+ { { 0.707107, 0.000000 }, { 0.000000, 0.707107 }, { 0.501187, 0.000000 }, { 0.000000, 0.501187 }, { 0.000000, 0.000000 }, }, // L + R + SL + SR [LFE]
+ { { 0.501187, 0.501187 }, { 0.707107, 0.000000 }, { 0.000000, 0.707107 }, { 0.501187, 0.000000 }, { 0.000000, 0.501187 }, { 0.000000, 0.000000 }, }, // C + L + R + SL + SR [LFE]
};
/* downmix coeffs