annotate libgsmefr/lag_wind.tab @ 128:a5ffec18e4cd

test programs: use printf %d format for codec parameters Even though all codec params (both FR and EFR) are small unsigned integers, we use signed int16_t data type for both, for interface reasons: in the case of FR it's the gsm_signal type of libgsm, and in the case of EFR it's the Word16 type of ETSI codec guts. Therefore, the correct printf format is %d, not %u, when the objective is to see what's in the variables (what the compiler sees) and catch any bugs.
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 11 Dec 2022 04:00:13 +0000
parents 37e39cad5838
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
41
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 /*-----------------------------------------------------*
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 | Table of lag_window for autocorrelation. |
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 | noise floor = 1.0001 = (0.9999 on r[1] ..r[10]) |
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 | Bandwitdh expansion = 60 Hz |
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 | |
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 | |
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 | lag_wind[0] = 1.00000000 (not stored) |
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 | lag_wind[1] = 0.99879038 |
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 | lag_wind[2] = 0.99546897 |
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 | lag_wind[3] = 0.98995781 |
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 | lag_wind[4] = 0.98229337 |
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 | lag_wind[5] = 0.97252619 |
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 | lag_wind[6] = 0.96072036 |
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 | lag_wind[7] = 0.94695264 |
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 | lag_wind[8] = 0.93131179 |
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 | lag_wind[9] = 0.91389757 |
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 | lag_wind[10]= 0.89481968 |
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 -----------------------------------------------------*/
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 static const Word16 lag_h[10] =
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 {
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 32728,
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 32619,
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 32438,
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25 32187,
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26 31867,
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27 31480,
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28 31029,
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29 30517,
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
30 29946,
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
31 29321
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
32 };
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
33
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
34 static const Word16 lag_l[10] =
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
35 {
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
36 11904,
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
37 17280,
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
38 30720,
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
39 25856,
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
40 24192,
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
41 28992,
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
42 24384,
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
43 7360,
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
44 19520,
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
45 14784
37e39cad5838 libgsmefr/*.tab: import from ETSI code
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
46 };