]> git.wh0rd.org - ICEs.git/blob - sh-ghostscript/gdevifno.i
more
[ICEs.git] / sh-ghostscript / gdevifno.i
1 typedef enum {
2 CINFO_UNKNOWN_SEP_LIN
3 } color_enc_sep_lin_t;
4 struct device_color_info_s {
5 int max_components;
6 int text_bits;
7 int graphics_bits;
8 color_enc_sep_lin_t separable_and_linear;
9 char comp_shift[64];
10 char comp_bits[64];
11 int black_component;
12 };
13 struct device_procs_s {
14 int (*open_device) ();
15 void (*get_initial_matrix) ();
16 int (*sync_output) ();
17 int (*output_page) ();
18 int (*close_device) ();
19 long long (*map_rgb_color) ();
20 int (*map_color_rgb) ();
21 void *(*ret_devn_params) ();
22 };
23 typedef struct inferno_device_s {
24 int retained;
25 int is_open;
26 struct device_color_info_s color_info;
27 struct device_procs_s orig_procs;
28 int ldepth;
29 int cmapcall;
30 } inferno_device;
31 long long inferno_rgb2cmap(void *dev)
32 {
33 inferno_device *bdev;
34 bdev = (inferno_device *) dev;
35 int mask;
36 int red;
37 if (red == mask)
38 bdev->ldepth = 3;
39 bdev->cmapcall = 1;
40 return mask;
41 }