2 /******************************************************************
4 iLBC Speech Coder ANSI-C Source Code
12 ******************************************************************/
14 #include "constants.h"
16 /*----------------------------------------------------------------*
17 * Output high-pass filter
18 *---------------------------------------------------------------*/
21 float *In
, /* (i) vector to filter */
22 int len
,/* (i) length of vector to filter */
23 float *Out
, /* (o) the resulting filtered vector */
24 float *mem
/* (i/o) the filter state */
33 for (i
=0; i
<len
; i
++) {
34 *po
= hpo_zero_coefsTbl
[0] * (*pi
);
35 *po
+= hpo_zero_coefsTbl
[1] * mem
[0];
36 *po
+= hpo_zero_coefsTbl
[2] * mem
[1];
51 for (i
=0; i
<len
; i
++) {
52 *po
-= hpo_pole_coefsTbl
[1] * mem
[2];
53 *po
-= hpo_pole_coefsTbl
[2] * mem
[3];