~ubuntu-branches/debian/squeeze/ghostscript/squeeze

« back to all changes in this revision

Viewing changes to src/gximage.h

  • Committer: Bazaar Package Importer
  • Author(s): Masayuki Hatta (mhatta)
  • Date: 2009-01-04 12:09:59 UTC
  • mfrom: (16.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090104120959-m9lbagj775ucg0h3
Tags: 8.63.dfsg.1-2
libgs-dev: put versioned dependency on libgs8 - closes: #510691

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: gximage.h 8529 2008-02-17 23:25:47Z leonardo $ */
 
14
/* $Id: gximage.h 8868 2008-07-23 23:29:39Z mvrhel $ */
15
15
/* Default image rendering state structure */
16
16
/* Requires gxcpath.h, gxdevmem.h, gxdcolor.h, gzpath.h */
17
17
 
115
115
  cc.paint.values[i] =\
116
116
    penum->map[i].decode_base + (frac_value) * penum->map[i].decode_factor
117
117
 
 
118
 
 
119
/* Decode a frac value, to our 16 bit frac form. */
 
120
#define DECODE_FRAC_FRAC(frac_value, frac_value_out, i)\
 
121
  frac_value_out =\
 
122
    gx_unit_frac(penum->map[i].decode_base + (frac_value) * penum->map[i].decode_factor)
 
123
 
118
124
/*
119
125
 * Declare the pointer that holds the 12-bit unpacking procedure
120
126
 * if 12-bit samples are supported, 0 otherwise.
202
208
    irender_proc((*render));
203
209
    const gs_imager_state *pis;
204
210
    const gs_color_space *pcs;  /* color space of image */
205
 
    gs_memory_t *memory;
206
211
    byte *buffer;               /* for expanding samples to a */
207
212
                                /* byte or frac */
208
213
    uint buffer_size;