commit | cddfa50d92d45a9648fcedbc9688a1dc23d759c1 | [log] [tgz] |
---|---|---|
author | Ole André Vadla Ravnås <oravnas@cisco.com> | Mon Sep 07 16:45:57 2009 +0200 |
committer | Ole André Vadla Ravnås <oravnas@cisco.com> | Thu Oct 28 17:08:35 2010 +0200 |
tree | eced7f44e7621ca980861678d511dad4e4704182 | |
parent | f2b4d8990da2443df049987dcfb610a38a83693e [diff] |
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.