annotate libtwamr/inter_36.tab @ 409:4184ccc136a3

libtwamr/typedef.h: drop Pfloat from EFR, not used in AMR
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 07 May 2024 01:04:17 +0000
parents 838ed426bb76
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
383
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 /*
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 ********************************************************************************
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 *
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 * GSM AMR-NB speech codec R98 Version 7.6.0 December 12, 2001
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 * R99 Version 3.3.0
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 * REL-4 Version 4.1.0
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 *
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 ********************************************************************************
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 *
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 * File : inter_36.tab
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 * Purpose : Tables for interpolating the normalized correlation
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 * with 1/3 or 1/6 resolution.
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 * $Id $
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 *
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 ********************************************************************************
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 */
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 #define FIR_SIZE (UP_SAMP_MAX*L_INTER_SRCH+1)
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 /* 1/6 resolution interpolation filter (-3 dB at 3600 Hz) */
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 /* Note: The IS641 (7.4) 1/3 resolution filter is simply a subsampled
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 version of the 1/6 resolution filter, i.e. it uses
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 every second coefficient:
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 inter_3[k] = inter_6[2*k], 0 <= k <= 3*L_INTER_SRCH
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25 */
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27 static const Word16 inter_6[FIR_SIZE] =
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28 {
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29 29519,
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
30 28316, 24906, 19838, 13896, 7945, 2755,
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
31 -1127, -3459, -4304, -3969, -2899, -1561,
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
32 -336, 534, 970, 1023, 823, 516,
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
33 220, 0, -131, -194, -215, 0
838ed426bb76 libtwamr: integrate inter_36.c
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
34 };