annotate libtwamr/q_plsf.c @ 458:e26b974f7ba3

doc/AMR-study-utils: update for the current situation
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 10 May 2024 18:45:36 +0000
parents 4a8cabac281e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
371
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 /*
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 ********************************************************************************
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 *
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 * GSM AMR-NB speech codec R98 Version 7.6.0 December 12, 2001
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 * R99 Version 3.3.0
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 * REL-4 Version 4.1.0
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 *
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 ********************************************************************************
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 *
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 * File : q_plsf.c
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 * Purpose : common part (init, exit, reset) of LSF quantization
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 * module (rest in q_plsf_3.c and q_plsf_5.c)
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 *
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 ********************************************************************************
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 */
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 /*
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 ********************************************************************************
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 * MODULE INCLUDE FILE AND VERSION ID
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 ********************************************************************************
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 */
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 #include "namespace.h"
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 #include "q_plsf.h"
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25 /*
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26 ********************************************************************************
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27 * INCLUDE FILES
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28 ********************************************************************************
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29 */
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
30 #include "typedef.h"
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
31 #include "basic_op.h"
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
32
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
33 /*
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
34 ********************************************************************************
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
35 * PUBLIC PROGRAM CODE
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
36 ********************************************************************************
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
37 */
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
38
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
39 /*
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
40 **************************************************************************
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
41 *
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
42 * Function : Q_plsf_reset
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
43 * Purpose : Resets state memory
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
44 *
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
45 **************************************************************************
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
46 */
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
47 void Q_plsf_reset (Q_plsfState *state)
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
48 {
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
49 Word16 i;
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
50
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
51 for ( i = 0; i < M; i++)
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
52 state->past_rq[i] = 0;
4a8cabac281e libtwamr: integrate q_plsf.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
53 }