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

« back to all changes in this revision

Viewing changes to src/gscpixel.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: gscpixel.c 8022 2007-06-05 22:23:38Z giles $ */
 
14
/* $Id: gscpixel.c 8250 2007-09-25 13:31:24Z giles $ */
15
15
/* DevicePixel color space and operation definition */
16
16
#include "gx.h"
17
17
#include "gserrors.h"
26
26
#include "stream.h"
27
27
 
28
28
/* Define the DevicePixel color space type. */
29
 
private cs_proc_restrict_color(gx_restrict_DevicePixel);
30
 
private cs_proc_remap_concrete_color(gx_remap_concrete_DevicePixel);
31
 
private cs_proc_concretize_color(gx_concretize_DevicePixel);
32
 
private cs_proc_set_overprint(gx_set_overprint_DevicePixel);
33
 
private cs_proc_serialize(gx_serialize_DevicePixel);
34
 
private const gs_color_space_type gs_color_space_type_DevicePixel = {
 
29
static cs_proc_restrict_color(gx_restrict_DevicePixel);
 
30
static cs_proc_remap_concrete_color(gx_remap_concrete_DevicePixel);
 
31
static cs_proc_concretize_color(gx_concretize_DevicePixel);
 
32
static cs_proc_set_overprint(gx_set_overprint_DevicePixel);
 
33
static cs_proc_serialize(gx_serialize_DevicePixel);
 
34
static const gs_color_space_type gs_color_space_type_DevicePixel = {
35
35
    gs_color_space_index_DevicePixel, true, false,
36
36
    &st_base_color_space, gx_num_components_1,
37
37
    gx_init_paint_1, gx_restrict_DevicePixel,
73
73
/* ------ Internal routines ------ */
74
74
 
75
75
/* Force a DevicePixel color into legal range. */
76
 
private void
 
76
static void
77
77
gx_restrict_DevicePixel(gs_client_color * pcc, const gs_color_space * pcs)
78
78
{
79
79
    /****** NOT ENOUGH BITS IN float OR frac ******/
86
86
 
87
87
/* Remap a DevicePixel color. */
88
88
 
89
 
private int
 
89
static int
90
90
gx_concretize_DevicePixel(const gs_client_color * pc, const gs_color_space * pcs,
91
91
                          frac * pconc, const gs_imager_state * pis)
92
92
{
95
95
    return 0;
96
96
}
97
97
 
98
 
private int
 
98
static int
99
99
gx_remap_concrete_DevicePixel(const frac * pconc, const gs_color_space * pcs,
100
100
        gx_device_color * pdc, const gs_imager_state * pis, gx_device * dev,
101
101
                              gs_color_select_t select)
105
105
}
106
106
 
107
107
/* DevicePixel disables overprint */
108
 
private int
 
108
static int
109
109
gx_set_overprint_DevicePixel(const gs_color_space * pcs, gs_state * pgs)
110
110
{
111
111
    gs_overprint_params_t   params;
118
118
 
119
119
/* ---------------- Serialization. -------------------------------- */
120
120
 
121
 
private int 
 
121
static int 
122
122
gx_serialize_DevicePixel(const gs_color_space * pcs, stream * s)
123
123
{
124
124
    const gs_device_pixel_params * p = &pcs->params.pixel;