nanogui: Patch: Images with Alpha channel, 8bpp grayscale


Previous by date: 9 Jun 2005 00:45:01 +0100 Re: Pending patches/bug/requests ... list available on the FTP, Aaron J. Grier
Next by date: 9 Jun 2005 00:45:01 +0100 Re: Memory leak in GrSendClientData, Greg Haerr
Previous in thread:
Next in thread: 9 Jun 2005 00:45:01 +0100 Re: Patch: Images with Alpha channel, 8bpp grayscale, Greg Haerr

Subject: Patch: Images with Alpha channel, 8bpp grayscale
From: ####@####.####
Date: 9 Jun 2005 00:45:01 +0100
Message-Id: <8829443.1118219243955.JavaMail.ngmail@webmail-04.arcor-online.net>

 
Here it is:

This patch contains both changes, Alpha channel and greyscale (didn't want to seperate the patch again).
These are the changes in the order of appearance:
- removed the palette building for 8bpp without palette, because this indicates a greyscale now
- moved up the clipping - the calculations are not needed if the pixel won't be set later
- (the endian fix didn't change, only it's indentation)
- Always use GdFindColor instead of the switch - that may be a bit slower but it's smaller. Inlining is compilers work :-)
- Alpha stuff
- Greyscale stuff

Beware: This patch should have a good review, I didn't check many combinations of endian, bpp and graphic formats.

Concerning fltk: I'll have to ask my company first. The code is LGPL and they only need to publish it to people who also got the binaries... I'll be careful with this copyright stuff.

With regards,

Thomas


Machen Sie aus 14 Cent spielend bis zu 100 Euro!
Die neue Gaming-Area von Arcor - über 50 Onlinespiele im Angebot.
http://www.arcor.de/rd/emf-gaming-1

[Content type application/octet-stream not shown. Download]

Previous by date: 9 Jun 2005 00:45:01 +0100 Re: Pending patches/bug/requests ... list available on the FTP, Aaron J. Grier
Next by date: 9 Jun 2005 00:45:01 +0100 Re: Memory leak in GrSendClientData, Greg Haerr
Previous in thread:
Next in thread: 9 Jun 2005 00:45:01 +0100 Re: Patch: Images with Alpha channel, 8bpp grayscale, Greg Haerr


Powered by ezmlm-browse 0.20.