Mathias Agopian wrote:
[...]
> The notion of "high" byte and "low" byte in a 24-bits frame buffer is
> a little odd. Since these are not 32 bits or 16 bits numbers, I'm not
> sure what you mean.

People typically use the same order that the equivalent 32-bit format
would be. So the first byte, red, is the LSB and the last byte, blue, is
the MSB.

> I stand by what I said, android supports RGB, in that order. One byte
> of red, one byte of green, followed by one byte of blue. R,G,B... btw,
> this order happens to be OpenGL's GL_RGB internal format for textures.

Just to make life more complicated, if you look at a GL_RGB pixel in a
word, what you usually see is:

<- MSB                    LSB ->
00000000bbbbbbbbggggggggrrrrrrrr

...which causes a lot of people to refer to this as BGR. Just to make
life even *more* confusing, the same school of thought will happily
refer to the exact same format as RGB if they're on a big-endian system.

Which is why it's always really useful to follow Mathias' lead and use
the GL_ names. They're at least well-defined!

-- 
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│
│ ⍎'⎕',∊N⍴⊂S←'←⎕←(3=T)⋎M⋏2=T←⊃+/(V⌽"⊂M),(V⊝"M),(V,⌽V)⌽"(V,V←1⎺1)⊝"⊂M)'
│ --- Conway's Game Of Life, in one line of APL

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to