[gst-cvs] gst-plugins-bad: winks: performance improvements

Ole Andre Vadla Ravnaas oleavr at kemper.freedesktop.org
Thu Oct 28 08:09:56 PDT 2010


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

Author: Ole André Vadla Ravnås <oravnas at cisco.com>
Date:   Mon Sep  7 16:45:57 2009 +0200

winks: performance improvements

* Make the driver write directly into each GstBuffer to avoid memcpy().
* Don't memset() the buffer before reusing it.
* Recycle memory by keeping two spare buffers. Two because the sink
  downstream may keep a ref to the previous buffer.

Note that we align buffers on highest possible byte boundary (4096) so we
don't have to take into account what kind of alignment the driver requires.

---

 sys/winks/gstksvideodevice.c |  228 +++++++++++++++++++++++++++++-------------
 sys/winks/gstksvideodevice.h |   11 ++-
 sys/winks/gstksvideosrc.c    |   97 +++++++++++-------
 3 files changed, 225 insertions(+), 111 deletions(-)

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




More information about the Gstreamer-commits mailing list