10 # ifdef HAVE_SYS_TYPES_H
11 # include <sys/types.h>
17 typedef uint32_t pixel32;
18 typedef uint16_t pixel16;
20 typedef u_int32_t pixel32;
21 typedef u_int16_t pixel16;
22 #endif /* HAVE_STDINT_H */
24 #if (G_BYTE_ORDER == G_BIG_ENDIAN)
25 #define default_red_shift 0
26 #define default_green_shift 8
27 #define default_blue_shift 16
28 #define endian MSBFirst
30 #define default_red_shift 16
31 #define default_green_shift 8
32 #define default_blue_shift 0
33 #define endian LSBFirst
34 #endif /* G_BYTE_ORDER == G_BIG_ENDIAN */
37 typedef struct color_rgb {
45 void color_allocate_gc(color_rgb *in);
46 XColor *pickColor(int r, int g, int b);
47 color_rgb *color_parse(char *colorname);
48 color_rgb *color_new(int r, int g, int b);
49 void color_free(color_rgb *in);
50 void reduce_depth(pixel32 *data, XImage *im);
52 extern int render_red_offset;
53 extern int render_green_offset;
54 extern int render_blue_offset;
56 extern int render_red_shift;
57 extern int render_green_shift;
58 extern int render_blue_shift;
60 extern int pseudo_bpc;
61 extern XColor *pseudo_colors;
62 #endif /* __color_h */