FreeCalypso > hg > gsm-codec-lib
annotate libtwamr/inter_36.tab @ 585:3c6bf0d26ee7 default tip
TW-TS-005 reader: fix maximum line length bug
TW-TS-005 section 4.1 states:
The maximum allowed length of each line is 80 characters, not
including the OS-specific newline encoding.
The implementation of this line length limit in the TW-TS-005 hex file
reader function in the present suite was wrong, such that lines of
the full maximum length could not be read. Fix it.
Note that this bug affects comment lines too, not just actual RTP
payloads. Neither Annex A nor Annex B features an RTP payload format
that goes to the maximum of 40 bytes, but if a comment line goes to
the maximum allowed length of 80 characters not including the
terminating newline, the bug will be triggered, necessitating
the present fix.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 25 Feb 2025 07:49:28 +0000 |
parents | 838ed426bb76 |
children |
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 }; |