00001
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef _MGUI_COLORSPACE_H
00030 #define _MGUI_COLORSPACE_H
00031
00032
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif
00036
00037 #ifdef _USE_NEWGAL
00038
00074 void RGB2HSV (Uint8 r, Uint8 g, Uint8 b,
00075 Uint16 *hout, Uint8 *sout, Uint8 *vout);
00076
00101 void HSV2RGB (Uint16 hin, Uint8 sin, Uint8 vin,
00102 Uint8 *rout, Uint8 *gout, Uint8 *bout);
00103
00125 void YUV2RGB (int y, int u, int v, Uint8 *r, Uint8 *g, Uint8 *b);
00126
00144 MG_EXPORT void RGB2YUV (Uint8 r, Uint8 g, Uint8 b, int *y, int *u, int *v);
00145
00150 #endif
00151
00152 #ifdef __cplusplus
00153 }
00154 #endif
00155
00156 #endif
00157
00158