comparison libtwamr/pre_proc.h @ 397:9b699f30e6f3

libtwamr: integrate pre_proc.c
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 06 May 2024 19:02:44 +0000
parents
children
comparison
equal deleted inserted replaced
396:38ee82480462 397:9b699f30e6f3
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 : pre_proc.h
11 * Purpose : Preprocessing of input speech.
12 *
13 ********************************************************************************
14 */
15 #ifndef pre_proc_h
16 #define pre_proc_h "$Id $"
17
18 /*
19 ********************************************************************************
20 * INCLUDE FILES
21 ********************************************************************************
22 */
23 #include "typedef.h"
24
25 /*
26 ********************************************************************************
27 * LOCAL VARIABLES AND TABLES
28 ********************************************************************************
29 */
30
31 /*
32 ********************************************************************************
33 * DEFINITION OF DATA TYPES
34 ********************************************************************************
35 */
36 typedef struct {
37 Word16 y2_hi;
38 Word16 y2_lo;
39 Word16 y1_hi;
40 Word16 y1_lo;
41 Word16 x0;
42 Word16 x1;
43 } Pre_ProcessState;
44
45 /*
46 ********************************************************************************
47 * DECLARATION OF PROTOTYPES
48 ********************************************************************************
49 */
50
51 void Pre_Process_reset (Pre_ProcessState *st);
52 /* reset of pre processing state (i.e. set state memory to zero)
53 returns 0 on success
54 */
55
56 int Pre_Process (
57 Pre_ProcessState *st,
58 Word16 signal[], /* Input/output signal */
59 Word16 lg /* Lenght of signal */
60 );
61
62 #endif