audioresample: sinc filter performance improvements
authorCarlos Rafael Giani <dv@pseudoterminal.org>
Sun, 7 Oct 2012 01:00:52 +0000 (03:00 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 25 Oct 2012 12:03:52 +0000 (14:03 +0200)
commitc41faa3d8ea549479d61472b034a8f26fabe355c
treef8ec9cc8b1d9d4f1bf0b71933acbea23f64deb5a
parentd8b42ae80c040c578973aeb460dc4d9b3ac6a5ed
audioresample: sinc filter performance improvements

Original idea comes from Jyri Sarha
( http://lists.xiph.org/pipermail/speex-dev/2011-September/008243.html ).
Patch was discovered by Branislav Katreniak
( branislav.katreniak@streamunlimited.com ) for StreamUnlimited
( http://streamunlimited.com/ ). Tests showed up to 5x speed increase in
the resampler in the 44.1<->48kHz case.
I added the sinc-filter-mode and sinc-filter-auto-threshold properties
and the auto mode threshold tests, and adapted the code to GStreamer 1.0.

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
gst/audioresample/gstaudioresample.c
gst/audioresample/gstaudioresample.h
gst/audioresample/resample.c
gst/audioresample/speex_resampler.h
gst/audioresample/speex_resampler_wrapper.h