comparison libtwamr/calc_cor.h @ 325:67c31802392b

libtwamr: integrate calc_cor.c
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 18 Apr 2024 20:12:48 +0000
parents
children
comparison
equal deleted inserted replaced
324:dc3b7caa59c4 325:67c31802392b
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 : calc_cor.h
11 * Purpose : Calculate all correlations for prior the OL LTP
12 *
13 ********************************************************************************
14 */
15 #ifndef calc_cor_h
16 #define calc_cor_h "$Id $"
17
18 /*
19 ********************************************************************************
20 * INCLUDE FILES
21 ********************************************************************************
22 */
23 #include "typedef.h"
24
25 /*
26 ********************************************************************************
27 * DECLARATION OF PROTOTYPES
28 ********************************************************************************
29 */
30 /*************************************************************************
31 *
32 * FUNCTION: comp_corr
33 *
34 * PURPOSE: Calculate all correlations of scal_sig[] in a given delay
35 * range.
36 *
37 * DESCRIPTION:
38 * The correlation is given by
39 * cor[t] = <scal_sig[n], scal_sig[n-t]>, t=lag_min,...,lag_max
40 * The functions outputs all correlations in the given range
41 *
42 *************************************************************************/
43 void comp_corr (Word16 scal_sig[], /* i : scaled signal. */
44 Word16 L_frame, /* i : length of frame to compute pitch */
45 Word16 lag_max, /* i : maximum lag */
46 Word16 lag_min, /* i : minimum lag */
47 Word32 corr[] /* o : correlation of selected lag */
48 );
49 #endif