diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2007-08-10 04:44:43 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2007-08-10 04:44:43 +0000 |
commit | 11131b7a44ce855d89959c7af1b5773da1630ad7 (patch) | |
tree | 7ab8664a9d6a958d9b506a55e7c8aa33640acba0 /gst/filter/gstlpwsinc.h | |
parent | 982bf23b353cd825e249d8fc13420f88e9cf4cd4 (diff) | |
download | gst-plugins-bad-11131b7a44ce855d89959c7af1b5773da1630ad7.tar.gz gst-plugins-bad-11131b7a44ce855d89959c7af1b5773da1630ad7.tar.bz2 gst-plugins-bad-11131b7a44ce855d89959c7af1b5773da1630ad7.zip |
gst/filter/gstlpwsinc.*: Specify the actual filter length instead of a weird 2N+1. Setting the property will round to...
Original commit message from CVS:
* gst/filter/gstlpwsinc.c: (gst_lpwsinc_class_init),
(gst_lpwsinc_init), (process_32), (process_64),
(lpwsinc_build_kernel), (lpwsinc_set_property),
(lpwsinc_get_property):
* gst/filter/gstlpwsinc.h:
Specify the actual filter length instead of a weird
2N+1. Setting the property will round to the next odd number.
Also remove now obsolete FIXMEs.
Diffstat (limited to 'gst/filter/gstlpwsinc.h')
-rw-r--r-- | gst/filter/gstlpwsinc.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gst/filter/gstlpwsinc.h b/gst/filter/gstlpwsinc.h index d9838bd2..599bef84 100644 --- a/gst/filter/gstlpwsinc.h +++ b/gst/filter/gstlpwsinc.h @@ -25,10 +25,6 @@ * chapter 16 * available at http://www.dspguide.com/ * - * FIXME: - * - this filter is totally unoptimized ! - * - we do not destroy the allocated memory for filters and residue - * - this might be improved upon with bytestream */ #ifndef __GST_LPWSINC_H__ @@ -69,8 +65,7 @@ struct _GstLPWSinc { gint mode; gint window; gdouble frequency; - gint wing_size; /* length of a "wing" of the filter; - actual length is 2 * wing_size + 1 */ + gint kernel_length; /* length of the filter kernel */ gdouble *residue; /* buffer for left-over samples from previous buffer */ gdouble *kernel; /* filter kernel */ |