xref: /plan9/sys/src/cmd/gs/src/gdevppla.h (revision 593dc095aefb2a85c828727bbfa9da139a49bdf4)
1 /* Copyright (C) 1999 Aladdin Enterprises.  All rights reserved.
2 
3   This software is provided AS-IS with no warranty, either express or
4   implied.
5 
6   This software is distributed under license and may not be copied,
7   modified or distributed except as expressly authorized under the terms
8   of the license contained in the file LICENSE in this distribution.
9 
10   For more information about licensing, please refer to
11   http://www.ghostscript.com/licensing/. For information on
12   commercial licensing, go to http://www.artifex.com/licensing/ or
13   contact Artifex Software, Inc., 101 Lucas Valley Road #110,
14   San Rafael, CA  94903, U.S.A., +1(415)492-9861.
15 */
16 
17 /* $Id: gdevppla.h,v 1.5 2002/06/16 07:25:26 lpd Exp $ */
18 /* Support for printer devices with planar buffering. */
19 /* Requires gdevprn.h */
20 
21 #ifndef gdevppla_INCLUDED
22 #  define gdevppla_INCLUDED
23 
24 /* Set the buf_procs in a printer device to planar mode. */
25 int gdev_prn_set_procs_planar(gx_device *pdev);
26 
27 /* Open a printer device, conditionally setting it to be planar. */
28 int gdev_prn_open_planar(gx_device *pdev, bool upb);
29 
30 /* Augment get/put_params to add UsePlanarBuffer. */
31 int gdev_prn_get_params_planar(gx_device * pdev, gs_param_list * plist,
32 			       bool *pupb);
33 int gdev_prn_put_params_planar(gx_device * pdev, gs_param_list * plist,
34 			       bool *pupb);
35 
36 /* Create a planar buffer device. */
37 /* Use this instead of the default if UsePlanarBuffer is true. */
38 int gdev_prn_create_buf_planar(gx_device **pbdev, gx_device *target,
39 			       const gx_render_plane_t *render_plane,
40 			       gs_memory_t *mem, bool for_band);
41 
42 /* Determine the space needed by a planar buffer device. */
43 /* Use this instead of the default if UsePlanarBuffer is true. */
44 int gdev_prn_size_buf_planar(gx_device_buf_space_t *space,
45 			     gx_device *target,
46 			     const gx_render_plane_t *render_plane,
47 			     int height, bool for_band);
48 
49 #endif /* gdevppla_INCLUDED */
50