[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
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(-)
More information about the Gstreamer-commits