comparison libtwamr/c8_31pf.h @ 323:dfd5f159574b

libtwamr: integrate c8_31pf.c
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 18 Apr 2024 19:47:13 +0000
parents
children
comparison
equal deleted inserted replaced
322:fc82b113977f 323:dfd5f159574b
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 : c8_31pf.h
11 * Purpose : Searches a 31 bit algebraic codebook containing
12 * : 8 pulses in a frame of 40 samples.
13 *
14 ********************************************************************************
15 */
16 #ifndef c8_31pf_h
17 #define c8_31pf_h "$Id $"
18
19 /*
20 ********************************************************************************
21 * INCLUDE FILES
22 ********************************************************************************
23 */
24 #include "typedef.h"
25
26 /*
27 ********************************************************************************
28 * DEFINITION OF DATA TYPES
29 ********************************************************************************
30 */
31
32 /*
33 ********************************************************************************
34 * DECLARATION OF PROTOTYPES
35 ********************************************************************************
36 */
37 void code_8i40_31bits (
38 Word16 x[], /* i : target vector */
39 Word16 cn[], /* i : residual after long term prediction */
40 Word16 h[], /* i : impulse response of weighted synthesis
41 filter */
42 Word16 cod[], /* o : algebraic (fixed) codebook excitation */
43 Word16 y[], /* o : filtered fixed codebook excitation */
44 Word16 indx[] /* o : 7 Word16, index of 8 pulses (signs+positions) */
45 );
46
47 #endif