[gst-devel] Possible to allocate all the buffers at 16-byte boundary?

David Schleef ds at entropywave.com
Mon Mar 15 01:52:05 CET 2010


On Fri, Mar 12, 2010 at 07:49:06PM -0800, Stefan Kost wrote:
> yiliang wrote:
> > Hi,
> >
> > Is it possible that all the buffers allocated inside gstreamer are made
> > aligned at 16-byte boundary? This is to make it easier to use SIMD
> > acceleration for some plugins.
> >
> > Thanks,
> > Yiliang
> >
> >   
> latest core git version has "--with-buffer-alignment 8,N,malloc,pagesize
> (default is 32)" as a configure option.

Note that this doesn't mean that *all* buffers are aligned.  Just that
more of them are.  So you still have to handle unaligned cases.

Yet another good reason to use Orc for SIMD code.



dave...





More information about the gstreamer-devel mailing list