diff options
Diffstat (limited to 'codebook.c')
-rw-r--r-- | codebook.c | 82 |
1 files changed, 61 insertions, 21 deletions
@@ -1,14 +1,18 @@ | |||
1 | /* THIS IS A GENERATED FILE. Edit generate_codebook.c and its input */ | 1 | /* THIS IS A GENERATED FILE. Edit generate_codebook.c and its input */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * This intermediary file and the files that used to create it are under | 4 | * This intermediary file and the files that used to create it are under |
5 | * The LGPL. See the file COPYING. | 5 | * The LGPL. See the file COPYING. |
6 | */ | 6 | */ |
7 | 7 | ||
8 | #include "defines.h" | 8 | #include "defines.h" |
9 | 9 | ||
10 | /* codebook/lsp1.txt */ | 10 | /* /Users/erdgeist/Coding/codec2/src/codebook/lsp1.txt */ |
11 | #ifdef __EMBEDDED__ | ||
11 | static const float codes0[] = { | 12 | static const float codes0[] = { |
13 | #else | ||
14 | static float codes0[] = { | ||
15 | #endif | ||
12 | 225, | 16 | 225, |
13 | 250, | 17 | 250, |
14 | 275, | 18 | 275, |
@@ -26,8 +30,12 @@ static const float codes0[] = { | |||
26 | 575, | 30 | 575, |
27 | 600 | 31 | 600 |
28 | }; | 32 | }; |
29 | /* codebook/lsp2.txt */ | 33 | /* /Users/erdgeist/Coding/codec2/src/codebook/lsp2.txt */ |
34 | #ifdef __EMBEDDED__ | ||
30 | static const float codes1[] = { | 35 | static const float codes1[] = { |
36 | #else | ||
37 | static float codes1[] = { | ||
38 | #endif | ||
31 | 325, | 39 | 325, |
32 | 350, | 40 | 350, |
33 | 375, | 41 | 375, |
@@ -45,8 +53,12 @@ static const float codes1[] = { | |||
45 | 675, | 53 | 675, |
46 | 700 | 54 | 700 |
47 | }; | 55 | }; |
48 | /* codebook/lsp3.txt */ | 56 | /* /Users/erdgeist/Coding/codec2/src/codebook/lsp3.txt */ |
57 | #ifdef __EMBEDDED__ | ||
49 | static const float codes2[] = { | 58 | static const float codes2[] = { |
59 | #else | ||
60 | static float codes2[] = { | ||
61 | #endif | ||
50 | 500, | 62 | 500, |
51 | 550, | 63 | 550, |
52 | 600, | 64 | 600, |
@@ -64,8 +76,12 @@ static const float codes2[] = { | |||
64 | 1200, | 76 | 1200, |
65 | 1250 | 77 | 1250 |
66 | }; | 78 | }; |
67 | /* codebook/lsp4.txt */ | 79 | /* /Users/erdgeist/Coding/codec2/src/codebook/lsp4.txt */ |
80 | #ifdef __EMBEDDED__ | ||
68 | static const float codes3[] = { | 81 | static const float codes3[] = { |
82 | #else | ||
83 | static float codes3[] = { | ||
84 | #endif | ||
69 | 700, | 85 | 700, |
70 | 800, | 86 | 800, |
71 | 900, | 87 | 900, |
@@ -83,8 +99,12 @@ static const float codes3[] = { | |||
83 | 2100, | 99 | 2100, |
84 | 2200 | 100 | 2200 |
85 | }; | 101 | }; |
86 | /* codebook/lsp5.txt */ | 102 | /* /Users/erdgeist/Coding/codec2/src/codebook/lsp5.txt */ |
103 | #ifdef __EMBEDDED__ | ||
87 | static const float codes4[] = { | 104 | static const float codes4[] = { |
105 | #else | ||
106 | static float codes4[] = { | ||
107 | #endif | ||
88 | 950, | 108 | 950, |
89 | 1050, | 109 | 1050, |
90 | 1150, | 110 | 1150, |
@@ -102,8 +122,12 @@ static const float codes4[] = { | |||
102 | 2350, | 122 | 2350, |
103 | 2450 | 123 | 2450 |
104 | }; | 124 | }; |
105 | /* codebook/lsp6.txt */ | 125 | /* /Users/erdgeist/Coding/codec2/src/codebook/lsp6.txt */ |
126 | #ifdef __EMBEDDED__ | ||
106 | static const float codes5[] = { | 127 | static const float codes5[] = { |
128 | #else | ||
129 | static float codes5[] = { | ||
130 | #endif | ||
107 | 1100, | 131 | 1100, |
108 | 1200, | 132 | 1200, |
109 | 1300, | 133 | 1300, |
@@ -121,8 +145,12 @@ static const float codes5[] = { | |||
121 | 2500, | 145 | 2500, |
122 | 2600 | 146 | 2600 |
123 | }; | 147 | }; |
124 | /* codebook/lsp7.txt */ | 148 | /* /Users/erdgeist/Coding/codec2/src/codebook/lsp7.txt */ |
149 | #ifdef __EMBEDDED__ | ||
125 | static const float codes6[] = { | 150 | static const float codes6[] = { |
151 | #else | ||
152 | static float codes6[] = { | ||
153 | #endif | ||
126 | 1500, | 154 | 1500, |
127 | 1600, | 155 | 1600, |
128 | 1700, | 156 | 1700, |
@@ -140,8 +168,12 @@ static const float codes6[] = { | |||
140 | 2900, | 168 | 2900, |
141 | 3000 | 169 | 3000 |
142 | }; | 170 | }; |
143 | /* codebook/lsp8.txt */ | 171 | /* /Users/erdgeist/Coding/codec2/src/codebook/lsp8.txt */ |
172 | #ifdef __EMBEDDED__ | ||
144 | static const float codes7[] = { | 173 | static const float codes7[] = { |
174 | #else | ||
175 | static float codes7[] = { | ||
176 | #endif | ||
145 | 2300, | 177 | 2300, |
146 | 2400, | 178 | 2400, |
147 | 2500, | 179 | 2500, |
@@ -151,8 +183,12 @@ static const float codes7[] = { | |||
151 | 2900, | 183 | 2900, |
152 | 3000 | 184 | 3000 |
153 | }; | 185 | }; |
154 | /* codebook/lsp9.txt */ | 186 | /* /Users/erdgeist/Coding/codec2/src/codebook/lsp9.txt */ |
187 | #ifdef __EMBEDDED__ | ||
155 | static const float codes8[] = { | 188 | static const float codes8[] = { |
189 | #else | ||
190 | static float codes8[] = { | ||
191 | #endif | ||
156 | 2500, | 192 | 2500, |
157 | 2600, | 193 | 2600, |
158 | 2700, | 194 | 2700, |
@@ -162,8 +198,12 @@ static const float codes8[] = { | |||
162 | 3100, | 198 | 3100, |
163 | 3200 | 199 | 3200 |
164 | }; | 200 | }; |
165 | /* codebook/lsp10.txt */ | 201 | /* /Users/erdgeist/Coding/codec2/src/codebook/lsp10.txt */ |
202 | #ifdef __EMBEDDED__ | ||
166 | static const float codes9[] = { | 203 | static const float codes9[] = { |
204 | #else | ||
205 | static float codes9[] = { | ||
206 | #endif | ||
167 | 2900, | 207 | 2900, |
168 | 3100, | 208 | 3100, |
169 | 3300, | 209 | 3300, |
@@ -171,70 +211,70 @@ static const float codes9[] = { | |||
171 | }; | 211 | }; |
172 | 212 | ||
173 | const struct lsp_codebook lsp_cb[] = { | 213 | const struct lsp_codebook lsp_cb[] = { |
174 | /* codebook/lsp1.txt */ | 214 | /* /Users/erdgeist/Coding/codec2/src/codebook/lsp1.txt */ |
175 | { | 215 | { |
176 | 1, | 216 | 1, |
177 | 4, | 217 | 4, |
178 | 16, | 218 | 16, |
179 | codes0 | 219 | codes0 |
180 | }, | 220 | }, |
181 | /* codebook/lsp2.txt */ | 221 | /* /Users/erdgeist/Coding/codec2/src/codebook/lsp2.txt */ |
182 | { | 222 | { |
183 | 1, | 223 | 1, |
184 | 4, | 224 | 4, |
185 | 16, | 225 | 16, |
186 | codes1 | 226 | codes1 |
187 | }, | 227 | }, |
188 | /* codebook/lsp3.txt */ | 228 | /* /Users/erdgeist/Coding/codec2/src/codebook/lsp3.txt */ |
189 | { | 229 | { |
190 | 1, | 230 | 1, |
191 | 4, | 231 | 4, |
192 | 16, | 232 | 16, |
193 | codes2 | 233 | codes2 |
194 | }, | 234 | }, |
195 | /* codebook/lsp4.txt */ | 235 | /* /Users/erdgeist/Coding/codec2/src/codebook/lsp4.txt */ |
196 | { | 236 | { |
197 | 1, | 237 | 1, |
198 | 4, | 238 | 4, |
199 | 16, | 239 | 16, |
200 | codes3 | 240 | codes3 |
201 | }, | 241 | }, |
202 | /* codebook/lsp5.txt */ | 242 | /* /Users/erdgeist/Coding/codec2/src/codebook/lsp5.txt */ |
203 | { | 243 | { |
204 | 1, | 244 | 1, |
205 | 4, | 245 | 4, |
206 | 16, | 246 | 16, |
207 | codes4 | 247 | codes4 |
208 | }, | 248 | }, |
209 | /* codebook/lsp6.txt */ | 249 | /* /Users/erdgeist/Coding/codec2/src/codebook/lsp6.txt */ |
210 | { | 250 | { |
211 | 1, | 251 | 1, |
212 | 4, | 252 | 4, |
213 | 16, | 253 | 16, |
214 | codes5 | 254 | codes5 |
215 | }, | 255 | }, |
216 | /* codebook/lsp7.txt */ | 256 | /* /Users/erdgeist/Coding/codec2/src/codebook/lsp7.txt */ |
217 | { | 257 | { |
218 | 1, | 258 | 1, |
219 | 4, | 259 | 4, |
220 | 16, | 260 | 16, |
221 | codes6 | 261 | codes6 |
222 | }, | 262 | }, |
223 | /* codebook/lsp8.txt */ | 263 | /* /Users/erdgeist/Coding/codec2/src/codebook/lsp8.txt */ |
224 | { | 264 | { |
225 | 1, | 265 | 1, |
226 | 3, | 266 | 3, |
227 | 8, | 267 | 8, |
228 | codes7 | 268 | codes7 |
229 | }, | 269 | }, |
230 | /* codebook/lsp9.txt */ | 270 | /* /Users/erdgeist/Coding/codec2/src/codebook/lsp9.txt */ |
231 | { | 271 | { |
232 | 1, | 272 | 1, |
233 | 3, | 273 | 3, |
234 | 8, | 274 | 8, |
235 | codes8 | 275 | codes8 |
236 | }, | 276 | }, |
237 | /* codebook/lsp10.txt */ | 277 | /* /Users/erdgeist/Coding/codec2/src/codebook/lsp10.txt */ |
238 | { | 278 | { |
239 | 1, | 279 | 1, |
240 | 2, | 280 | 2, |