From: <ol...@ke...> - 2010-10-28 15:10:10
|
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 <or...@ci...> 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 |