aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ac3tab.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-01-08 23:21:17 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2011-01-08 23:21:17 +0000
commitdc7e07ac1f015117a3abaa9c5f3a594cc7fd0b7a (patch)
treeddbd5861f46a4a12808c7c9fe6f846faa8dc7b01 /libavcodec/ac3tab.c
parentd267b339e4dbf8d70455e3163b2d39aff0efe314 (diff)
downloadffmpeg-dc7e07ac1f015117a3abaa9c5f3a594cc7fd0b7a.tar.gz
Add stereo rematrixing support to the AC-3 encoders.
This improves the audio quality significantly for stereo source with both the fixed-point and floating-point AC-3 encoders. Update acodec-ac3_fixed and seek-ac3_rm test references. Originally committed as revision 26271 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3tab.c')
-rw-r--r--libavcodec/ac3tab.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/ac3tab.c b/libavcodec/ac3tab.c
index 79f628fbd9..4fc0824a46 100644
--- a/libavcodec/ac3tab.c
+++ b/libavcodec/ac3tab.c
@@ -132,6 +132,12 @@ const uint16_t ff_ac3_bitrate_tab[19] = {
160, 192, 224, 256, 320, 384, 448, 512, 576, 640
};
+/**
+ * Table of bin locations for rematrixing bands
+ * reference: Section 7.5.2 Rematrixing : Frequency Band Definitions
+ */
+const uint8_t ff_ac3_rematrix_band_tab[5] = { 13, 25, 37, 61, 253 };
+
/* AC-3 MDCT window */
/* MDCT window */