kstars
ccvt_types.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef CCVT_TYPES_H
00023 #define CCVT_TYPES_H
00024
00025 typedef struct
00026 {
00027 unsigned char b;
00028 unsigned char g;
00029 unsigned char r;
00030 unsigned char z;
00031 } PIXTYPE_bgr32;
00032
00033 typedef struct
00034 {
00035 unsigned char b;
00036 unsigned char g;
00037 unsigned char r;
00038 } PIXTYPE_bgr24;
00039
00040 typedef struct
00041 {
00042 unsigned char r;
00043 unsigned char g;
00044 unsigned char b;
00045 unsigned char z;
00046 } PIXTYPE_rgb32;
00047
00048 typedef struct
00049 {
00050 unsigned char r;
00051 unsigned char g;
00052 unsigned char b;
00053 } PIXTYPE_rgb24;
00054
00055 #define SAT(c) \
00056 if (c & (~255)) { if (c < 0) c = 0; else c = 255; }
00057
00058
00059
00060 #endif