comparison libtwamr/int_lsf.h @ 382:693ea1d5cf1e

libtwamr: integrate int_lsf.c
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 06 May 2024 05:45:31 +0000
parents
children
comparison
equal deleted inserted replaced
381:32bc48faec4b 382:693ea1d5cf1e
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 : int_lsf.h
11 * Purpose : Interpolates the LSFs
12 *
13 ********************************************************************************
14 */
15 #ifndef int_lsf_h
16 #define int_lsf_h "$Id $"
17
18 /*
19 ********************************************************************************
20 * INCLUDE FILES
21 ********************************************************************************
22 */
23 #include "typedef.h"
24
25 /*
26 ********************************************************************************
27 * DEFINITION OF DATA TYPES
28 ********************************************************************************
29 */
30
31 /*
32 ********************************************************************************
33 * DECLARATION OF PROTOTYPES
34 ********************************************************************************
35 */
36
37 /*
38 **************************************************************************
39 *
40 * Function : Int_lsf
41 * Purpose : Interpolates the LSFs for selected subframe
42 * Description : The 20 ms speech frame is divided into 4 subframes.
43 * The LSFs are interpolated at the 1st, 2nd and 3rd
44 * subframe and only forwarded at the 4th subframe.
45 *
46 * |------|------|------|------|
47 * sf1 sf2 sf3 sf4
48 * F0 F1
49 *
50 * sf1: 3/4 F0 + 1/4 F1 sf3: 1/4 F0 + 3/4 F1
51 * sf2: 1/2 F0 + 1/2 F1 sf4: F1
52 * Returns : void
53 *
54 **************************************************************************
55 */
56 void Int_lsf (
57 Word16 lsf_old[], /* i : LSF vector at the 4th SF of past frame */
58 Word16 lsf_new[], /* i : LSF vector at the 4th SF of present frame */
59 Word16 i_subfr, /* i : Pointer to current sf (equal to 0,40,80 or 120) */
60 Word16 lsf_out[] /* o : interpolated LSF parameters for current sf */
61 );
62
63 #endif