diff options
author | anders <anders@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-07 10:33:30 +0000 |
---|---|---|
committer | anders <anders@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-07 10:33:30 +0000 |
commit | 4477f1232a19ef0ed1c3944b39a2f0aaca45fddc (patch) | |
tree | dbc25d1ac2429e821279cdd916eb356f639b845f /libaf/filter.h | |
parent | 850c82cf304928017b5c70f909fb6c226b997572 (diff) | |
download | mpv-4477f1232a19ef0ed1c3944b39a2f0aaca45fddc.tar.bz2 mpv-4477f1232a19ef0ed1c3944b39a2f0aaca45fddc.tar.xz |
Adding sub-woofer filter, use this filter to add a sub channel to the audio stream
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8833 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libaf/filter.h')
-rw-r--r-- | libaf/filter.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libaf/filter.h b/libaf/filter.h index f36bc0bf2f..307760d856 100644 --- a/libaf/filter.h +++ b/libaf/filter.h @@ -45,14 +45,18 @@ // Exported functions extern _ftype_t fir(unsigned int n, _ftype_t* w, _ftype_t* x); + extern _ftype_t* pfir(unsigned int n, unsigned int k, unsigned int xi, _ftype_t** w, _ftype_t** x, _ftype_t* y, unsigned int s); extern int updateq(unsigned int n, unsigned int xi, _ftype_t* xq, _ftype_t* in); extern int updatepq(unsigned int n, unsigned int k, unsigned int xi, _ftype_t** xq, _ftype_t* in, unsigned int s); extern int design_fir(unsigned int n, _ftype_t* w, _ftype_t* fc, unsigned int flags, _ftype_t opt); + extern int design_pfir(unsigned int n, unsigned int k, _ftype_t* w, _ftype_t** pw, _ftype_t g, unsigned int flags); +extern int szxform(_ftype_t* a, _ftype_t* b, _ftype_t Q, _ftype_t fc, _ftype_t fs, _ftype_t *k, _ftype_t *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 current index for xq and n the length of the filter. xq must be n*2 |