X-Git-Url: https://git.wh0rd.org/?p=ICEs.git;a=blobdiff_plain;f=sh-ghostscript%2Fgdevifno.i;fp=sh-ghostscript%2Fgdevifno.i;h=075265e8887a184b21a1e3be1ee53934836f9d56;hp=0000000000000000000000000000000000000000;hb=81f80d8c1c9898ae1c26534a3287a47220390f5c;hpb=45516216fc552c838e650d868214d867027a64f6 diff --git a/sh-ghostscript/gdevifno.i b/sh-ghostscript/gdevifno.i new file mode 100644 index 0000000..075265e --- /dev/null +++ b/sh-ghostscript/gdevifno.i @@ -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; +}