FreeCalypso > hg > gsm-codec-lib
comparison libtwamr/int_defs.h @ 252:57b4053559ff
libtwamr: beginning of project
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Fri, 05 Apr 2024 01:02:23 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 251:946849291027 | 252:57b4053559ff |
|---|---|
| 1 /* | |
| 2 * This header file is internal to libtwamr (not public API); | |
| 3 * it contains internal definitions for aspects of the AMR codec | |
| 4 * that don't need to be in the external API. | |
| 5 */ | |
| 6 | |
| 7 #ifndef int_defs_h | |
| 8 #define int_defs_h | |
| 9 | |
| 10 /* number of speech bits for all modes */ | |
| 11 #define AMR_NBITS_475 95 | |
| 12 #define AMR_NBITS_515 103 | |
| 13 #define AMR_NBITS_59 118 | |
| 14 #define AMR_NBITS_67 134 | |
| 15 #define AMR_NBITS_74 148 | |
| 16 #define AMR_NBITS_795 159 | |
| 17 #define AMR_NBITS_102 204 | |
| 18 #define AMR_NBITS_122 244 | |
| 19 #define AMR_NBITS_SID 35 | |
| 20 | |
| 21 /* number of distinct parameters for all modes */ | |
| 22 #define PRMNO_MR475 17 | |
| 23 #define PRMNO_MR515 19 | |
| 24 #define PRMNO_MR59 19 | |
| 25 #define PRMNO_MR67 19 | |
| 26 #define PRMNO_MR74 19 | |
| 27 #define PRMNO_MR795 23 | |
| 28 #define PRMNO_MR102 39 | |
| 29 #define PRMNO_MR122 57 | |
| 30 #define PRMNO_MRDTX 5 | |
| 31 | |
| 32 /* number of parameters up to first subframe (for DHF detection) */ | |
| 33 #define PRMNOFSF_MR475 7 | |
| 34 #define PRMNOFSF_MR515 7 | |
| 35 #define PRMNOFSF_MR59 7 | |
| 36 #define PRMNOFSF_MR67 7 | |
| 37 #define PRMNOFSF_MR74 7 | |
| 38 #define PRMNOFSF_MR795 8 | |
| 39 #define PRMNOFSF_MR102 12 | |
| 40 #define PRMNOFSF_MR122 18 | |
| 41 | |
| 42 #endif /* include guard */ |
