[ogg-dev] OggPCM: support for little-endianness only?

Ian Malone ibmalone at gmail.com
Sun Dec 30 15:41:32 PST 2007


Ivo Emanuel Gonçalves wrote:
> List,
> 
> A recent discussion over on XiphWiki is trying to decide if OggPCM
> should support only little-endianness or the usual combo of big and
> little.
> 
> It started with the following statement by an user (Qqq):
> 
> "Portable players are usually ARM, which is usually little-endian. The
> Macintosh is now little-endian. Obviously the PC is little-endian.
> Clearly there is a winner. It's long past time to stop putting the
> bytes in an order that makes both programmers and computers do extra
> work for no good reason. Don't try to hold back the tide."
> 
> Thoughts?
> 

Really it's pretty trivial and hardly taxing on the processor either.
As far as I can tell the OggPCM standard was designed to provide a
way to wrap and describe arbitrary PCM data[1].  If you prefer to
distribute it in little endian all well and good.

Actually, if you wanted to come up with an argument for either it
would be that big endian lets you strip bytes off the end of a
sample arbitrarily.

[1] Those who actually developed it may disagree.

-- 
imalone


More information about the ogg-dev mailing list