summaryrefslogtreecommitdiffstats
path: root/gst/filter/gstbpwsinc.h
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2007-08-16 19:22:48 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2007-08-16 19:22:48 +0000
commite221638fdd642bdf8b4a86365d8a873e89ca9e46 (patch)
treea9a8aeaf955e416d5b38c032db00d0b3ef0ee2d4 /gst/filter/gstbpwsinc.h
parent1df9f40304a2b03667dd88fe3b41d75204986335 (diff)
downloadgst-plugins-bad-e221638fdd642bdf8b4a86365d8a873e89ca9e46.tar.gz
gst-plugins-bad-e221638fdd642bdf8b4a86365d8a873e89ca9e46.tar.bz2
gst-plugins-bad-e221638fdd642bdf8b4a86365d8a873e89ca9e46.zip
gst/filter/gstbpwsinc.*: Implement latency query and only forward those samples downstream that actually contain the ...
Original commit message from CVS: * gst/filter/gstbpwsinc.c: (gst_bpwsinc_class_init), (gst_bpwsinc_init), (process_32), (process_64), (bpwsinc_build_kernel), (bpwsinc_push_residue), (bpwsinc_transform), (bpwsinc_start), (bpwsinc_query), (bpwsinc_query_type), (bpwsinc_event), (bpwsinc_set_property): * gst/filter/gstbpwsinc.h: Implement latency query and only forward those samples downstream that actually contain the data we want, i.e. drop kernel_length/2 in the beginning and append kernel_length/2 (created by convolving the filter kernel with zeroes) to the end. * tests/check/elements/bpwsinc.c: (GST_START_TEST): Adjust the unit test for this slightly changed behaviour. * gst/filter/gstlpwsinc.c: (lpwsinc_build_kernel): Reset residue length only when actually creating a residue.
Diffstat (limited to 'gst/filter/gstbpwsinc.h')
-rw-r--r--gst/filter/gstbpwsinc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/filter/gstbpwsinc.h b/gst/filter/gstbpwsinc.h
index 7d9c06ba..d790d040 100644
--- a/gst/filter/gstbpwsinc.h
+++ b/gst/filter/gstbpwsinc.h
@@ -71,6 +71,10 @@ struct _GstBPWSinc {
gdouble *residue; /* buffer for left-over samples from previous buffer */
gdouble *kernel;
gboolean have_kernel;
+ gint residue_length;
+ guint64 latency;
+ GstClockTime next_ts;
+ guint64 next_off;
};
struct _GstBPWSincClass {