gst-plugins-good: spectrum: refactor processing loop for block based operation

Stefan Kost ensonic at kemper.freedesktop.org
Thu Mar 24 15:15:32 PDT 2011


Module: gst-plugins-good
Branch: master
Commit: fb071dd89e16337b4545c6144d44813b09e4ed0d
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=fb071dd89e16337b4545c6144d44813b09e4ed0d

Author: Stefan Kost <ensonic at users.sf.net>
Date:   Fri Mar 25 00:10:56 2011 +0200

spectrum: refactor processing loop for block based operation

Previously the chain function was working sample frame based. In each cycle it
was checking if it is time to run a fft or if it is time to send a message.
Now we changed the data transform functions to work on a block of data and
calculate the max length until either {end-of-data, do-fft, do-msg}. This allows
us also to avoid the duplicated code for the single and multi-channel case (as
the transformers have the same signature now).

---

 gst/spectrum/gstspectrum.c |  540 +++++++++++++++++++++++--------------------
 gst/spectrum/gstspectrum.h |    6 +-
 2 files changed, 291 insertions(+), 255 deletions(-)

Diff:   http://cgit.freedesktop.org/gstreamer/gst-plugins-good/diff/?id=fb071dd89e16337b4545c6144d44813b09e4ed0d


More information about the gstreamer-commits mailing list