[haiku-development] [PATCH] Add 8-bit indexed colour support to boot splash

Hi all,

This proposed patch adds 8-bit indexed colour support to the bootloader
and kernel, so that the safemode VESA 8-bit colour modes can display
the boot splash screen.

Also included are additions to the generate_boot_screen program to
add the indexed images and colour palette information to the images.h
file.

I have also added the new output of the generate_boot_screen to the patch
as a new images.h file.

While the bootloader and kernel patches are feature complete, the
generate_boot_screen program currently does not output a nice colour
mapped indexed image, and instead outputs a greyscale image of the
logo and icons. It's enough to check the bootloader and kernel code work
correctly, but doing a 24-bit to 8-bit image conversion was way more
work that I expected, so I added in a greyscale conversion as a stop-gap
measure.

The Run Length Encoding routines in both the bootloader and
generate_boot_screen are contained in seperate 24 and 8 bit functions,
rather than one function with a parameter denoting depth, as I want to
add VGA 640x480x4 video mode support and (possibly) 4 bit RLE before simplifying
the code.

Comments and suggestions gladly accepted. :-)

David Powell.

Other related posts: