FreeCalypso > hg > gsm-codec-lib
comparison libtwamr/preemph.h @ 399:3618b5cf25a6
libtwamr: integrate preemph.c
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 06 May 2024 19:19:27 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
398:df14b0c17e6d | 399:3618b5cf25a6 |
---|---|
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 : preemph.h | |
11 * Purpose : Preemphasis filtering | |
12 * Description : Filtering through 1 - g z^-1 | |
13 * | |
14 ******************************************************************************** | |
15 */ | |
16 #ifndef preemph_h | |
17 #define preemph_h "$Id $" | |
18 | |
19 /* | |
20 ******************************************************************************** | |
21 * INCLUDE FILES | |
22 ******************************************************************************** | |
23 */ | |
24 #include "typedef.h" | |
25 | |
26 /* | |
27 ******************************************************************************** | |
28 * DEFINITION OF DATA TYPES | |
29 ******************************************************************************** | |
30 */ | |
31 typedef struct { | |
32 Word16 mem_pre; /* filter state */ | |
33 } preemphasisState; | |
34 | |
35 /* | |
36 ******************************************************************************** | |
37 * DECLARATION OF PROTOTYPES | |
38 ******************************************************************************** | |
39 */ | |
40 | |
41 void preemphasis_reset (preemphasisState *st); | |
42 /* reset of preemphasis filter (i.e. set state memory to zero) | |
43 returns 0 on success | |
44 */ | |
45 | |
46 int preemphasis ( | |
47 preemphasisState *st, /* (i/o): preemphasis filter state */ | |
48 Word16 *signal, /* (i/o): input signal overwritten by the output */ | |
49 Word16 g, /* (i) : preemphasis coefficient */ | |
50 Word16 L /* (i) : size of filtering */ | |
51 ); | |
52 | |
53 #endif |