00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __CS_QUANTIZE_H__
00021 #define __CS_QUANTIZE_H__
00022
00023 #include "csgfx/rgbpixel.h"
00024
00049 extern void csQuantizeRGB (csRGBpixel *image, int pixels, int pixperline,
00050 UByte *&outimage, csRGBpixel *&outpalette, int &maxcolors, bool dither);
00051
00109
00110 extern void csQuantizeBegin ();
00112 extern void csQuantizeEnd ();
00114 extern void csQuantizeCount (csRGBpixel *image, int pixels,
00115 csRGBpixel *transp = NULL);
00117 extern void csQuantizeBias (csRGBpixel *colors, int count, int weight);
00119 extern void csQuantizePalette (csRGBpixel *&outpalette, int &maxcolors,
00120 csRGBpixel *transp = NULL);
00122 extern void csQuantizeRemap (csRGBpixel *image, int pixels,
00123 UByte *&outimage, csRGBpixel *transp = NULL);
00125 extern void csQuantizeRemapDither (csRGBpixel *image, int pixels, int pixperline,
00126 csRGBpixel *palette, int colors, UByte *&outimage, csRGBpixel *transp = NULL);
00127
00128 #endif // __CS_QUANTIZE_H__