comparison mpegaudiodata.c @ 8647:87b48b7d2007 libavcodec

remove alloc_table_0 and alloc_table_2, the same data exists in alloc_table_1 and alloc_table_3
author stefang
date Sat, 24 Jan 2009 14:32:22 +0000
parents 322023e630a6
children e9d9d946f213
comparison
equal deleted inserted replaced
8646:8b52ac19a91c 8647:87b48b7d2007
97 15, 16 97 15, 16
98 }; 98 };
99 99
100 /* encoding tables which give the quantization index. Note how it is 100 /* encoding tables which give the quantization index. Note how it is
101 possible to store them efficiently ! */ 101 possible to store them efficiently ! */
102 static const unsigned char alloc_table_0[] = {
103 4, 0, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
104 4, 0, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
105 4, 0, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
106 4, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16,
107 4, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16,
108 4, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16,
109 4, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16,
110 4, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16,
111 4, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16,
112 4, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16,
113 4, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16,
114 3, 0, 1, 2, 3, 4, 5, 16,
115 3, 0, 1, 2, 3, 4, 5, 16,
116 3, 0, 1, 2, 3, 4, 5, 16,
117 3, 0, 1, 2, 3, 4, 5, 16,
118 3, 0, 1, 2, 3, 4, 5, 16,
119 3, 0, 1, 2, 3, 4, 5, 16,
120 3, 0, 1, 2, 3, 4, 5, 16,
121 3, 0, 1, 2, 3, 4, 5, 16,
122 3, 0, 1, 2, 3, 4, 5, 16,
123 3, 0, 1, 2, 3, 4, 5, 16,
124 3, 0, 1, 2, 3, 4, 5, 16,
125 3, 0, 1, 2, 3, 4, 5, 16,
126 2, 0, 1, 16,
127 2, 0, 1, 16,
128 2, 0, 1, 16,
129 2, 0, 1, 16,
130 };
131
132 static const unsigned char alloc_table_1[] = { 102 static const unsigned char alloc_table_1[] = {
133 4, 0, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 103 4, 0, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
134 4, 0, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 104 4, 0, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
135 4, 0, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 105 4, 0, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
136 4, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 106 4, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16,
158 2, 0, 1, 16, 128 2, 0, 1, 16,
159 2, 0, 1, 16, 129 2, 0, 1, 16,
160 2, 0, 1, 16, 130 2, 0, 1, 16,
161 2, 0, 1, 16, 131 2, 0, 1, 16,
162 2, 0, 1, 16, 132 2, 0, 1, 16,
163 };
164
165 static const unsigned char alloc_table_2[] = {
166 4, 0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
167 4, 0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
168 3, 0, 1, 3, 4, 5, 6, 7,
169 3, 0, 1, 3, 4, 5, 6, 7,
170 3, 0, 1, 3, 4, 5, 6, 7,
171 3, 0, 1, 3, 4, 5, 6, 7,
172 3, 0, 1, 3, 4, 5, 6, 7,
173 3, 0, 1, 3, 4, 5, 6, 7,
174 }; 133 };
175 134
176 static const unsigned char alloc_table_3[] = { 135 static const unsigned char alloc_table_3[] = {
177 4, 0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 136 4, 0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
178 4, 0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 137 4, 0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
220 2, 0, 1, 3, 179 2, 0, 1, 3,
221 2, 0, 1, 3, 180 2, 0, 1, 3,
222 }; 181 };
223 182
224 const unsigned char * const ff_mpa_alloc_tables[5] = 183 const unsigned char * const ff_mpa_alloc_tables[5] =
225 { alloc_table_0, alloc_table_1, alloc_table_2, alloc_table_3, alloc_table_4, }; 184 { alloc_table_1, alloc_table_1, alloc_table_3, alloc_table_3, alloc_table_4, };