summaryrefslogtreecommitdiff
path: root/codebookd.c
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2025-08-15 12:42:40 +0200
committererdgeist <erdgeist@erdgeist.org>2025-08-15 12:42:40 +0200
commit30325d24d107dbf133da39f7c96d1510fd1c9449 (patch)
tree932baa5b2a4475821f16dccf9e3e05011daa6d92 /codebookd.c
parent9022d768021bbe15c7815cc6f8b64218b46f0e10 (diff)
Bump to codec2 version 1.2.0erdgeist-bump-to-1.2.0
Diffstat (limited to 'codebookd.c')
-rw-r--r--codebookd.c82
1 files changed, 61 insertions, 21 deletions
diff --git a/codebookd.c b/codebookd.c
index 5816402..5ca8651 100644
--- a/codebookd.c
+++ b/codebookd.c
@@ -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/dlsp1.txt */ 10 /* /Users/erdgeist/Coding/codec2/src/codebook/dlsp1.txt */
11#ifdef __EMBEDDED__
11static const float codes0[] = { 12static const float codes0[] = {
13#else
14static float codes0[] = {
15#endif
12 25, 16 25,
13 50, 17 50,
14 75, 18 75,
@@ -42,8 +46,12 @@ static const float codes0[] = {
42 775, 46 775,
43 800 47 800
44}; 48};
45 /* codebook/dlsp2.txt */ 49 /* /Users/erdgeist/Coding/codec2/src/codebook/dlsp2.txt */
50#ifdef __EMBEDDED__
46static const float codes1[] = { 51static const float codes1[] = {
52#else
53static float codes1[] = {
54#endif
47 25, 55 25,
48 50, 56 50,
49 75, 57 75,
@@ -77,8 +85,12 @@ static const float codes1[] = {
77 775, 85 775,
78 800 86 800
79}; 87};
80 /* codebook/dlsp3.txt */ 88 /* /Users/erdgeist/Coding/codec2/src/codebook/dlsp3.txt */
89#ifdef __EMBEDDED__
81static const float codes2[] = { 90static const float codes2[] = {
91#else
92static float codes2[] = {
93#endif
82 25, 94 25,
83 50, 95 50,
84 75, 96 75,
@@ -112,8 +124,12 @@ static const float codes2[] = {
112 775, 124 775,
113 800 125 800
114}; 126};
115 /* codebook/dlsp4.txt */ 127 /* /Users/erdgeist/Coding/codec2/src/codebook/dlsp4.txt */
128#ifdef __EMBEDDED__
116static const float codes3[] = { 129static const float codes3[] = {
130#else
131static float codes3[] = {
132#endif
117 25, 133 25,
118 50, 134 50,
119 75, 135 75,
@@ -147,8 +163,12 @@ static const float codes3[] = {
147 1350, 163 1350,
148 1400 164 1400
149}; 165};
150 /* codebook/dlsp5.txt */ 166 /* /Users/erdgeist/Coding/codec2/src/codebook/dlsp5.txt */
167#ifdef __EMBEDDED__
151static const float codes4[] = { 168static const float codes4[] = {
169#else
170static float codes4[] = {
171#endif
152 25, 172 25,
153 50, 173 50,
154 75, 174 75,
@@ -182,8 +202,12 @@ static const float codes4[] = {
182 1350, 202 1350,
183 1400 203 1400
184}; 204};
185 /* codebook/dlsp6.txt */ 205 /* /Users/erdgeist/Coding/codec2/src/codebook/dlsp6.txt */
206#ifdef __EMBEDDED__
186static const float codes5[] = { 207static const float codes5[] = {
208#else
209static float codes5[] = {
210#endif
187 25, 211 25,
188 50, 212 50,
189 75, 213 75,
@@ -217,8 +241,12 @@ static const float codes5[] = {
217 1350, 241 1350,
218 1400 242 1400
219}; 243};
220 /* codebook/dlsp7.txt */ 244 /* /Users/erdgeist/Coding/codec2/src/codebook/dlsp7.txt */
245#ifdef __EMBEDDED__
221static const float codes6[] = { 246static const float codes6[] = {
247#else
248static float codes6[] = {
249#endif
222 25, 250 25,
223 50, 251 50,
224 75, 252 75,
@@ -252,8 +280,12 @@ static const float codes6[] = {
252 775, 280 775,
253 800 281 800
254}; 282};
255 /* codebook/dlsp8.txt */ 283 /* /Users/erdgeist/Coding/codec2/src/codebook/dlsp8.txt */
284#ifdef __EMBEDDED__
256static const float codes7[] = { 285static const float codes7[] = {
286#else
287static float codes7[] = {
288#endif
257 25, 289 25,
258 50, 290 50,
259 75, 291 75,
@@ -287,8 +319,12 @@ static const float codes7[] = {
287 775, 319 775,
288 800 320 800
289}; 321};
290 /* codebook/dlsp9.txt */ 322 /* /Users/erdgeist/Coding/codec2/src/codebook/dlsp9.txt */
323#ifdef __EMBEDDED__
291static const float codes8[] = { 324static const float codes8[] = {
325#else
326static float codes8[] = {
327#endif
292 25, 328 25,
293 50, 329 50,
294 75, 330 75,
@@ -322,8 +358,12 @@ static const float codes8[] = {
322 775, 358 775,
323 800 359 800
324}; 360};
325 /* codebook/dlsp10.txt */ 361 /* /Users/erdgeist/Coding/codec2/src/codebook/dlsp10.txt */
362#ifdef __EMBEDDED__
326static const float codes9[] = { 363static const float codes9[] = {
364#else
365static float codes9[] = {
366#endif
327 25, 367 25,
328 50, 368 50,
329 75, 369 75,
@@ -359,70 +399,70 @@ static const float codes9[] = {
359}; 399};
360 400
361const struct lsp_codebook lsp_cbd[] = { 401const struct lsp_codebook lsp_cbd[] = {
362 /* codebook/dlsp1.txt */ 402 /* /Users/erdgeist/Coding/codec2/src/codebook/dlsp1.txt */
363 { 403 {
364 1, 404 1,
365 5, 405 5,
366 32, 406 32,
367 codes0 407 codes0
368 }, 408 },
369 /* codebook/dlsp2.txt */ 409 /* /Users/erdgeist/Coding/codec2/src/codebook/dlsp2.txt */
370 { 410 {
371 1, 411 1,
372 5, 412 5,
373 32, 413 32,
374 codes1 414 codes1
375 }, 415 },
376 /* codebook/dlsp3.txt */ 416 /* /Users/erdgeist/Coding/codec2/src/codebook/dlsp3.txt */
377 { 417 {
378 1, 418 1,
379 5, 419 5,
380 32, 420 32,
381 codes2 421 codes2
382 }, 422 },
383 /* codebook/dlsp4.txt */ 423 /* /Users/erdgeist/Coding/codec2/src/codebook/dlsp4.txt */
384 { 424 {
385 1, 425 1,
386 5, 426 5,
387 32, 427 32,
388 codes3 428 codes3
389 }, 429 },
390 /* codebook/dlsp5.txt */ 430 /* /Users/erdgeist/Coding/codec2/src/codebook/dlsp5.txt */
391 { 431 {
392 1, 432 1,
393 5, 433 5,
394 32, 434 32,
395 codes4 435 codes4
396 }, 436 },
397 /* codebook/dlsp6.txt */ 437 /* /Users/erdgeist/Coding/codec2/src/codebook/dlsp6.txt */
398 { 438 {
399 1, 439 1,
400 5, 440 5,
401 32, 441 32,
402 codes5 442 codes5
403 }, 443 },
404 /* codebook/dlsp7.txt */ 444 /* /Users/erdgeist/Coding/codec2/src/codebook/dlsp7.txt */
405 { 445 {
406 1, 446 1,
407 5, 447 5,
408 32, 448 32,
409 codes6 449 codes6
410 }, 450 },
411 /* codebook/dlsp8.txt */ 451 /* /Users/erdgeist/Coding/codec2/src/codebook/dlsp8.txt */
412 { 452 {
413 1, 453 1,
414 5, 454 5,
415 32, 455 32,
416 codes7 456 codes7
417 }, 457 },
418 /* codebook/dlsp9.txt */ 458 /* /Users/erdgeist/Coding/codec2/src/codebook/dlsp9.txt */
419 { 459 {
420 1, 460 1,
421 5, 461 5,
422 32, 462 32,
423 codes8 463 codes8
424 }, 464 },
425 /* codebook/dlsp10.txt */ 465 /* /Users/erdgeist/Coding/codec2/src/codebook/dlsp10.txt */
426 { 466 {
427 1, 467 1,
428 5, 468 5,