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

« back to all changes in this revision

Viewing changes to src/gdevmpla.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:
10
10
   or contact Artifex Software, Inc.,  7 Mt. Lassen Drive - Suite A-134,
11
11
   San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
12
12
*/
13
 
/* $Id: gdevmpla.c 8022 2007-06-05 22:23:38Z giles $ */
 
13
/* $Id: gdevmpla.c 8250 2007-09-25 13:31:24Z giles $ */
14
14
/* Any-depth planar "memory" (stored bitmap) device */
15
15
#include "memory_.h"
16
16
#include "gx.h"
23
23
#include "gdevmpla.h"           /* interface */
24
24
 
25
25
/* procedures */
26
 
private dev_proc_open_device(mem_planar_open);
 
26
static dev_proc_open_device(mem_planar_open);
27
27
declare_mem_procs(mem_planar_copy_mono, mem_planar_copy_color, mem_planar_fill_rectangle);
28
 
private dev_proc_strip_tile_rectangle(mem_planar_strip_tile_rectangle);
29
 
private dev_proc_get_bits_rectangle(mem_planar_get_bits_rectangle);
 
28
static dev_proc_strip_tile_rectangle(mem_planar_strip_tile_rectangle);
 
29
static dev_proc_get_bits_rectangle(mem_planar_get_bits_rectangle);
30
30
 
31
31
/*
32
32
 * Set up a planar memory device, after calling gs_make_mem_device but
83
83
}
84
84
 
85
85
/* Open a planar memory device. */
86
 
private int
 
86
static int
87
87
mem_planar_open(gx_device * dev)
88
88
{
89
89
    gx_device_memory *const mdev = (gx_device_memory *)dev;
118
118
   mdev->line_ptrs = msp.line_ptrs)
119
119
 
120
120
/* Fill a rectangle with a color. */
121
 
private int
 
121
static int
122
122
mem_planar_fill_rectangle(gx_device * dev, int x, int y, int w, int h,
123
123
                          gx_color_index color)
124
124
{
144
144
}
145
145
 
146
146
/* Copy a bitmap. */
147
 
private int
 
147
static int
148
148
mem_planar_copy_mono(gx_device * dev, const byte * base, int sourcex,
149
149
                     int sraster, gx_bitmap_id id, int x, int y, int w, int h,
150
150
                     gx_color_index color0, gx_color_index color1)
181
181
 
182
182
/* Copy a color bitmap. */
183
183
/* This is slow and messy. */
184
 
private int
 
184
static int
185
185
mem_planar_copy_color(gx_device * dev, const byte * base, int sourcex,
186
186
                      int sraster, gx_bitmap_id id,
187
187
                      int x, int y, int w, int h)
283
283
#undef BUF_LONGS
284
284
}
285
285
 
286
 
private int
 
286
static int
287
287
mem_planar_strip_tile_rectangle(gx_device * dev, const gx_strip_bitmap * tiles,
288
288
                                int x, int y, int w, int h,
289
289
                                gx_color_index color0, gx_color_index color1,
335
335
 * implements the straightforward chunky case of get_bits_rectangle, and
336
336
 * is also used for the general cases.
337
337
 */
338
 
private int
 
338
static int
339
339
planar_to_chunky(gx_device_memory *mdev, int x, int y, int w, int h,
340
340
                 int offset, uint draster, byte *dest)
341
341
{
424
424
}
425
425
 
426
426
/* Copy bits back from a planar memory device. */
427
 
private int
 
427
static int
428
428
mem_planar_get_bits_rectangle(gx_device * dev, const gs_int_rect * prect,
429
429
                              gs_get_bits_params_t * params,
430
430
                              gs_int_rect ** unread)