Hi Bill,

I noticed that you were looking for something faster than WinRGBtoIndex.
Did you find anything?  

I am trying to convert a 24-bit image to the appropriate depth for the given
device.  For all other bit-depths (2,4,16) it is really fast.  It is slow,
however, for 8-bit since I am calling WinRGBtoIndex for every pixel.

Unfortunately, I won't be able to use the inv_cmap file referred to below.

Any help would be greatly appreciated.

Thank you,
April 




> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:bounce-palm-dev-
> [EMAIL PROTECTED] On Behalf Of Sebastian Voges
> Sent: Friday, May 02, 2003 10:10 AM
> To: Palm Developer Forum
> Subject: Re: WinRGBtoIndex
> 
> 
> >
> > At 12:05 PM -0700 4/29/03, Bill Andreozzi wrote:
> >>Is there anything faster than this for converting an RGB value to
> >>the closest color entry in the default palette? (we know the palette
> >>ahead of time) (Currently We're calling this for pixel to pixel, I'm
> >>assuming there's got to be something faster..)
> >
> > Try searching the web for "inverse color map".  However, the only
> > public implementation I know about (from Graphics Gems II):
> >
> > <http://www.acm.org/pubs/tog/GraphicsGems/gemsii/inv_cmap/inv_cmap.c>
> >
> > is GPL'd.  Hopefully you can find another if that doesn't work for you.
> >
> 
> I was always wondering how good the result would be if you reduce the
> input color to 16bit so the resulting inverse colormap table would be only
> 64K.
> 
> Would the differences in the qualitity of the resulting picture still be
> acceptable? did anyone try that out?
> 
> just wondering...
> 
> 
> sebastian
> 
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/support/forums/



--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to