[flac-dev] in place decoding
o.tristan at uvi.net
Mon Oct 21 10:03:27 PDT 2013
Le 21/10/2013 17:09, Olivier Tristan a écrit :
> Hi Guys,
> I'm wondering if it's possible to provide flac with the decoding buffer
> I'm currently doing a block aligned decoding and I'm copying all data
> given by flac in the write callback to my own buffer but would like to
> skip that step.
> If not possible, would you at least consider allocating a memory aligned
> buffer ?
> So far the pointer given by the write pointer containing frames are not
> 16 or 32 bytes aligned disallowing the usage of aligned SSE loading. At
> least on the Windows platform.
> Maybe are the pointers given by the write callback valid until any other
> call ?
So far from my test, I can indeed keep the pointer as it seems valid
between two decoder write callback.
In that case, it would be great if in stream_decoder.c, you use a 16
bytes alignment instead of 4 so the buffer given can use SSE aligned
More information about the flac-dev