00001 #ifndef GE_PALOPTIMIZE_H 00002 #define GE_PALOPTIMIZE_H 00003 00004 /****************************************************************************************/ 00005 /* PalOptimize */ 00006 /* */ 00007 /* Author: Charles Bloom */ 00008 /* Description: Palette Perfecting code */ 00009 /* */ 00010 /* The contents of this file are subject to the Genesis3D Public License */ 00011 /* Version 1.01 (the "License"); you may not use this file except in */ 00012 /* compliance with the License. You may obtain a copy of the License at */ 00013 /* http://www.genesis3d.com */ 00014 /* */ 00015 /* Software distributed under the License is distributed on an "AS IS" */ 00016 /* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See */ 00017 /* the License for the specific language governing rights and limitations */ 00018 /* under the License. */ 00019 /* */ 00020 /* The Original Code is Genesis3D, released March 25, 1999. */ 00021 /* Genesis3D Version 1.1 released November 15, 1999 */ 00022 /* Copyright (C) 1999 WildTangent, Inc. All Rights Reserved */ 00023 /* */ 00024 /****************************************************************************************/ 00025 00026 #include "basetype.h" 00027 #include "bitmap.h" 00028 00029 #ifdef __cplusplus 00030 extern "C" { 00031 #endif 00032 00033 extern void paletteOptimize(const geBitmap_Info * Info,const void * Bits, 00034 uint8 *palette,int palEntries,int maxSamples); 00035 00036 // use maxIterations == 0 or -1 for infinity 00037 00038 #ifdef __cplusplus 00039 } 00040 #endif 00041 00042 #endif
1.3.2