FreeCalypso > hg > gsm-codec-lib
comparison libtwamr/ol_ltp.h @ 417:f17e42c63058
libtwamr: integrate ol_ltp.c
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 07 May 2024 03:21:14 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
416:48c7f8e8c9af | 417:f17e42c63058 |
---|---|
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 : ol_ltp.h | |
11 * Purpose : Compute the open loop pitch lag. | |
12 * | |
13 ******************************************************************************** | |
14 */ | |
15 #ifndef ol_ltp_h | |
16 #define ol_ltp_h "$Id $" | |
17 | |
18 /* | |
19 ******************************************************************************** | |
20 * INCLUDE FILES | |
21 ******************************************************************************** | |
22 */ | |
23 #include "tw_amr.h" | |
24 #include "typedef.h" | |
25 #include "p_ol_wgh.h" | |
26 | |
27 /* | |
28 ******************************************************************************** | |
29 * DECLARATION OF PROTOTYPES | |
30 ******************************************************************************** | |
31 */ | |
32 int ol_ltp( | |
33 pitchOLWghtState *st, /* i/o : State struct */ | |
34 vadState *vadSt, /* i/o : VAD state struct */ | |
35 enum Mode mode, /* i : coder mode */ | |
36 Word16 wsp[], /* i : signal used to compute the OL pitch, Q0 */ | |
37 /* uses signal[-pit_max] to signal[-1] */ | |
38 Word16 *T_op, /* o : open loop pitch lag, Q0 */ | |
39 Word16 old_lags[], /* i : history with old stored Cl lags */ | |
40 Word16 ol_gain_flg[], /* i : OL gain flag */ | |
41 Word16 idx, /* i : index */ | |
42 Flag dtx /* i : dtx flag; use dtx=1, do not use dtx=0 */ | |
43 ); | |
44 #endif |