FreeCalypso > hg > gsm-codec-lib
comparison libtwamr/ton_stab.h @ 405:8fff74ca83e8
libtwamr: integrate ton_stab.c
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 06 May 2024 23:23:40 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
404:a37687c6ff22 | 405:8fff74ca83e8 |
---|---|
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 : ton_stab.h | |
11 * Purpose : Tone stabilization routines | |
12 * | |
13 ******************************************************************************** | |
14 */ | |
15 #ifndef ton_stab_h | |
16 #define ton_stab_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 * LOCAL VARIABLES AND TABLES | |
30 ******************************************************************************** | |
31 */ | |
32 | |
33 /* | |
34 ******************************************************************************** | |
35 * DEFINITION OF DATA TYPES | |
36 ******************************************************************************** | |
37 */ | |
38 | |
39 /* state variable */ | |
40 typedef struct { | |
41 | |
42 /* counters */ | |
43 Word16 count; | |
44 | |
45 /* gain history Q11 */ | |
46 Word16 gp[N_FRAME]; | |
47 | |
48 } tonStabState; | |
49 | |
50 /* | |
51 ******************************************************************************** | |
52 * DECLARATION OF PROTOTYPES | |
53 ******************************************************************************** | |
54 */ | |
55 | |
56 void ton_stab_reset (tonStabState *st); | |
57 /* reset of pre processing state (i.e. set state memory to zero) | |
58 returns 0 on success | |
59 */ | |
60 | |
61 Word16 check_lsp(tonStabState *st, /* i/o : State struct */ | |
62 Word16 *lsp /* i : unquantized LSP's */ | |
63 ); | |
64 | |
65 Word16 check_gp_clipping(tonStabState *st, /* i/o : State struct */ | |
66 Word16 g_pitch /* i : pitch gain */ | |
67 ); | |
68 | |
69 void update_gp_clipping(tonStabState *st, /* i/o : State struct */ | |
70 Word16 g_pitch /* i : pitch gain */ | |
71 ); | |
72 | |
73 #endif |