/*******************************************/
/*                                         */
/* colors.h                                */
/*                                         */
/* scol colors primitives                  */
/*                                         */
/* Loïc Berthelot, CryoNetworks, june 2002 */
/* update to zooengine, mars 2003          */
/*                                         */
/*******************************************/




#ifndef _COLORS_H_
#define _COLORS_H_

#define COLOR_NB_MODE 6


int _COLOR_BGR_TO_I   (unsigned char b, unsigned char g, unsigned char r);
void _COLOR_I15_TO_BGR (int color, unsigned char *b, unsigned char *g, unsigned char *r);
void _COLOR_I15_TO_RGB_BGR (int color, unsigned char *b, unsigned char *g, unsigned char *r);
int _COLOR_BGR_TO_I15 (unsigned char b, unsigned char g, unsigned char r);

void _COLOR_I_TO_BGR (int color, unsigned char *b, unsigned char *g, unsigned char *r);


//
// 16, 24 bits conversions
//
int _COLOR_CONVERT_16_24 (int value);

int _COLOR_CONVERT_24_16 (int value);

int _COLOR_CONVERT_RGB_BGR_16 (int value);

int _COLOR_CONVERT_RGB_BGR_24 (int value); 

int _COLOR_CONVERT_RGB24_BGR16 (int value);

int _COLOR_CONVERT_RGB16_BGR24 (int value);



#endif

