[patch] - bbsplash applet
Ralf Friedl
Ralf.Friedl at online.de
Tue Mar 4 07:15:14 PST 2008
Paul Fox wrote:
> 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).
>
The binary PPM format as almost as raw as it can get, while keeping
information about the file size.
The conversion of binary PPM to raw rgb can normally be done with "tail
-n +4", although a program "ppmtorgb3" is also available for files with
unusual line breaks or bit depths.
Regards
Ralf Friedl
More information about the busybox
mailing list