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
> address.
>
> 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.
>
> Or
>
> Maybe are the pointers given by the write callback valid until any other
> call ?
>
> Thanks,

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 
loading.

Thanks,

-- 
Olivier Tristan
_______________________________________________
flac-dev mailing list
flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev

Reply via email to