aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dcadata.h
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2007-05-02 20:33:32 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2007-05-02 20:33:32 +0000
commitc31a76e4ef116fa9aac28578cd3d92a035b3aafd (patch)
treeffd9703a770f7164b8af51253b43ab552694f1b8 /libavcodec/dcadata.h
parentcc82662662f7575ffb717adb56c2f04a122eb20e (diff)
downloadffmpeg-c31a76e4ef116fa9aac28578cd3d92a035b3aafd.tar.gz
use downmixing coefficients in dca decoder.
reference: Subject: [Ffmpeg-devel] [PATCH] DTS multichannel Date: Wed, 25 Apr 2007 16:25:18 -0400 Originally committed as revision 8875 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dcadata.h')
-rw-r--r--libavcodec/dcadata.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libavcodec/dcadata.h b/libavcodec/dcadata.h
index c9f2ca747b..5466b37b89 100644
--- a/libavcodec/dcadata.h
+++ b/libavcodec/dcadata.h
@@ -8361,6 +8361,19 @@ static const float dca_downmix_coeffs[65] = {
0.001412537544623, 0.001000000000000, 0.000501187233627, 0.000251188643151, 0.000000000000000,
};
+static const uint8_t dca_default_coeffs[16][5][2] = {
+ { { 13, 13 }, },
+ { { 0, 64 }, { 64, 0 }, },
+ { { 0, 64 }, { 64, 0 }, },
+ { { 0, 64 }, { 64, 0 }, },
+ { { 0, 64 }, { 64, 0 }, },
+ { { 6, 6 }, { 0, 25 }, { 25, 0 }, },
+ { { 0, 25 }, { 25, 0 }, { 13, 13 }, },
+ { { 6, 6 }, { 0, 25 }, { 25, 0 }, { 13, 13 }, },
+ { { 0, 25 }, { 25, 0 }, { 0, 13 }, { 13, 0 }, },
+ { { 6, 6 }, { 0, 25 }, { 25, 0 }, { 0, 13 }, { 13, 0 }, },
+};
+
/* downmix coeffs
TABLE 9