annotate libtwamr/pre_big.h @ 542:f2d0f2f15d5f

libgsmefr: add wrapper for TW-TS-001 RTP input
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 28 Sep 2024 06:38:08 +0000
parents 38ee82480462
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
396
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 /*
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 ********************************************************************************
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 *
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 * GSM AMR-NB speech codec R98 Version 7.6.0 December 12, 2001
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 * R99 Version 3.3.0
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 * REL-4 Version 4.1.0
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 *
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 ********************************************************************************
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 *
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 * File : pre_big.h
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 * Purpose : Big subframe (2 subframes) preprocessing
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 *
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 ********************************************************************************
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 */
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 #ifndef pre_big_h
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 #define pre_big_h "$Id $"
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 /*
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 ********************************************************************************
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 * INCLUDE FILES
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 ********************************************************************************
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 */
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 #include "tw_amr.h"
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 #include "typedef.h"
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25 #include "cnst.h"
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27 /*
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28 ********************************************************************************
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29 * DECLARATION OF PROTOTYPES
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
30 ********************************************************************************
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
31 */
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
32
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
33 int pre_big(
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
34 enum Mode mode, /* i : coder mode */
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
35 const Word16 gamma1[], /* i : spectral exp. factor 1 */
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
36 const Word16 gamma1_12k2[],/* i : spectral exp. factor 1 for EFR */
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
37 const Word16 gamma2[], /* i : spectral exp. factor 2 */
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
38 Word16 A_t[], /* i : A(z) unquantized, for 4 subframes, Q12 */
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
39 Word16 frameOffset, /* i : Start position in speech vector, Q0 */
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
40 Word16 speech[], /* i : speech, Q0 */
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
41 Word16 mem_w[], /* i/o: synthesis filter memory state, Q0 */
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
42 Word16 wsp[] /* o : weighted speech Q0 */
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
43 );
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
44
38ee82480462 libtwamr: integrate pre_big.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
45 #endif