comparison mpegaudiodata.c @ 5032:d47ee2d1d7da libavcodec

add proper prefix to extern mpeg audio data tables
author aurel
date Sat, 19 May 2007 00:13:35 +0000
parents 70f194a2ee53
children 322023e630a6
comparison
equal deleted inserted replaced
5031:70f194a2ee53 5032:d47ee2d1d7da
25 */ 25 */
26 26
27 #include "mpegaudiodata.h" 27 #include "mpegaudiodata.h"
28 28
29 29
30 const uint16_t mpa_bitrate_tab[2][3][15] = { 30 const uint16_t ff_mpa_bitrate_tab[2][3][15] = {
31 { {0, 32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448 }, 31 { {0, 32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448 },
32 {0, 32, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384 }, 32 {0, 32, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384 },
33 {0, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320 } }, 33 {0, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320 } },
34 { {0, 32, 48, 56, 64, 80, 96, 112, 128, 144, 160, 176, 192, 224, 256}, 34 { {0, 32, 48, 56, 64, 80, 96, 112, 128, 144, 160, 176, 192, 224, 256},
35 {0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160}, 35 {0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160},
36 {0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160} 36 {0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160}
37 } 37 }
38 }; 38 };
39 39
40 const uint16_t mpa_freq_tab[3] = { 44100, 48000, 32000 }; 40 const uint16_t ff_mpa_freq_tab[3] = { 44100, 48000, 32000 };
41 41
42 /*******************************************************/ 42 /*******************************************************/
43 /* half mpeg encoding window (full precision) */ 43 /* half mpeg encoding window (full precision) */
44 const int32_t mpa_enwindow[257] = { 44 const int32_t ff_mpa_enwindow[257] = {
45 0, -1, -1, -1, -1, -1, -1, -2, 45 0, -1, -1, -1, -1, -1, -1, -2,
46 -2, -2, -2, -3, -3, -4, -4, -5, 46 -2, -2, -2, -3, -3, -4, -4, -5,
47 -5, -6, -7, -7, -8, -9, -10, -11, 47 -5, -6, -7, -7, -8, -9, -10, -11,
48 -13, -14, -16, -17, -19, -21, -24, -26, 48 -13, -14, -16, -17, -19, -21, -24, -26,
49 -29, -31, -35, -38, -41, -45, -49, -53, 49 -29, -31, -35, -38, -41, -45, -49, -53,
78 }; 78 };
79 79
80 /*******************************************************/ 80 /*******************************************************/
81 /* layer 2 tables */ 81 /* layer 2 tables */
82 82
83 const int sblimit_table[5] = { 27 , 30 , 8, 12 , 30 }; 83 const int ff_mpa_sblimit_table[5] = { 27 , 30 , 8, 12 , 30 };
84 84
85 const int quant_steps[17] = { 85 const int ff_mpa_quant_steps[17] = {
86 3, 5, 7, 9, 15, 86 3, 5, 7, 9, 15,
87 31, 63, 127, 255, 511, 87 31, 63, 127, 255, 511,
88 1023, 2047, 4095, 8191, 16383, 88 1023, 2047, 4095, 8191, 16383,
89 32767, 65535 89 32767, 65535
90 }; 90 };
91 91
92 /* we use a negative value if grouped */ 92 /* we use a negative value if grouped */
93 const int quant_bits[17] = { 93 const int ff_mpa_quant_bits[17] = {
94 -5, -7, 3, -10, 4, 94 -5, -7, 3, -10, 4,
95 5, 6, 7, 8, 9, 95 5, 6, 7, 8, 9,
96 10, 11, 12, 13, 14, 96 10, 11, 12, 13, 14,
97 15, 16 97 15, 16
98 }; 98 };
219 2, 0, 1, 3, 219 2, 0, 1, 3,
220 2, 0, 1, 3, 220 2, 0, 1, 3,
221 2, 0, 1, 3, 221 2, 0, 1, 3,
222 }; 222 };
223 223
224 const unsigned char *alloc_tables[5] = 224 const unsigned char *ff_mpa_alloc_tables[5] =
225 { alloc_table_0, alloc_table_1, alloc_table_2, alloc_table_3, alloc_table_4, }; 225 { alloc_table_0, alloc_table_1, alloc_table_2, alloc_table_3, alloc_table_4, };