FreeCalypso > hg > gsm-codec-lib
comparison libtwamr/cbsearch.h @ 328:4614f1a97e1a
libtwamr: integrate cbsearch.c
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Thu, 18 Apr 2024 20:35:02 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 327:2df212a012af | 328:4614f1a97e1a |
|---|---|
| 1 /* | |
| 2 ***************************************************************************** | |
| 3 * | |
| 4 * GSM AMR-NB speech codec R98 Version 7.6.0 December 12, 2001 | |
| 5 * R99 Version 3.3.0 | |
| 6 * REL-4 Version 4.1.0 | |
| 7 * | |
| 8 ***************************************************************************** | |
| 9 * | |
| 10 * File : cbsearch.h | |
| 11 * Purpose : Inovative codebook search (find index and gain) | |
| 12 * | |
| 13 ***************************************************************************** | |
| 14 */ | |
| 15 #ifndef cbsearch_h | |
| 16 #define cbsearch_h "$Id $" | |
| 17 | |
| 18 /* | |
| 19 ***************************************************************************** | |
| 20 * INCLUDE FILES | |
| 21 ***************************************************************************** | |
| 22 */ | |
| 23 #include "tw_amr.h" | |
| 24 #include "typedef.h" | |
| 25 | |
| 26 /* | |
| 27 ***************************************************************************** | |
| 28 * LOCAL VARIABLES AND TABLES | |
| 29 ***************************************************************************** | |
| 30 */ | |
| 31 | |
| 32 /* | |
| 33 ***************************************************************************** | |
| 34 * DEFINITION OF DATA TYPES | |
| 35 ***************************************************************************** | |
| 36 */ | |
| 37 | |
| 38 /* | |
| 39 ***************************************************************************** | |
| 40 * PUBLIC PROGRAM CODE | |
| 41 ***************************************************************************** | |
| 42 */ | |
| 43 int cbsearch(Word16 x[], /* i : target vector, Q0 */ | |
| 44 Word16 h[], /* i : impulse response of weighted synthesis */ | |
| 45 /* filter h[-L_subfr..-1] must be set to */ | |
| 46 /* zero. Q12 */ | |
| 47 Word16 T0, /* i : Pitch lag */ | |
| 48 Word16 pitch_sharp, /* i : Last quantized pitch gain, Q14 */ | |
| 49 Word16 gain_pit,/* i : Pitch gain, Q14 */ | |
| 50 Word16 res2[], /* i : Long term prediction residual, Q0 */ | |
| 51 Word16 code[], /* o : Innovative codebook, Q13 */ | |
| 52 Word16 y[], /* o : filtered fixed codebook excitation, Q12 */ | |
| 53 Word16 **anap, /* o : Signs of the pulses */ | |
| 54 enum Mode mode, /* i : coder mode */ | |
| 55 Word16 subNr) /* i : subframe number */ | |
| 56 ; | |
| 57 | |
| 58 #endif |
