Go to the documentation of this file.
12 # error "Never use <filter.h> directly; include <dsp.h> instead"
27 #define TYPE_MASK 0x000F0000
30 #define BOXCAR 0x00000001
31 #define TRIANG 0x00000002
32 #define HAMMING 0x00000004
33 #define HANNING 0x00000008
34 #define BLACKMAN 0x00000010
35 #define FLATTOP 0x00000011
36 #define KAISER 0x00000012
37 #define WINDOW_MASK 0x0000001F
40 #define FWD 0x00000001
41 #define REW 0x00000002
42 #define ODD 0x00000010
65 #define updateq(n,xi,xq,in)\
66 xq[xi]=(xq)[(xi)+(n)]=*(in);\
void triang(int n, float *w)
Definition: window.c:50
void flattop(int n, float *w)
Definition: window.c:129
int design_pfir(unsigned int n, unsigned int k, _ftype_t *w, _ftype_t **pw, _ftype_t g, unsigned int flags)
void kaiser(int n, float *w, float b)
Definition: window.c:192
int szxform(const _ftype_t *a, const _ftype_t *b, _ftype_t Q, _ftype_t fc, _ftype_t fs, _ftype_t *k, _ftype_t *coef)
#define WINDOW_MASK
Definition: filter.h:37
#define ODD
Definition: filter.h:42
void hanning(int n, float *w)
Definition: window.c:71
#define HANNING
Definition: filter.h:33
int updatepq(unsigned int n, unsigned int d, unsigned int xi, float **xq, float *in, unsigned int s)
Definition: filter.c:70
#define REW
Definition: filter.h:41
_ftype_t fir(unsigned int n, _ftype_t *w, _ftype_t *x)
#define KAISER
Definition: filter.h:36
#define updateq(n, xi, xq, in)
Definition: filter.h:65
int szxform(const float *a, const float *b, float Q, float fc, float fs, float *k, float *coef)
Definition: filter.c:417
float * pfir(unsigned int n, unsigned int d, unsigned int xi, float **w, float **x, float *y, unsigned int s)
Definition: filter.c:51
#define BS
Definition: filter.h:26
void bilinear(_ftype_t *a, _ftype_t *b, _ftype_t *k, _ftype_t fs, _ftype_t *coef)
void blackman(int n, float *w)
Definition: window.c:109
#define Q
Definition: upmix.c:45
#define BP
Definition: filter.h:25
#define HP
Definition: filter.h:24
#define _ftype_t
Definition: dsp.h:17
float fir(register unsigned int n, float *w, float *x)
Definition: filter.c:30
void prewarp(float *a, float fc, float fs)
Definition: filter.c:281
void prewarp(_ftype_t *a, _ftype_t fc, _ftype_t fs)
int design_pfir(unsigned int n, unsigned int k, float *w, float **pw, float g, unsigned int flags)
Definition: filter.c:240
int updatepq(unsigned int n, unsigned int k, unsigned int xi, _ftype_t **xq, _ftype_t *in, unsigned int s)
#define BOXCAR
Definition: filter.h:30
#define FLATTOP
Definition: filter.h:35
int design_fir(unsigned int n, _ftype_t *w, _ftype_t *fc, unsigned int flags, _ftype_t opt)
#define LP
Definition: filter.h:23
void hamming(int n, float *w)
Definition: window.c:90
#define BLACKMAN
Definition: filter.h:34
_ftype_t * pfir(unsigned int n, unsigned int k, unsigned int xi, _ftype_t **w, _ftype_t **x, _ftype_t *y, unsigned int s)
void boxcar(int n, float *w)
Definition: window.c:30
#define TRIANG
Definition: filter.h:31
void bilinear(float *a, float *b, float *k, float fs, float *coef)
Definition: filter.c:317
int design_fir(unsigned int n, float *w, float *fc, unsigned int flags, float opt)
Definition: filter.c:100
#define HAMMING
Definition: filter.h:32