[patch] - bbsplash applet

Paul Fox pgf at brightstareng.com
Tue Mar 4 06:54:57 PST 2008


 > About the slow drawing, probably the ppm format is not exactly the most
 > suitable because it's not compressed and so too big.
 > In the future I would like to manage: 
 > -- other images formats

no -- there is no reason for the box to have to interpret image
formats at boot time, and you shouldn't force busybox bloat this
way.

you should replace ppm with just one image format -- a raw binary
format that exactly matches the framebuffer format.

your code that loads the fb should move into a separate utility
that creates such a file.  then the raw splash images can be
generated offline.  and your boot-time code could perhaps be
reduced to "dd <file >/dev/fb0".

the code to generate the raw images can be in busybox, if you
like, but it should be possible to build busybox with bbsplash,
and without bbsplash_image_prepare, or whatever you call the raw
file converter.  there may even already be a pnm utility to
convert pnm images to raw rgb data, though i don't think there
was, last time i looked -- i had to write my own pnmto565.c (which
looked much like your drawimage() routine).

paul
=---------------------
 paul fox, pgf at brightstareng.com


More information about the busybox mailing list