FreeCalypso > hg > gsm-codec-lib
comparison libtwamr/q_plsf.c @ 371:4a8cabac281e
libtwamr: integrate q_plsf.c
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 06 May 2024 03:45:04 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
370:8861f41e4507 | 371:4a8cabac281e |
---|---|
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 : q_plsf.c | |
11 * Purpose : common part (init, exit, reset) of LSF quantization | |
12 * module (rest in q_plsf_3.c and q_plsf_5.c) | |
13 * | |
14 ******************************************************************************** | |
15 */ | |
16 | |
17 /* | |
18 ******************************************************************************** | |
19 * MODULE INCLUDE FILE AND VERSION ID | |
20 ******************************************************************************** | |
21 */ | |
22 #include "namespace.h" | |
23 #include "q_plsf.h" | |
24 | |
25 /* | |
26 ******************************************************************************** | |
27 * INCLUDE FILES | |
28 ******************************************************************************** | |
29 */ | |
30 #include "typedef.h" | |
31 #include "basic_op.h" | |
32 | |
33 /* | |
34 ******************************************************************************** | |
35 * PUBLIC PROGRAM CODE | |
36 ******************************************************************************** | |
37 */ | |
38 | |
39 /* | |
40 ************************************************************************** | |
41 * | |
42 * Function : Q_plsf_reset | |
43 * Purpose : Resets state memory | |
44 * | |
45 ************************************************************************** | |
46 */ | |
47 void Q_plsf_reset (Q_plsfState *state) | |
48 { | |
49 Word16 i; | |
50 | |
51 for ( i = 0; i < M; i++) | |
52 state->past_rq[i] = 0; | |
53 } |