comparison libtwamr/dec_gain.h @ 356:5ccfe176bae1

libtwamr: integrate dec_gain.c
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 05 May 2024 22:24:42 +0000
parents
children
comparison
equal deleted inserted replaced
355:9beb01439a90 356:5ccfe176bae1
1 /*
2 ********************************************************************************
3 *
4 * GSM AMR-NB speech codec R98 Version 7.6.0 December 12, 2001
5 * R99 Version 3.3.0
6 * REL-4 Version 4.1.0
7 *
8 ********************************************************************************
9 *
10 * File : dec_gain.h
11 * Purpose : Decode the pitch and codebook gains
12 *
13 ********************************************************************************
14 */
15 #ifndef dec_gain_h
16 #define dec_gain_h "$Id $"
17
18 /*
19 ********************************************************************************
20 * INCLUDE FILES
21 ********************************************************************************
22 */
23 #include "tw_amr.h"
24 #include "typedef.h"
25 #include "gc_pred.h"
26
27 /*
28 ********************************************************************************
29 * DECLARATION OF PROTOTYPES
30 ********************************************************************************
31 */
32
33 /*************************************************************************
34 *
35 * FUNCTION: Dec_gain()
36 *
37 * PURPOSE: Decode the pitch and codebook gains
38 *
39 ************************************************************************/
40 void Dec_gain(
41 gc_predState *pred_state, /* i/o: MA predictor state */
42 enum Mode mode, /* i : AMR mode */
43 Word16 index, /* i : index of quantization. */
44 Word16 code[], /* i : Innovative vector. */
45 Word16 evenSubfr, /* i : Flag for even subframes */
46 Word16 * gain_pit, /* o : Pitch gain. */
47 Word16 * gain_cod /* o : Code gain. */
48 );
49
50 #endif