comparison libgsmefr/enc_state.h @ 42:ba044871c9dd

libgsmefr: beginning of encoder and decoder state structures
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 25 Nov 2022 01:43:16 +0000
parents
children af4b075d0313
comparison
equal deleted inserted replaced
41:37e39cad5838 42:ba044871c9dd
1 /*
2 * In this header file we define our encoder state structure.
3 * This encoder state structure is internal to libgsmefr,
4 * NOT part of our external public interface!
5 */
6
7 struct EFR_encoder_state {
8 /* from coder.c */
9 Word16 dtx_mode;
10 /* from cod_12k2.c */
11 Word16 old_speech[L_TOTAL];
12 Word16 old_wsp[L_FRAME + PIT_MAX];
13 Word16 old_exc[L_FRAME + PIT_MAX + L_INTERPOL];
14 Word16 ai_zero[L_SUBFR + MP1];
15 Word16 hvec[L_SUBFR * 2];
16 Word16 lsp_old[M];
17 Word16 lsp_old_q[M];
18 Word16 mem_syn[M];
19 Word16 mem_w0[M];
20 Word16 mem_w[M];
21 Word16 mem_err[M + L_SUBFR];
22 /* from levinson.c */
23 Word16 old_A[M + 1];
24 /* from pre_proc.c */
25 struct preproc_state {
26 Word16 y2_hi;
27 Word16 y2_lo;
28 Word16 y1_hi;
29 Word16 y1_lo;
30 Word16 x0;
31 Word16 x1;
32 } pre_proc;
33 /* to be continued */
34 };