/**********************************************************************
 
	Copyright (C) 2003 Hirohisa MORI <joshua@nichibun.ac.jp>
 
	This program is free software; you can redistribute it 
	and/or modify it under the terms of the GLOBALBASE 
	Library General Public License (G-LGPL) as published by 

	http://www.globalbase.org/
 
	This program is distributed in the hope that it will be 
	useful, but WITHOUT ANY WARRANTY; without even the 
	implied warranty of MERCHANTABILITY or FITNESS FOR A 
	PARTICULAR PURPOSE.

**********************************************************************/

/***********************************************************************
カラーユーティリティー
　制作：（株）ゼータ
************************************************************************/
#ifndef	_GIF_RGB_H_
#define	_GIF_RGB_H_

/*
#ifdef WIN_BMP
typedef struct{
	unsigned char b;
	unsigned char g;
	unsigned char r;
	unsigned char x;
}RGB4;
#else
*/
typedef struct{
	unsigned char r;
	unsigned char g;	
	unsigned char b;
	unsigned char x;
}RGB4;
/*
#endif
*/

typedef struct{
	RGB4 color[256];
}ColorMap;

typedef struct gif_rgb {
	unsigned char r;
	unsigned char g;
	unsigned char b;
}GIF_RGB;

int	GetColorInt(unsigned char r, unsigned char g, unsigned char b);
int	GetColorRGB(RGB4 *rgb);

typedef struct{
	ColorMap cmap;
	int width;
	int height;	
}GIF_ENV;

#endif
