comparison amrconv/amr_defs.h @ 211:78d1a6513393

amrconv: new program amr-cod-parse
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 20 Apr 2023 01:30:46 +0000
parents
children 934cf92a1c45
comparison
equal deleted inserted replaced
210:7e490a8efe8a 211:78d1a6513393
1 /*
2 * This header file holds some miscellaneous definitions for AMR,
3 * to be used by parsing and conversion debug utilities.
4 */
5
6 #define MAX_PRM_SIZE 57 /* max. num. of params */
7 #define MAX_SERIAL_SIZE 244 /* max. num. of serial bits */
8
9 enum TXFrameType {
10 TX_SPEECH_GOOD = 0,
11 TX_SID_FIRST,
12 TX_SID_UPDATE,
13 TX_NO_DATA,
14 TX_SPEECH_DEGRADED,
15 TX_SPEECH_BAD,
16 TX_SID_BAD,
17 TX_ONSET,
18 TX_N_FRAMETYPES /* number of frame types */
19 };
20
21 enum Mode {
22 MR475 = 0,
23 MR515,
24 MR59,
25 MR67,
26 MR74,
27 MR795,
28 MR102,
29 MR122,
30 MRDTX
31 };
32
33 /* number of speech bits for all modes */
34 #define AMR_NBITS_475 95
35 #define AMR_NBITS_515 103
36 #define AMR_NBITS_59 118
37 #define AMR_NBITS_67 134
38 #define AMR_NBITS_74 148
39 #define AMR_NBITS_795 159
40 #define AMR_NBITS_102 204
41 #define AMR_NBITS_122 244
42 #define AMR_NBITS_SID 35
43
44 /* number of distinct parameters for all modes */
45 #define PRMNO_MR475 17
46 #define PRMNO_MR515 19
47 #define PRMNO_MR59 19
48 #define PRMNO_MR67 19
49 #define PRMNO_MR74 19
50 #define PRMNO_MR795 23
51 #define PRMNO_MR102 39
52 #define PRMNO_MR122 57
53 #define PRMNO_MRDTX 5
54
55 /* ETSI/3GPP test sequence file format */
56 #define COD_FORMAT_NWORDS 250