[Vorbis] Can pcm output be interleaved?
Balatoni Denes
dbalatoni at programozo.hu
Thu Jun 14 14:44:51 PDT 2007
Hi!
Thursday 14 June 2007 17:10-kor Ralph Giles ezt írta:
> On Thu, Jun 14, 2007 at 11:56:20AM +0100, Patrick Byrne wrote:
> > Is there a good reason why the pcm output from vorbis decode is split
> > into separate channels, rather than interleaved?
>
> That's the way it's stored in the compressed stream, so if you happen to
> want non-interleaved buffers, you can avoid a redundant interleave.
resisdue is actually interleaved in a normal stereo vorbis file, it's just
deinterleaved during decoding. I am guessing the reason for not interleaving
by default - although it would be faster and more memory efficient - is that
it would lead to more complex code (always doing every operation, like imdct,
on interleaved vectors).
>
> -r
bye
Denes
--
---
What kills me, doesn't make me stronger.
More information about the Vorbis
mailing list