From 11131b7a44ce855d89959c7af1b5773da1630ad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 10 Aug 2007 04:44:43 +0000 Subject: 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. --- gst/filter/gstlpwsinc.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'gst/filter/gstlpwsinc.h') 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 */ -- cgit v1.2.1