]> git.wh0rd.org - ICEs.git/blobdiff - sh-ghostscript/gdevifno.i
more ices
[ICEs.git] / sh-ghostscript / gdevifno.i
diff --git a/sh-ghostscript/gdevifno.i b/sh-ghostscript/gdevifno.i
new file mode 100644 (file)
index 0000000..075265e
--- /dev/null
@@ -0,0 +1,41 @@
+typedef enum {
+       CINFO_UNKNOWN_SEP_LIN
+} color_enc_sep_lin_t;
+struct device_color_info_s {
+       int max_components;
+       int text_bits;
+       int graphics_bits;
+       color_enc_sep_lin_t separable_and_linear;
+       char comp_shift[64];
+       char comp_bits[64];
+       int black_component;
+};
+struct device_procs_s {
+       int (*open_device) ();
+       void (*get_initial_matrix) ();
+       int (*sync_output) ();
+       int (*output_page) ();
+       int (*close_device) ();
+       long long (*map_rgb_color) ();
+       int (*map_color_rgb) ();
+       void *(*ret_devn_params) ();
+};
+typedef struct inferno_device_s {
+       int retained;
+       int is_open;
+       struct device_color_info_s color_info;
+       struct device_procs_s orig_procs;
+       int ldepth;
+       int cmapcall;
+} inferno_device;
+long long inferno_rgb2cmap(void *dev)
+{
+       inferno_device *bdev;
+       bdev = (inferno_device *) dev;
+       int mask;
+       int red;
+       if (red == mask)
+               bdev->ldepth = 3;
+       bdev->cmapcall = 1;
+       return mask;
+}