Skip to contentSkip to conversation

showing a splash picture when start, seabios image for test

PATCH In review xiaxia347work 3 participants 4 messages Jul 4, 2011 – Jul 5, 2011

lore
Share & tools
lore
#0 lore raw

PATCH v5 1/1 showing a splash picture when start, seabios image for test

The patch let qemu pass a compressed data to seabios. This image
support the compressed jpg/bmp file by LZMA algorithm.

The attachment is the seabios image that help test the patch.

usage:
apply the patch for qemu.
alternate the bios.bin.
start x86 qemu with a specified splash-time and file name.

limitation in seabios:
jpeg decoder have its limitation, it only accept jpg file with
width=16*M, height=16*N.
bmp decoder only accept 24bpp file, with a resolution that a video
mode could support. Recommended is 640x480(mostly used).

2011-07-05

#1 lore raw
Quoted 4 lines

jpeg decoder have its limitation, it only accept jpg file with
width=16*M, height=16*N.
bmp decoder only accept 24bpp file, with a resolution that a video
mode could support. Recommended is 640x480(mostly used).

Doing image decoding in the bios seems particularly pointless. Why don't you just pass the bios raw image data?

If you really want to directly support fancier formats IMO it makes much more sense to do that in qemu itself. There we can use the same libraries as everyone else (libjpeg, libpng, etc) rather than badly reimpleenting them inside the bios.

Paul

#2 lore raw
Quoted 5 lines · Paul Brook
Quoted 4 lines

jpeg decoder have its limitation, it only accept jpg file with
width=16*M, height=16*N.
bmp decoder only accept 24bpp file, with a resolution that a video
mode could support. Recommended is 640x480(mostly used).

Quoted 8 lines

Doing image decoding in the bios seems particularly pointless. Why don't you just pass the bios raw image data?

If you really want to directly support fancier formats IMO it makes much more sense to do that in qemu itself. There we can use the same libraries as everyone else (libjpeg, libpng, etc) rather than badly reimpleenting them inside the bios.

I think the BMP file with 24bpp is almost the raw image data that
need just a little format adjusting in bios according to the video mode it found.
Jpeg and LZMA decoder are the old small functions that sea-bios
support, so I think user could use that format as an option.

Quoted 1 line

Paul

Signature · 5 lines
Best Regards

Wayne Xia
mail:[email protected]
tel:86-010-82450803
#3 lore raw
In reply to Paul Brook
Quoted 8 lines · Paul Brook
Quoted 4 lines

jpeg decoder have its limitation, it only accept jpg file with
width=16*M, height=16*N.
bmp decoder only accept 24bpp file, with a resolution that a video
mode could support. Recommended is 640x480(mostly used).

Doing image decoding in the bios seems particularly pointless. Why don't you just pass the bios raw image data?

Quoted 6 lines

If you really want to directly support fancier formats IMO it makes much more sense to do that in qemu itself. There we can use the same libraries as everyone else (libjpeg, libpng, etc) rather than badly reimpleenting them inside the bios.

Paul

I think the BMP file with 24bpp is almost the raw image data that
need just a little format adjusting in bios according to the video mode it found.
Jpeg and LZMA decoder are the old small functions that sea-bios
support, so I think user could use that format as an option.

Signature · 5 lines
Best Regards

Wayne Xia
mail:[email protected]
tel:86-010-82450803