~ubuntu-branches/ubuntu/oneiric/ghostscript/oneiric

« back to all changes in this revision

Viewing changes to base/gsdevice.h

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2011-07-15 16:49:55 UTC
  • mfrom: (1.1.23 upstream)
  • Revision ID: james.westby@ubuntu.com-20110715164955-uga6qibao6kez05c
Tags: 9.04~dfsg~20110715-0ubuntu1
* New upstream release
   - GIT snapshot from Jult, 12 2011.
* debian/patches/020110406~a54df2d.patch,
  debian/patches/020110408~0791cc8.patch,
  debian/patches/020110408~507cbee.patch,
  debian/patches/020110411~4509a49.patch,
  debian/patches/020110412~78bb9a6.patch,
  debian/patches/020110418~a05ab8a.patch,
  debian/patches/020110420~20b6c78.patch,
  debian/patches/020110420~4ddefa2.patch: Removed upstream patches.
* debian/rules: Generate ABI version number (variable "abi") correctly,
  cutting off repackaging and pre-release parts.
* debian/rules: Added ./lcms2/ directory to DEB_UPSTREAM_REPACKAGE_EXCLUDES.
* debian/copyright: Added lcms2/* to the list of excluded files.
* debian/symbols.common: Updated for new upstream source. Applied patch
  which dpkg-gensymbols generated for debian/libgs9.symbols to this file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Copyright (C) 2001-2007 Artifex Software, Inc.
2
2
   All Rights Reserved.
3
 
  
 
3
 
4
4
   This software is provided AS-IS with no warranty, either express or
5
5
   implied.
6
6
 
11
11
   San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
12
12
*/
13
13
 
14
 
/* $Id: gsdevice.h 8337 2007-10-31 17:00:51Z giles $ */
 
14
/* $Id$ */
15
15
/* Device and page control API */
16
16
 
17
17
#ifndef gsdevice_INCLUDED
51
51
 * copydevice is equivalent to copydevice2 with keep_open = false.
52
52
 */
53
53
int gs_copydevice2(gx_device **pnew_dev, const gx_device *dev,
54
 
                   bool keep_open, gs_memory_t *mem);
 
54
                   bool keep_open, gs_memory_t *mem);
55
55
 
56
56
#define gs_makeimagedevice(pdev, pmat, w, h, colors, colors_size, mem)\
57
57
  gs_makewordimagedevice(pdev, pmat, w, h, colors, colors_size, false, true, mem)
58
58
int gs_makewordimagedevice(gx_device ** pnew_dev, const gs_matrix * pmat,
59
 
                           uint width, uint height,
60
 
                           const byte * colors, int num_colors,
61
 
                           bool word_oriented, bool page_device,
62
 
                           gs_memory_t * mem);
 
59
                           uint width, uint height,
 
60
                           const byte * colors, int num_colors,
 
61
                           bool word_oriented, bool page_device,
 
62
                           gs_memory_t * mem);
63
63
 
64
64
#define gs_initialize_imagedevice(mdev, pmat, w, h, colors, colors_size, mem)\
65
65
  gs_initialize_wordimagedevice(mdev, pmat, w, h, colors, color_size, false, true, mem)
66
66
int gs_initialize_wordimagedevice(gx_device_memory * new_dev,
67
 
                                  const gs_matrix * pmat,
68
 
                                  uint width, uint height,
69
 
                                  const byte * colors, int colors_size,
70
 
                                  bool word_oriented, bool page_device,
71
 
                                  gs_memory_t * mem);
 
67
                                  const gs_matrix * pmat,
 
68
                                  uint width, uint height,
 
69
                                  const byte * colors, int colors_size,
 
70
                                  bool word_oriented, bool page_device,
 
71
                                  gs_memory_t * mem);
72
72
const char *gs_devicename(const gx_device *);
73
73
void gs_deviceinitialmatrix(gx_device *, gs_matrix *);
74
74
 
92
92
#endif
93
93
 
94
94
int gs_imager_putdeviceparams(gs_imager_state *pis, gx_device *dev,
95
 
                              gs_param_list *plist);
 
95
                              gs_param_list *plist);
96
96
 
97
97
/* Device procedures involving a graphics state. */
98
98
 
107
107
int gs_nulldevice(gs_state *);
108
108
int gs_setdevice(gs_state *, gx_device *);
109
109
int gs_setdevice_no_erase(gs_state *, gx_device *);             /* returns 1 */
110
 
                                                /* if erasepage required */
 
110
                                                /* if erasepage required */
111
111
int gs_setdevice_no_init(gs_state *, gx_device *);
112
112
gx_device *gs_currentdevice(const gs_state *);
113
113