]>
Dogcows Code - chaz/openbox/blob - color.h
202817d3054efcc7339c1fa90c90d3e0b83baf4c
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_ENDIAN == 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_ENDIAN == G_BIG_ENDIAN */
37 typedef struct color_rgb
{
45 void color_allocate_gc(color_rgb
*in
);
46 color_rgb
*color_parse(char *colorname
);
47 color_rgb
*color_new(int r
, int g
, int b
);
48 void color_free(color_rgb
*in
);
49 void reduce_depth(pixel32
*data
, XImage
*im
);
51 extern int render_red_offset
;
52 extern int render_green_offset
;
53 extern int render_blue_offset
;
55 extern int render_red_shift
;
56 extern int render_green_shift
;
57 extern int render_blue_shift
;
59 #endif /* __color_h */
This page took 0.033632 seconds and 3 git commands to generate.