| 1 |
/* |
| 2 |
* TwoLAME: an optimized MPEG Audio Layer Two encoder |
| 3 |
* |
| 4 |
* Copyright (C) 2001-2004 Michael Cheng |
| 5 |
* Copyright (C) 2004-2018 The TwoLAME Project |
| 6 |
* |
| 7 |
* This library is free software; you can redistribute it and/or |
| 8 |
* modify it under the terms of the GNU Lesser General Public |
| 9 |
* License as published by the Free Software Foundation; either |
| 10 |
* version 2.1 of the License, or (at your option) any later version. |
| 11 |
* |
| 12 |
* This library is distributed in the hope that it will be useful, |
| 13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 |
* Lesser General Public License for more details. |
| 16 |
* |
| 17 |
* You should have received a copy of the GNU Lesser General Public |
| 18 |
* License along with this library; if not, write to the Free Software |
| 19 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 20 |
* |
| 21 |
*/ |
| 22 |
|
| 23 |
|
| 24 |
#ifndef TWOLAME_CRITBAND_H |
| 25 |
#define TWOLAME_CRITBAND_H |
| 26 |
|
| 27 |
static const int SecondCriticalBand[7][28] = { |
| 28 |
{ |
| 29 |
/* 2cb0, 27 entries */ |
| 30 |
27, |
| 31 |
1, |
| 32 |
2, |
| 33 |
3, |
| 34 |
5, |
| 35 |
7, |
| 36 |
10, |
| 37 |
13, |
| 38 |
16, |
| 39 |
19, |
| 40 |
22, |
| 41 |
26, |
| 42 |
30, |
| 43 |
35, |
| 44 |
40, |
| 45 |
46, |
| 46 |
54, |
| 47 |
64, |
| 48 |
76, |
| 49 |
90, |
| 50 |
104, |
| 51 |
124, |
| 52 |
148, |
| 53 |
176, |
| 54 |
216, |
| 55 |
264, |
| 56 |
360, |
| 57 |
464 |
| 58 |
}, |
| 59 |
{ |
| 60 |
/* 2cb1, 27 entries */ |
| 61 |
27, |
| 62 |
1, |
| 63 |
2, |
| 64 |
3, |
| 65 |
5, |
| 66 |
7, |
| 67 |
9, |
| 68 |
12, |
| 69 |
14, |
| 70 |
17, |
| 71 |
20, |
| 72 |
24, |
| 73 |
27, |
| 74 |
32, |
| 75 |
37, |
| 76 |
42, |
| 77 |
50, |
| 78 |
58, |
| 79 |
70, |
| 80 |
82, |
| 81 |
100, |
| 82 |
116, |
| 83 |
136, |
| 84 |
164, |
| 85 |
200, |
| 86 |
248, |
| 87 |
328, |
| 88 |
432 |
| 89 |
}, |
| 90 |
{ |
| 91 |
/* 2cb2, 25 entries */ |
| 92 |
25, |
| 93 |
1, |
| 94 |
3, |
| 95 |
6, |
| 96 |
10, |
| 97 |
13, |
| 98 |
17, |
| 99 |
21, |
| 100 |
25, |
| 101 |
30, |
| 102 |
35, |
| 103 |
41, |
| 104 |
47, |
| 105 |
54, |
| 106 |
64, |
| 107 |
74, |
| 108 |
88, |
| 109 |
104, |
| 110 |
124, |
| 111 |
148, |
| 112 |
176, |
| 113 |
208, |
| 114 |
248, |
| 115 |
296, |
| 116 |
368, |
| 117 |
480, |
| 118 |
0, 0 |
| 119 |
}, |
| 120 |
{ |
| 121 |
/* 2cb3, 0 entries (all dummies) */ |
| 122 |
0, |
| 123 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 124 |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |
| 125 |
0, 0, 0, 0, 0, 0, 0 |
| 126 |
}, |
| 127 |
{ |
| 128 |
/* 2cb4, 24 entries */ |
| 129 |
24, |
| 130 |
1, |
| 131 |
5, |
| 132 |
9, |
| 133 |
14, |
| 134 |
19, |
| 135 |
25, |
| 136 |
30, |
| 137 |
36, |
| 138 |
43, |
| 139 |
50, |
| 140 |
58, |
| 141 |
68, |
| 142 |
78, |
| 143 |
92, |
| 144 |
108, |
| 145 |
124, |
| 146 |
148, |
| 147 |
176, |
| 148 |
208, |
| 149 |
248, |
| 150 |
296, |
| 151 |
352, |
| 152 |
424, |
| 153 |
480, |
| 154 |
0, 0, 0 |
| 155 |
}, |
| 156 |
{ |
| 157 |
/* 2cb5, 24 entries */ |
| 158 |
24, |
| 159 |
1, |
| 160 |
4, |
| 161 |
9, |
| 162 |
13, |
| 163 |
18, |
| 164 |
23, |
| 165 |
28, |
| 166 |
33, |
| 167 |
39, |
| 168 |
46, |
| 169 |
54, |
| 170 |
62, |
| 171 |
72, |
| 172 |
84, |
| 173 |
100, |
| 174 |
116, |
| 175 |
136, |
| 176 |
164, |
| 177 |
192, |
| 178 |
232, |
| 179 |
272, |
| 180 |
328, |
| 181 |
392, |
| 182 |
480, |
| 183 |
0, 0, 0 |
| 184 |
}, |
| 185 |
{ |
| 186 |
/* 2cb6, 22 entries */ |
| 187 |
22, |
| 188 |
1, |
| 189 |
6, |
| 190 |
13, |
| 191 |
20, |
| 192 |
27, |
| 193 |
34, |
| 194 |
42, |
| 195 |
50, |
| 196 |
60, |
| 197 |
70, |
| 198 |
80, |
| 199 |
94, |
| 200 |
108, |
| 201 |
124, |
| 202 |
148, |
| 203 |
172, |
| 204 |
208, |
| 205 |
248, |
| 206 |
288, |
| 207 |
344, |
| 208 |
408, |
| 209 |
480, |
| 210 |
0, 0, 0, 0, 0 |
| 211 |
} |
| 212 |
}; |
| 213 |
|
| 214 |
#endif |
| 215 |
|
| 216 |
|
| 217 |
// vim:ts=4:sw=4:nowrap: |