I’ve been doing some benchmarking/profiling on the application I’m working on and have found much of the startup time is spent in gluScaleImage/gluBuild2DMipmaps. This wasn’t a complete surprise as I new these functions had a reputation for being slow. So I’ve got a new routine to build the mipmaps myself, and have been working on a scaling the image.
So the question is does anyone have or know of fast scaling code? I figure others have run into this themselves. I’m primarily looking for scaling code that would scale RGB(24) and RGBA(32) images. Also could Iprobably optimize it for the much used case of reducing images by factor of 2. Any ideas? Anyone know of any sample/source code out there?
Thanks for any help and input