diff options
Diffstat (limited to 'libaf/filter.h')
-rw-r--r-- | libaf/filter.h | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/libaf/filter.h b/libaf/filter.h index 0993f86cce..fe92be8e9c 100644 --- a/libaf/filter.h +++ b/libaf/filter.h @@ -44,28 +44,27 @@ #define ODD 0x00000010 // Make filter HP // Exported functions -extern FLOAT_TYPE af_filter_fir(unsigned int n, const FLOAT_TYPE* w, const FLOAT_TYPE* x); +FLOAT_TYPE af_filter_fir(unsigned int n, const FLOAT_TYPE* w, const FLOAT_TYPE* x); -extern FLOAT_TYPE* af_filter_pfir(unsigned int n, unsigned int k, - unsigned int xi, const FLOAT_TYPE** w, - const FLOAT_TYPE** x, FLOAT_TYPE* y, - unsigned int s); +FLOAT_TYPE* af_filter_pfir(unsigned int n, unsigned int k, + unsigned int xi, const FLOAT_TYPE** w, + const FLOAT_TYPE** x, FLOAT_TYPE* y, + unsigned int s); -//extern int af_filter_updateq(unsigned int n, unsigned int xi, -// FLOAT_TYPE* xq, FLOAT_TYPE* in); -extern int af_filter_updatepq(unsigned int n, unsigned int k, unsigned int xi, - FLOAT_TYPE** xq, const FLOAT_TYPE* in, unsigned int s); +//int af_filter_updateq(unsigned int n, unsigned int xi, +// FLOAT_TYPE* xq, FLOAT_TYPE* in); +int af_filter_updatepq(unsigned int n, unsigned int k, unsigned int xi, + FLOAT_TYPE** xq, const FLOAT_TYPE* in, unsigned int s); -extern int af_filter_design_fir(unsigned int n, FLOAT_TYPE* w, const FLOAT_TYPE* fc, - unsigned int flags, FLOAT_TYPE opt); +int af_filter_design_fir(unsigned int n, FLOAT_TYPE* w, const FLOAT_TYPE* fc, + unsigned int flags, FLOAT_TYPE opt); -extern int af_filter_design_pfir(unsigned int n, unsigned int k, const FLOAT_TYPE* w, - FLOAT_TYPE** pw, FLOAT_TYPE g, - unsigned int flags); +int af_filter_design_pfir(unsigned int n, unsigned int k, const FLOAT_TYPE* w, + FLOAT_TYPE** pw, FLOAT_TYPE g, unsigned int flags); -extern int af_filter_szxform(const FLOAT_TYPE* a, const FLOAT_TYPE* b, FLOAT_TYPE Q, - FLOAT_TYPE fc, FLOAT_TYPE fs, FLOAT_TYPE *k, - FLOAT_TYPE *coef); +int af_filter_szxform(const FLOAT_TYPE* a, const FLOAT_TYPE* b, FLOAT_TYPE Q, + FLOAT_TYPE fc, FLOAT_TYPE fs, FLOAT_TYPE *k, + FLOAT_TYPE *coef); /* Add new data to circular queue designed to be used with a FIR filter. xq is the circular queue, in pointing at the new sample, xi |