FreeCalypso > hg > gsm-codec-lib
comparison libtwamr/lpc.h @ 386:9adfe3863a41
libtwamr: integrate lpc.c
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 06 May 2024 06:24:26 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
385:c713061b6edf | 386:9adfe3863a41 |
---|---|
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 : lpc.h | |
11 * Purpose : 2 LP analyses centered at 2nd and 4th subframe | |
12 * for mode 12.2. For all other modes a | |
13 * LP analysis centered at 4th subframe is | |
14 * performed. | |
15 * | |
16 ******************************************************************************** | |
17 */ | |
18 #ifndef lpc_h | |
19 #define lpc_h "$Id $" | |
20 | |
21 /* | |
22 ******************************************************************************** | |
23 * INCLUDE FILES | |
24 ******************************************************************************** | |
25 */ | |
26 #include "tw_amr.h" | |
27 #include "typedef.h" | |
28 #include "levinson.h" | |
29 | |
30 /* | |
31 ******************************************************************************** | |
32 * LOCAL VARIABLES AND TABLES | |
33 ******************************************************************************** | |
34 */ | |
35 /* | |
36 ******************************************************************************** | |
37 * DEFINITION OF DATA TYPES | |
38 ******************************************************************************** | |
39 */ | |
40 typedef struct { | |
41 LevinsonState levinsonSt; | |
42 } lpcState; | |
43 | |
44 /* | |
45 ******************************************************************************** | |
46 * DECLARATION OF PROTOTYPES | |
47 ******************************************************************************** | |
48 */ | |
49 | |
50 void lpc_reset (lpcState *st); | |
51 /* reset of pre processing state (i.e. set state memory to zero) | |
52 returns 0 on success | |
53 */ | |
54 | |
55 int lpc( | |
56 lpcState *st, /* i/o: State struct */ | |
57 enum Mode mode, /* i : coder mode */ | |
58 Word16 x[], /* i : Input signal Q15 */ | |
59 Word16 x_12k2[], /* i : Input signal (EFR) Q15 */ | |
60 Word16 a[] /* o : predictor coefficients Q12 */ | |
61 ); | |
62 | |
63 #endif |