]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/atrac3data.h
Add stereo rematrixing support to the AC-3 encoders.
[ffmpeg] / libavcodec / atrac3data.h
index 00197d32d46ed68ec64d1851d0bb13a3bd0a16b6..b5aa71f8ca0c14e830389a619b5d3bb97a898a83 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 /**
- * @file libavcodec/atrac3data.h
+ * @file
  * Atrac 3 AKA RealAudio 8 compatible decoder data
  */
 
@@ -105,6 +105,10 @@ static const uint8_t* const huff_bits[7] = {
   huffbits1,huffbits2,huffbits3,huffbits4,huffbits5,huffbits6,huffbits7,
 };
 
+static const uint16_t atrac3_vlc_offs[] = {
+    0,512,1024,1536,2048,2560,3072,3584,4096
+};
+
 /* selector tables */
 
 static const uint8_t CLCLengthTab[8] = {0, 4, 3, 3, 4, 4, 5, 6};
@@ -123,17 +127,6 @@ static const uint16_t subbandTab[33] = {
   256, 288, 320, 352, 384, 416, 448, 480, 512, 576, 640, 704, 768, 896, 1024
 };
 
-/* transform data */
-
-static const float qmf_48tap_half[24] = {
-   -0.00001461907, -0.00009205479, -0.000056157569, 0.00030117269,
-    0.0002422519,-0.00085293897, -0.0005205574, 0.0020340169,
-    0.00078333891, -0.0042153862, -0.00075614988, 0.0078402944,
-   -0.000061169922, -0.01344162, 0.0024626821, 0.021736089,
-   -0.007801671, -0.034090221, 0.01880949, 0.054326009,
-   -0.043596379, -0.099384367, 0.13207909, 0.46424159
-};
-
 /* joint stereo related tables */
 static const float matrixCoeffs[8] = {0.0, 2.0, 2.0, 2.0, 0.0, 0.0, 1.0, 1.0};