comparison src/cnst.h @ 0:56410792419a

src: original EFR source from ETSI
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 03 Apr 2024 05:31:37 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:56410792419a
1 /*--------------------------------------------------------------------------*
2 * Codec constant parameters (coder, decoder, and postfilter) *
3 *---------------------------------------------------------------------------*/
4
5 #define L_TOTAL 320 /* Total size of speech buffer. */
6 #define L_WINDOW 240 /* Window size in LP analysis */
7 #define L_FRAME 160 /* Frame size */
8 #define L_FRAME_BY2 80 /* Frame size divided by 2 */
9 #define L_SUBFR 40 /* Subframe size */
10 #define M 10 /* Order of LP filter */
11 #define MP1 (M+1) /* Order of LP filter + 1 */
12 #define AZ_SIZE (4*M+4) /* Size of array of LP filters in 4 subfr.s */
13 #define PIT_MIN 18 /* Minimum pitch lag */
14 #define PIT_MAX 143 /* Maximum pitch lag */
15 #define L_INTERPOL (10+1) /* Length of filter for interpolation */
16
17 #define PRM_SIZE 57 /* Size of vector of analysis parameters */
18 #define SERIAL_SIZE (244+1) /* bits per frame + bfi */
19
20 #define MU 26214 /* Factor for tilt compensation filter 0.8 */
21 #define AGC_FAC 29491 /* Factor for automatic gain control 0.9 */