colordata.h revision 0
f30ee734ac0ee8b792c77ab3bc42494fcddb1508hajma/*
f30ee734ac0ee8b792c77ab3bc42494fcddb1508hajma * Copyright 1998-2001 Sun Microsystems, Inc. All Rights Reserved.
a585e5e48b946aa1de0f69a97853291aa519b8c7ludo * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
f30ee734ac0ee8b792c77ab3bc42494fcddb1508hajma *
074f2520bc04a7a93b4123bc58fb40055c9174d2hajma * This code is free software; you can redistribute it and/or modify it
074f2520bc04a7a93b4123bc58fb40055c9174d2hajma * under the terms of the GNU General Public License version 2 only, as
f30ee734ac0ee8b792c77ab3bc42494fcddb1508hajma * published by the Free Software Foundation. Sun designates this
a585e5e48b946aa1de0f69a97853291aa519b8c7ludo * particular file as subject to the "Classpath" exception as provided
074f2520bc04a7a93b4123bc58fb40055c9174d2hajma * by Sun in the LICENSE file that accompanied this code.
074f2520bc04a7a93b4123bc58fb40055c9174d2hajma *
074f2520bc04a7a93b4123bc58fb40055c9174d2hajma * This code is distributed in the hope that it will be useful, but WITHOUT
074f2520bc04a7a93b4123bc58fb40055c9174d2hajma * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
074f2520bc04a7a93b4123bc58fb40055c9174d2hajma * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
074f2520bc04a7a93b4123bc58fb40055c9174d2hajma * version 2 for more details (a copy is included in the LICENSE file that
074f2520bc04a7a93b4123bc58fb40055c9174d2hajma * accompanied this code).
f30ee734ac0ee8b792c77ab3bc42494fcddb1508hajma *
3e8ebc69e18e02f0935b37e8f5837aab18557f50ludovicp * You should have received a copy of the GNU General Public License version
074f2520bc04a7a93b4123bc58fb40055c9174d2hajma * 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
#ifndef _COLORDATA_H_
#define _COLORDATA_H_
#include "img_globals.h"
typedef struct ColorEntry {
unsigned char r, g, b;
unsigned char flags;
} ColorEntry;
typedef struct _ColorData {
ColorEntry *awt_Colors;
int awt_numICMcolors;
int *awt_icmLUT;
unsigned char *awt_icmLUT2Colors;
unsigned char *img_grays;
unsigned char *img_clr_tbl;
char* img_oda_red;
char* img_oda_green;
char* img_oda_blue;
int *pGrayInverseLutData;
int screendata;
} ColorData;
#define CANFREE(pData) (pData && (pData->screendata == 0))
#endif /* _COLORDATA_H_ */