comparison libtwamr/autocorr.h @ 253:54f6bc41ed10

libtwamr: integrate a* modules
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 05 Apr 2024 06:08:15 +0000
parents
children
comparison
equal deleted inserted replaced
252:57b4053559ff 253:54f6bc41ed10
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 : autocorr.h
11 * Purpose : Compute autocorrelations of signal with windowing
12 *
13 ********************************************************************************
14 */
15 #ifndef autocorr_h
16 #define autocorr_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 * Function : autocorr
40 * Purpose : Compute autocorrelations of signal with windowing
41 * Description : - Windowing of input speech: s'[n] = s[n] * w[n]
42 * - Autocorrelations of input speech:
43 * r[k] = sum_{i=k}^{239} s'[i]*s'[i-k] k=0,...,10
44 * The autocorrelations are expressed in normalized
45 * double precision format.
46 * Returns : Autocorrelation
47 *
48 **************************************************************************
49 */
50 Word16 Autocorr (
51 Word16 x[], /* (i) : Input signal (L_WINDOW) */
52 Word16 m, /* (i) : LPC order */
53 Word16 r_h[], /* (o) : Autocorrelations (msb) (MP1) */
54 Word16 r_l[], /* (o) : Autocorrelations (lsb) (MP1) */
55 const Word16 wind[]/* (i) : window for LPC analysis. (L_WINDOW) */
56 );
57
58 #endif