FreeCalypso > hg > gsm-codec-lib
comparison libtwamr/post_pro.h @ 392:a0f914a28371
libtwamr: integrate post_pro.c
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 06 May 2024 18:37:52 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
391:be8edf9e6bc1 | 392:a0f914a28371 |
---|---|
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 : post_pro.h | |
11 * Purpose : Postprocessing of output speech. | |
12 * | |
13 * - 2nd order high pass filtering with cut | |
14 * off frequency at 60 Hz. | |
15 * - Multiplication of output by two. | |
16 * | |
17 ******************************************************************************** | |
18 */ | |
19 #ifndef post_pro_h | |
20 #define post_pro_h "$Id $" | |
21 | |
22 /* | |
23 ******************************************************************************** | |
24 * INCLUDE FILES | |
25 ******************************************************************************** | |
26 */ | |
27 #include "typedef.h" | |
28 | |
29 /* | |
30 ******************************************************************************** | |
31 * LOCAL VARIABLES AND TABLES | |
32 ******************************************************************************** | |
33 */ | |
34 | |
35 /* | |
36 ******************************************************************************** | |
37 * DEFINITION OF DATA TYPES | |
38 ******************************************************************************** | |
39 */ | |
40 typedef struct { | |
41 Word16 y2_hi; | |
42 Word16 y2_lo; | |
43 Word16 y1_hi; | |
44 Word16 y1_lo; | |
45 Word16 x0; | |
46 Word16 x1; | |
47 } Post_ProcessState; | |
48 | |
49 /* | |
50 ******************************************************************************** | |
51 * DECLARATION OF PROTOTYPES | |
52 ******************************************************************************** | |
53 */ | |
54 | |
55 void Post_Process_reset (Post_ProcessState *st); | |
56 /* reset of Post processing state (i.e. set state memory to zero) | |
57 returns 0 on success | |
58 */ | |
59 | |
60 int Post_Process ( | |
61 Post_ProcessState *st, /* i/o : post process state */ | |
62 Word16 signal[], /* i/o : signal */ | |
63 Word16 lg /* i : lenght of signal */ | |
64 ); | |
65 | |
66 #endif |