]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mpegaudiotab.h
6% faster decode_cabac_residual
[ffmpeg] / libavcodec / mpegaudiotab.h
index 41fb0fdbdd9da06e3d95a42da2dc386718a6f56f..d2c13edd60a1f1463ad8e1e14d09f82490e76acd 100644 (file)
@@ -8,6 +8,12 @@
  * same archive 
  */
 
+/**
+ * @file mpegaudiotab.h
+ * mpeg audio layer 2 tables. 
+ * Most of them come from the mpeg audio specification.
+ */
 #define SQRT2 1.41421356237309514547
 
 static const int costab32[30] = {
@@ -54,13 +60,13 @@ static const int bitinv32[32] = {
 };
 
 
-static INT16 filter_bank[512];
+static int16_t filter_bank[512];
 
 static int scale_factor_table[64];
 #ifdef USE_FLOATS
 static float scale_factor_inv_table[64];
 #else
-static INT8 scale_factor_shift[64];
+static int8_t scale_factor_shift[64];
 static unsigned short scale_factor_mult[64];
 #endif
 static unsigned char scale_diff_table[128];
@@ -71,7 +77,7 @@ static unsigned short total_quant_bits[17];
 /* signal to noise ratio of each quantification step (could be
    computed from quant_steps[]). The values are dB multiplied by 10 
 */
-static unsigned short quant_snr[17] = { 
+static const unsigned short quant_snr[17] = { 
      70, 110, 160, 208,
     253, 316, 378, 439,
     499, 559, 620, 680,