FreeCalypso > hg > gsm-codec-lib
comparison libgsmefr/autocorr.c @ 55:92dc7f0082a3
libgsmefr: autocorr.c compiles
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 25 Nov 2022 16:38:54 +0000 |
parents | 49dd1ac8e75b |
children |
comparison
equal
deleted
inserted
replaced
54:7b11cbe99a0e | 55:92dc7f0082a3 |
---|---|
11 * The autocorrelations are expressed in normalized double precision | 11 * The autocorrelations are expressed in normalized double precision |
12 * format. | 12 * format. |
13 * | 13 * |
14 *************************************************************************/ | 14 *************************************************************************/ |
15 | 15 |
16 #include "gsm_efr.h" | |
16 #include "typedef.h" | 17 #include "typedef.h" |
18 #include "namespace.h" | |
17 #include "basic_op.h" | 19 #include "basic_op.h" |
18 #include "oper_32b.h" | 20 #include "oper_32b.h" |
19 #include "count.h" | 21 #include "no_count.h" |
20 #include "cnst.h" | 22 #include "cnst.h" |
23 #include "sig_proc.h" | |
21 | 24 |
22 Word16 Autocorr ( | 25 Word16 Autocorr ( |
23 Word16 x[], /* (i) : Input signal */ | 26 Word16 x[], /* (i) : Input signal */ |
24 Word16 m, /* (i) : LPC order */ | 27 Word16 m, /* (i) : LPC order */ |
25 Word16 r_h[], /* (o) : Autocorrelations (msb) */ | 28 Word16 r_h[], /* (o) : Autocorrelations (msb) */ |
26 Word16 r_l[], /* (o) : Autocorrelations (lsb) */ | 29 Word16 r_l[], /* (o) : Autocorrelations (lsb) */ |
27 Word16 wind[] /* (i) : window for LPC analysis */ | 30 const Word16 wind[] /* (i) : window for LPC analysis */ |
28 ) | 31 ) |
29 { | 32 { |
30 Word16 i, j, norm; | 33 Word16 i, j, norm; |
31 Word16 y[L_WINDOW]; | 34 Word16 y[L_WINDOW]; |
32 Word32 sum; | 35 Word32 sum; |