comparison libtwamr/d_gain_p.h @ 340:e18452a4fbac

libtwamr: integrate d_gain_p.c
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 18 Apr 2024 23:45:25 +0000
parents
children
comparison
equal deleted inserted replaced
339:a723d9f9f697 340:e18452a4fbac
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 : d_gain_p.h
11 * Purpose : Decodes the pitch gain using the received index.
12 *
13 ********************************************************************************
14 */
15 #ifndef d_gain_p_h
16 #define d_gain_p_h "$Id $"
17
18 /*
19 ********************************************************************************
20 * INCLUDE FILES
21 ********************************************************************************
22 */
23 #include "tw_amr.h"
24 #include "typedef.h"
25
26 /*
27 **************************************************************************
28 *
29 * Function : d_gain_pitch
30 * Purpose : Decodes the pitch gain using the received index.
31 * Description : In case of no frame erasure, the gain is obtained
32 * from the quantization table at the given index;
33 * otherwise, a downscaled past gain is used.
34 * Returns : Quantized pitch gain
35 *
36 **************************************************************************
37 */
38 Word16 d_gain_pitch ( /* return value: gain (Q14) */
39 enum Mode mode, /* i : AMR mode */
40 Word16 index /* i : index of quantization */
41 );
42
43 #endif