[patch] - bbsplash applet
Paul Fox
pgf at brightstareng.com
Tue Mar 4 08:24:05 PST 2008
> >
> > i don't understand how a single PPM binary format can match various
> > framebuffer depths. (and -- i may be wrong on this -- don't framebuffers
> > differ in pixel encoding, as well? RGB vs. BGR, 565 vs. 556, etc?)
> >
> PPM is normally RGB 888.
> I assumed that is also the format of the frame buffer, as these days
> every graphics adapter should have enough memory for 24 bit.
but we're talking about embedded systems. of, at least, that's
what i talk about when i talk about busybox. 16-bit colordepths
and non-standard pixel orders are fairly common, and will be, for
some time.
in fact, the code from the current bbsplash patch is obviously for
a 565 display:
+ thispix = (((short)pix[0] << 8) & 0xf800)
+ | (((short)pix[1] << 3) & 0x07e0)
+ | ((short)pix[2] >> 3);
+
paul
=---------------------
paul fox, pgf at brightstareng.com
More information about the busybox
mailing list