11
11
San Rafael, CA 94903, U.S.A., +1(415)492-9861, for further information.
14
/* $Id: gscsepr.c 8022 2007-06-05 22:23:38Z giles $ */
14
/* $Id: gscsepr.c 8250 2007-09-25 13:31:24Z giles $ */
15
15
/* Separation color space and operation definition */
16
16
#include "memory_.h"
39
39
cs_Separation_enum_ptrs, cs_Separation_reloc_ptrs);
41
41
/* Define the Separation color space type. */
42
private cs_proc_init_color(gx_init_Separation);
43
private cs_proc_concrete_space(gx_concrete_space_Separation);
44
private cs_proc_concretize_color(gx_concretize_Separation);
45
private cs_proc_remap_concrete_color(gx_remap_concrete_Separation);
46
private cs_proc_remap_color(gx_remap_Separation);
47
private cs_proc_install_cspace(gx_install_Separation);
48
private cs_proc_set_overprint(gx_set_overprint_Separation);
49
private cs_proc_final(gx_final_Separation);
50
private cs_proc_serialize(gx_serialize_Separation);
42
static cs_proc_init_color(gx_init_Separation);
43
static cs_proc_concrete_space(gx_concrete_space_Separation);
44
static cs_proc_concretize_color(gx_concretize_Separation);
45
static cs_proc_remap_concrete_color(gx_remap_concrete_Separation);
46
static cs_proc_remap_color(gx_remap_Separation);
47
static cs_proc_install_cspace(gx_install_Separation);
48
static cs_proc_set_overprint(gx_set_overprint_Separation);
49
static cs_proc_final(gx_final_Separation);
50
static cs_proc_serialize(gx_serialize_Separation);
51
51
const gs_color_space_type gs_color_space_type_Separation = {
52
52
gs_color_space_index_Separation, true, false,
53
53
&st_color_space_Separation, gx_num_components_1,
64
64
/* GC procedures */
67
67
ENUM_PTRS_BEGIN(cs_Separation_enum_ptrs) return 0;
68
68
ENUM_PTR(0, gs_color_space, params.separation.map);
70
private RELOC_PTRS_BEGIN(cs_Separation_reloc_ptrs)
70
static RELOC_PTRS_BEGIN(cs_Separation_reloc_ptrs)
72
72
RELOC_PTR(gs_color_space, params.separation.map);
76
76
/* Get the concrete space for a Separation space. */
77
private const gs_color_space *
77
static const gs_color_space *
78
78
gx_concrete_space_Separation(const gs_color_space * pcs,
79
79
const gs_imager_state * pis)
280
280
/* ------ Internal procedures ------ */
282
282
/* Initialize a Separation color. */
284
284
gx_init_Separation(gs_client_color * pcc, const gs_color_space * pcs)
286
286
pcc->paint.values[0] = 1.0;
289
289
/* Remap a Separation color. */
292
292
gx_remap_Separation(const gs_client_color * pcc, const gs_color_space * pcs,
293
293
gx_device_color * pdc, const gs_imager_state * pis, gx_device * dev,
294
294
gs_color_select_t select)
344
344
gx_remap_concrete_Separation(const frac * pconc, const gs_color_space * pcs,
345
345
gx_device_color * pdc, const gs_imager_state * pis, gx_device * dev,
346
346
gs_color_select_t select)