2 /******************************************************************
4 iLBC Speech Coder ANSI-C Source Code
8 Copyright (C) The Internet Society (2004).
11 ******************************************************************/
13 #include "constants.h"
16 /*----------------------------------------------------------------*
17 * Input 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
= hpi_zero_coefsTbl
[0] * (*pi
);
35 *po
+= hpi_zero_coefsTbl
[1] * mem
[0];
36 *po
+= hpi_zero_coefsTbl
[2] * mem
[1];
50 for (i
=0; i
<len
; i
++) {
51 *po
-= hpi_pole_coefsTbl
[1] * mem
[2];
52 *po
-= hpi_pole_coefsTbl
[2] * mem
[3];