comparison libtwamr/cor_h.h @ 315:5401aaf7acb0

libtwamr: integrate cor_h.c
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 18 Apr 2024 17:39:10 +0000
parents
children
comparison
equal deleted inserted replaced
314:15c354f75110 315:5401aaf7acb0
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 : cor_h.h
11 * Purpose : correlation functions for codebook search
12 *
13 *****************************************************************************
14 */
15 /*
16 *****************************************************************************
17 * MODULE INCLUDE FILE AND VERSION ID
18 *****************************************************************************
19 */
20 #ifndef cor_h_h
21 #define cor_h_h "@(#)$Id $"
22 /*
23 *****************************************************************************
24 * INCLUDE FILES
25 *****************************************************************************
26 */
27 #include "typedef.h"
28 #include "cnst.h"
29
30 /*
31 *****************************************************************************
32 * DECLARATION OF PROTOTYPES
33 *****************************************************************************
34 */
35 void cor_h_x (
36 Word16 h[], /* (i) : impulse response of weighted synthesis filter */
37 Word16 x[], /* (i) : target */
38 Word16 dn[], /* (o) : correlation between target and h[] */
39 Word16 sf /* (i) : scaling factor: 2 for 12.2, 1 for 7.4 */
40 );
41
42 void cor_h_x2 (
43 Word16 h[], /* (i) : impulse response of weighted synthesis filter */
44 Word16 x[], /* (i) : target */
45 Word16 dn[], /* (o) : correlation between target and h[] */
46 Word16 sf, /* (i) : scaling factor: 2 for 12.2, 1 for 7.4 */
47 Word16 nb_track,/* (i) : the number of ACB tracks */
48 Word16 step /* (i) : step size from one pulse position to the next
49 in one track */
50 );
51
52 void cor_h (
53 Word16 h[], /* (i) : impulse response of weighted synthesis filter */
54 Word16 sign[], /* (i) : sign of d[n] */
55 Word16 rr[][L_CODE] /* (o) : matrix of autocorrelation */
56 );
57
58 #endif