Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

quantize.h

00001 /*
00002     RGB to paletted image quantization routine
00003     Copyright (C) 2000 by Andrew Zabolotny <bit@eltech.ru>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public
00016     License along with this library; if not, write to the Free
00017     Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
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   uint8 *&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   uint8 *&outimage, csRGBpixel *transp = NULL);
00125 extern void csQuantizeRemapDither (csRGBpixel *image, int pixels, int pixperline,
00126   csRGBpixel *palette, int colors, uint8 *&outimage, csRGBpixel *transp = NULL);
00127 
00128 #endif // __CS_QUANTIZE_H__

Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000