FreeCalypso > hg > gsm-codec-lib
comparison libtwamr/spreproc.h @ 403:7e0aeab69b10
libtwamr: integrate spreproc.c
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 06 May 2024 23:11:34 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
402:a8b73b1c5b19 | 403:7e0aeab69b10 |
---|---|
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 : spreproc.h | |
11 * Purpose : Subframe preprocessing | |
12 * | |
13 ******************************************************************************** | |
14 */ | |
15 #ifndef spreproc_h | |
16 #define spreproc_h "$Id $" | |
17 | |
18 /* | |
19 ******************************************************************************** | |
20 * INCLUDE FILES | |
21 ******************************************************************************** | |
22 */ | |
23 #include "tw_amr.h" | |
24 #include "typedef.h" | |
25 #include "cnst.h" | |
26 | |
27 /* | |
28 ******************************************************************************** | |
29 * DECLARATION OF PROTOTYPES | |
30 ******************************************************************************** | |
31 */ | |
32 int subframePreProc( | |
33 enum Mode mode, /* i : coder mode */ | |
34 const Word16 gamma1[], /* i : spectral exp. factor 1 */ | |
35 const Word16 gamma1_12k2[],/* i : spectral exp. factor 1 for EFR */ | |
36 const Word16 gamma2[], /* i : spectral exp. factor 2 */ | |
37 Word16 *A, /* i : A(z) unquantized for the 4 subframes */ | |
38 Word16 *Aq, /* i : A(z) quantized for the 4 subframes */ | |
39 Word16 *speech, /* i : speech segment */ | |
40 Word16 *mem_err, /* i : pointer to error signal */ | |
41 Word16 *mem_w0, /* i : memory of weighting filter */ | |
42 Word16 *zero, /* i : pointer to zero vector */ | |
43 Word16 ai_zero[], /* o : history of weighted synth. filter */ | |
44 Word16 exc[], /* o : long term prediction residual */ | |
45 Word16 h1[], /* o : impulse response */ | |
46 Word16 xn[], /* o : target vector for pitch search */ | |
47 Word16 res2[], /* o : long term prediction residual */ | |
48 Word16 error[] /* o : error of LPC synthesis filter */ | |
49 ); | |
50 | |
51 #endif |