1 //========================================================================
5 //========================================================================
13 //------------------------------------------------------------------------
15 //------------------------------------------------------------------------
17 typedef double SplashCoord;
19 //------------------------------------------------------------------------
21 //------------------------------------------------------------------------
23 enum SplashColorMode {
31 // max number of components in any SplashColor
32 #define splashMaxColorComps 3
34 // 1-bit gray or alpha
35 typedef Guchar SplashMono1;
36 typedef Guchar SplashMono1P; // packed
38 // 8-bit gray or alpha
39 typedef Guchar SplashMono8;
41 // 3x8-bit RGB: (MSB) 00RRGGBB (LSB)
42 typedef Guint SplashRGB8;
43 #define splashRGB8R(rgb8) (((rgb8) >> 16) & 0xff)
44 #define splashRGB8G(rgb8) (((rgb8) >> 8) & 0xff)
45 #define splashRGB8B(rgb8) ((rgb8) & 0xff)
46 #define splashMakeRGB8(r, g, b) \
47 ((((r) & 0xff) << 16) | (((g) & 0xff) << 8) | ((b) & 0xff))
49 typedef Guchar SplashRGB8P; // packed
51 // 3x8-bit RGB: (MSB) 00BBGGRR (LSB)
52 typedef Guint SplashBGR8;
53 typedef Guchar SplashBGR8P; // packed
54 #define splashBGR8R(bgr8) ((bgr8) & 0xff)
55 #define splashBGR8G(bgr8) (((bgr8) >> 8) & 0xff)
56 #define splashBGR8B(bgr8) (((bgr8) >> 16) & 0xff)
57 #define splashMakeBGR8(r, g, b) \
58 ((((b) & 0xff) << 16) | (((g) & 0xff) << 8) | ((r) & 0xff))
67 union SplashColorPtr {
75 //------------------------------------------------------------------------
77 //------------------------------------------------------------------------
79 typedef int SplashError;