Mercurial > libavcodec.hg
comparison qcelpdata.h @ 8123:cd756806be02 libavcodec
More OKed parts of the QCELP decoder
patch by Kenan Gillet, kenan.gillet gmail com
author | vitor |
---|---|
date | Sun, 09 Nov 2008 12:00:47 +0000 |
parents | 5b379dd32155 |
children | 3b5256153553 |
comparison
equal
deleted
inserted
replaced
8122:aec296246352 | 8123:cd756806be02 |
---|---|
376 qcelp_lspvq3, | 376 qcelp_lspvq3, |
377 qcelp_lspvq4, | 377 qcelp_lspvq4, |
378 qcelp_lspvq5 | 378 qcelp_lspvq5 |
379 }; | 379 }; |
380 | 380 |
381 /** | |
382 * circular codebook for rate 1 frames in x*100 form | |
383 * | |
384 * TIA/EIA/IS-733 2.4.6.1-2 | |
385 */ | |
386 static const int16_t qcelp_rate_full_codebook[128] = { | |
387 10, -65, -59, 12, 110, 34, -134, 157, | |
388 104, -84, -34, -115, 23, -101, 3, 45, | |
389 -101, -16, -59, 28, -45, 134, -67, 22, | |
390 61, -29, 226, -26, -55, -179, 157, -51, | |
391 -220, -93, -37, 60, 118, 74, -48, -95, | |
392 -181, 111, 36, -52, -215, 78, -112, 39, | |
393 -17, -47, -223, 19, 12, -98, -142, 130, | |
394 54, -127, 21, -12, 39, -48, 12, 128, | |
395 6, -167, 82, -102, -79, 55, -44, 48, | |
396 -20, -53, 8, -61, 11, -70, -157, -168, | |
397 20, -56, -74, 78, 33, -63, -173, -2, | |
398 -75, -53, -146, 77, 66, -29, 9, -75, | |
399 65, 119, -43, 76, 233, 98, 125, -156, | |
400 -27, 78, -9, 170, 176, 143, -148, -7, | |
401 27, -136, 5, 27, 18, 139, 204, 7, | |
402 -184, -197, 52, -3, 78, -189, 8, -65 | |
403 }; | |
404 #define QCELP_RATE_FULL_CODEBOOK_RATIO .01 | |
405 | |
406 /** | |
407 * circular codebook for rate 1/2 frames in x*2 form | |
408 * | |
409 * TIA/EIA/IS-733 2.4.6.1-1 | |
410 */ | |
411 static const int8_t qcelp_rate_half_codebook[128] = { | |
412 0, -4, 0, -3, 0, 0, 0, 0, | |
413 0, 0, 0, 0, 0, 0, 0, 0, | |
414 0, -3, -2, 0, 0, 0, 0, 0, | |
415 0, 0, 0, 0, 0, 0, 0, 5, | |
416 0, 0, 0, 0, 0, 0, 4, 0, | |
417 0, 3, 2, 0, 3, 4, 0, 0, | |
418 0, 0, 0, 0, 0, 0, 0, 0, | |
419 0, 0, 0, 0, 0, 3, 0, 0, | |
420 -3, 3, 0, 0, -2, 0, 3, 0, | |
421 0, 0, 0, 0, 0, 0, -5, 0, | |
422 0, 0, 0, 3, 0, 0, 0, 3, | |
423 0, 0, 0, 0, 0, 0, 0, 4, | |
424 0, 0, 0, 0, 0, 0, 0, 0, | |
425 0, 3, 6, -3, -4, 0, -3, -3, | |
426 3, -3, 0, 0, 0, 0, 0, 0, | |
427 0, 0, 0, 0, 0, 0, 0, 0 | |
428 }; | |
429 #define QCELP_RATE_HALF_CODEBOOK_RATIO 0.5 | |
430 | |
381 #endif /* AVCODEC_QCELPDATA_H */ | 431 #endif /* AVCODEC_QCELPDATA_H */ |