FreeCalypso > hg > gsm-codec-lib
comparison libgsmefr/pitch_f6.c @ 81:e0e53bfe1a8a
libgsmefr: pitch_f6.c compiles
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 26 Nov 2022 07:06:02 +0000 |
parents | 49dd1ac8e75b |
children | d714168fb6dc |
comparison
equal
deleted
inserted
replaced
80:92479d9a8e38 | 81:e0e53bfe1a8a |
---|---|
12 * with step 1/6 around the chosen delay. | 12 * with step 1/6 around the chosen delay. |
13 * - The fraction which gives the maximum interpolated value is chosen. | 13 * - The fraction which gives the maximum interpolated value is chosen. |
14 * | 14 * |
15 *************************************************************************/ | 15 *************************************************************************/ |
16 | 16 |
17 #include "gsm_efr.h" | |
17 #include "typedef.h" | 18 #include "typedef.h" |
19 #include "namespace.h" | |
18 #include "basic_op.h" | 20 #include "basic_op.h" |
19 #include "oper_32b.h" | 21 #include "oper_32b.h" |
20 #include "count.h" | 22 #include "no_count.h" |
21 #include "sig_proc.h" | 23 #include "sig_proc.h" |
22 #include "codec.h" | 24 #include "codec.h" |
23 | 25 |
24 /* L_inter = Length for fractional interpolation = nb.coeff/2 */ | 26 /* L_inter = Length for fractional interpolation = nb.coeff/2 */ |
25 | 27 |
26 #define L_inter 4 | 28 #define L_inter 4 |
27 | 29 |
28 /* Local functions */ | 30 /* Local functions */ |
29 | 31 |
30 void Norm_Corr (Word16 exc[], Word16 xn[], Word16 h[], Word16 L_subfr, | 32 static void Norm_Corr (Word16 exc[], Word16 xn[], Word16 h[], Word16 L_subfr, |
31 Word16 t_min, Word16 t_max, Word16 corr_norm[]); | 33 Word16 t_min, Word16 t_max, Word16 corr_norm[]); |
32 | 34 |
33 Word16 Pitch_fr6 ( /* (o) : pitch period. */ | 35 Word16 Pitch_fr6 ( /* (o) : pitch period. */ |
34 Word16 exc[], /* (i) : excitation buffer */ | 36 Word16 exc[], /* (i) : excitation buffer */ |
35 Word16 xn[], /* (i) : target vector */ | 37 Word16 xn[], /* (i) : target vector */ |
36 Word16 h[], /* (i) : impulse response of synthesis and | 38 Word16 h[], /* (i) : impulse response of synthesis and |
128 * where x[] is the target vector and y_k[] is the filtered past | 130 * where x[] is the target vector and y_k[] is the filtered past |
129 * excitation at delay k. | 131 * excitation at delay k. |
130 * | 132 * |
131 *************************************************************************/ | 133 *************************************************************************/ |
132 | 134 |
133 void | 135 static void |
134 Norm_Corr (Word16 exc[], Word16 xn[], Word16 h[], Word16 L_subfr, | 136 Norm_Corr (Word16 exc[], Word16 xn[], Word16 h[], Word16 L_subfr, |
135 Word16 t_min, Word16 t_max, Word16 corr_norm[]) | 137 Word16 t_min, Word16 t_max, Word16 corr_norm[]) |
136 { | 138 { |
137 Word16 i, j, k; | 139 Word16 i, j, k; |
138 Word16 corr_h, corr_l, norm_h, norm_l; | 140 Word16 corr_h, corr_l, norm_h, norm_l; |