~ubuntu-branches/ubuntu/hardy/ghostscript/hardy

« back to all changes in this revision

Viewing changes to src/gscsepr.c

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2007-11-22 12:17:43 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20071122121743-cd70s3ypq0r243mp
Tags: 8.61.dfsg.1-0ubtuntu1
* New upstream release
  o Final 8.61 release
* debian/patches/09_ijs_krgb_support.dpatch: Adapted to upstream changes.
* debian/rules: Updated CUPS-related variables for "make install" calls.
* debian/rules: Remove /usr/include/ghostscript from the ghostscript
  package, they go into lings-dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
   San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
12
12
*/
13
13
 
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"
17
17
#include "gx.h"
39
39
                        cs_Separation_enum_ptrs, cs_Separation_reloc_ptrs);
40
40
 
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,
63
63
 
64
64
/* GC procedures */
65
65
 
66
 
private 
 
66
static 
67
67
ENUM_PTRS_BEGIN(cs_Separation_enum_ptrs) return 0;
68
68
    ENUM_PTR(0, gs_color_space, params.separation.map);
69
69
ENUM_PTRS_END
70
 
private RELOC_PTRS_BEGIN(cs_Separation_reloc_ptrs)
 
70
static RELOC_PTRS_BEGIN(cs_Separation_reloc_ptrs)
71
71
{
72
72
    RELOC_PTR(gs_color_space, params.separation.map);
73
73
}
74
74
RELOC_PTRS_END
75
75
 
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)
80
80
{
98
98
    return pcs;
99
99
}
100
100
 
101
 
private int
 
101
static int
102
102
check_Separation_component_name(const gs_color_space * pcs, gs_state * pgs);
103
103
 
104
104
/* Install a Separation color space. */
105
 
private int
 
105
static int
106
106
gx_install_Separation(gs_color_space * pcs, gs_state * pgs)
107
107
{
108
108
    int code;
145
145
}
146
146
 
147
147
/* Set the overprint information appropriate to a separation color space */
148
 
private int
 
148
static int
149
149
gx_set_overprint_Separation(const gs_color_space * pcs, gs_state * pgs)
150
150
{
151
151
    gs_devicen_color_map *  pcmap = &pgs->color_component_map;
174
174
}
175
175
 
176
176
/* Finalize contents of a Separation color space. */
177
 
private void
 
177
static void
178
178
gx_final_Separation(const gs_color_space * pcs)
179
179
{
180
180
    rc_adjust_const(pcs->params.separation.map, -1,
280
280
/* ------ Internal procedures ------ */
281
281
 
282
282
/* Initialize a Separation color. */
283
 
private void
 
283
static void
284
284
gx_init_Separation(gs_client_color * pcc, const gs_color_space * pcs)
285
285
{
286
286
    pcc->paint.values[0] = 1.0;
288
288
 
289
289
/* Remap a Separation color. */
290
290
 
291
 
private int
 
291
static int
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)
306
306
    return code;
307
307
}
308
308
 
309
 
private int
 
309
static int
310
310
gx_concretize_Separation(const gs_client_color *pc, const gs_color_space *pcs,
311
311
                         frac *pconc, const gs_imager_state *pis)
312
312
{
340
340
    return 0;
341
341
}
342
342
 
343
 
private int
 
343
static int
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)
379
379
 * matches the device colorant names.  Also build a gs_devicen_color_map
380
380
 * structure.
381
381
 */
382
 
private int
 
382
static int
383
383
check_Separation_component_name(const gs_color_space * pcs, gs_state * pgs)
384
384
{
385
385
    const gs_separation_name name = pcs->params.separation.sep_name;
470
470
 
471
471
/* ---------------- Serialization. -------------------------------- */
472
472
 
473
 
private int 
 
473
static int 
474
474
gx_serialize_Separation(const gs_color_space * pcs, stream * s)
475
475
{
476
476
    const gs_separation_params * p = &pcs->params.separation;