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