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

« back to all changes in this revision

Viewing changes to contrib/gdevop4w.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:
90
90
#define byte unsigned char
91
91
 
92
92
/* The device descriptors */
93
 
private dev_proc_open_device(oki4w_open);
94
 
private dev_proc_close_device(oki4w_close);
95
 
private dev_proc_print_page(oki4w_print_page);
 
93
static dev_proc_open_device(oki4w_open);
 
94
static dev_proc_close_device(oki4w_close);
 
95
static dev_proc_print_page(oki4w_print_page);
96
96
 
97
 
private gx_device_procs prn_hp_procs =
 
97
static gx_device_procs prn_hp_procs =
98
98
  prn_params_procs(oki4w_open, gdev_prn_output_page, oki4w_close,
99
99
                   gdev_prn_get_params, gdev_prn_put_params);
100
100
 
108
108
#define ppdev ((gx_device_printer *)pdev)
109
109
 
110
110
/* Find out paper size code */
111
 
private int
 
111
static int
112
112
oki_paper_size(gx_device *dev)
113
113
{
114
114
        float height_inches = dev->height / dev->y_pixels_per_inch;
121
121
}
122
122
 
123
123
/* Open the printer, adjusting the margins if necessary. */
124
 
private int
 
124
static int
125
125
oki4w_open(gx_device *pdev)
126
126
{       /* Change the margins if necessary. */
127
127
        const float *m = 0;
134
134
}
135
135
 
136
136
/* oki4w_close is only here to eject odd numbered pages in duplex mode. */
137
 
private int
 
137
static int
138
138
oki4w_close(gx_device *pdev)
139
139
{
140
140
/*
152
152
 
153
153
/* ------ Internal routines ------ */
154
154
 
155
 
private int
 
155
static int
156
156
oki_compress(byte *src, byte *dst, int count)
157
157
{
158
158
        int dcnt = 0;
227
227
 
228
228
/* Send the page to the printer.  For speed, compress each scan line, */
229
229
/* since computer-to-printer communication time is often a bottleneck. */
230
 
private int
 
230
static int
231
231
oki4w_print_page(gx_device_printer *pdev, FILE *prn_stream)
232
232
{
233
233
        int line_size = gdev_mem_bytes_per_scan_line((gx_device *)pdev);