FreeCalypso > hg > gsm-codec-lib
comparison libtwamr/spstproc.h @ 404:a37687c6ff22
libtwamr: integrate spstproc.c
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Mon, 06 May 2024 23:17:09 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 403:7e0aeab69b10 | 404:a37687c6ff22 |
|---|---|
| 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 : subframePostProc.h | |
| 11 * Purpose : Subframe post processing | |
| 12 * | |
| 13 ******************************************************************************** | |
| 14 */ | |
| 15 #ifndef spstproc_h | |
| 16 #define spstproc_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 * PUBLIC PROGRAM CODE | |
| 35 ******************************************************************************** | |
| 36 */ | |
| 37 | |
| 38 int subframePostProc( | |
| 39 Word16 *speech, /* i : speech segment */ | |
| 40 enum Mode mode, /* i : coder mode */ | |
| 41 Word16 i_subfr, /* i : Subframe nr */ | |
| 42 Word16 gain_pit, /* i : Pitch gain Q14 */ | |
| 43 Word16 gain_code, /* i : Decoded innovation gain */ | |
| 44 Word16 *Aq, /* i : A(z) quantized for the 4 subframes */ | |
| 45 Word16 synth[], /* i : Local snthesis */ | |
| 46 Word16 xn[], /* i : Target vector for pitch search */ | |
| 47 Word16 code[], /* i : Fixed codebook exitation */ | |
| 48 Word16 y1[], /* i : Filtered adaptive exitation */ | |
| 49 Word16 y2[], /* i : Filtered fixed codebook excitation */ | |
| 50 Word16 *mem_syn, /* i/o : memory of synthesis filter */ | |
| 51 Word16 *mem_err, /* o : pointer to error signal */ | |
| 52 Word16 *mem_w0, /* o : memory of weighting filter */ | |
| 53 Word16 *exc, /* o : long term prediction residual */ | |
| 54 Word16 *sharp /* o : pitch sharpening value */ | |
| 55 ); | |
| 56 | |
| 57 #endif |
