2 /******************************************************************
4 iLBC Speech Coder ANSI-C Source Code
8 Copyright (C) The Internet Society (2004).
11 ******************************************************************/
13 #ifndef __iLBC_FILTER_H
14 #define __iLBC_FILTER_H
17 float *InOut
, /* (i/o) on entrance InOut[-orderCoef] to
18 InOut[-1] contain the state of the
19 filter (delayed samples). InOut[0] to
20 InOut[lengthInOut-1] contain the filter
21 input, on en exit InOut[-orderCoef] to
22 InOut[-1] is unchanged and InOut[0] to
23 InOut[lengthInOut-1] contain filtered
25 float *Coef
,/* (i) filter coefficients, Coef[0] is assumed
27 int lengthInOut
,/* (i) number of input/output samples */
28 int orderCoef
/* (i) number of filter coefficients */
34 float *In
, /* (i) In[0] to In[lengthInOut-1] contain
35 filter input samples */
36 float *Coef
,/* (i) filter coefficients (Coef[0] is assumed
38 int lengthInOut
,/* (i) number of input/output samples */
39 int orderCoef
, /* (i) number of filter coefficients */
40 float *Out
/* (i/o) on entrance Out[-orderCoef] to Out[-1]
41 contain the filter state, on exit Out[0]
42 to Out[lengthInOut-1] contain filtered
47 float *In
, /* (i) In[0] to In[lengthInOut-1] contain filter
48 input samples In[-orderCoef] to In[-1]
49 contain state of all-zero section */
50 float *ZeroCoef
,/* (i) filter coefficients for all-zero
51 section (ZeroCoef[0] is assumed to
53 float *PoleCoef
,/* (i) filter coefficients for all-pole section
54 (ZeroCoef[0] is assumed to be 1.0) */
55 int lengthInOut
,/* (i) number of input/output samples */
56 int orderCoef
, /* (i) number of filter coefficients */
57 float *Out
/* (i/o) on entrance Out[-orderCoef] to Out[-1]
58 contain state of all-pole section. On
59 exit Out[0] to Out[lengthInOut-1]
60 contain filtered samples */
64 float *In
, /* (i) input samples */
65 float *Coef
, /* (i) filter coefficients */
66 int lengthIn
, /* (i) number of input samples */
67 float *state
, /* (i) filter state */
68 float *Out
/* (o) downsampled output */