Re: [AD] 16-bit uncompressed windows bitmaps

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2005-12-23, Matthew Leverton <meffer@xxxxxxxxxx> wrote:
> Is there any reason Allegro doesn't support 16-bit uncompressed
> Windows bitmaps? Someone on gamedev posted such an image that wouldn't
> load. They seemingly are stored 555, with one bit unused. (0xFF7F =
> 100% white)

I think this is right, see [1].

> I wrote a function (read_16bit_line) to add support, but before I
> cleaned it up and submitted a patch I wanted to make sure there was no
> reason why Allegro doesn't support them other than the fact that they
> aren't very common.

It's probably one of the later extensions to the BMP format.

It would be nice to confirm or fix the _compressed_ bitmap loader, too.
There seems to be two types of "16-bit" compressed bitmaps, 5-6-5 and
5-5-5, but at a brief glance we don't account for that.

[1] http://atlc.sourceforge.net/bmp.html

Peter





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/