]> git.ipfire.org Git - thirdparty/cups.git/blob - pstoraster/gxband.h
Import cups.org releases
[thirdparty/cups.git] / pstoraster / gxband.h
1 /* Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
2
3 This file is part of GNU Ghostscript.
4
5 GNU Ghostscript is distributed in the hope that it will be useful, but
6 WITHOUT ANY WARRANTY. No author or distributor accepts responsibility
7 to anyone for the consequences of using it or for whether it serves any
8 particular purpose or works at all, unless he says so in writing. Refer
9 to the GNU General Public License for full details.
10
11 Everyone is granted permission to copy, modify and redistribute GNU
12 Ghostscript, but only under the conditions described in the GNU General
13 Public License. A copy of this license is supposed to have been given
14 to you along with GNU Ghostscript so you can know your rights and
15 responsibilities. It should be in a file named COPYING. Among other
16 things, the copyright notice and this notice must be preserved on all
17 copies.
18
19 Aladdin Enterprises supports the work of the GNU Project, but is not
20 affiliated with the Free Software Foundation or the GNU Project. GNU
21 Ghostscript, as distributed by Aladdin Enterprises, does not require any
22 GNU software to build or run it.
23 */
24
25 /*$Id$ */
26 /* Band-processing parameters for Ghostscript */
27
28 #ifndef gxband_INCLUDED
29 # define gxband_INCLUDED
30
31 #include "gxclio.h"
32
33 /*
34 * Define the parameters controlling banding.
35 */
36 typedef struct gx_band_params_s {
37 int BandWidth; /* (optional) band width in pixels */
38 int BandHeight; /* (optional) */
39 long BandBufferSpace; /* (optional) */
40 } gx_band_params;
41
42 #define band_params_initial_values 0, 0, 0
43
44 /*
45 * Define the information for a saved page.
46 */
47 typedef struct gx_band_page_info_s {
48 char cfname[gp_file_name_sizeof]; /* command file name */
49 clist_file_ptr cfile; /* command file, normally 0 */
50 char bfname[gp_file_name_sizeof]; /* block file name */
51 clist_file_ptr bfile; /* block file, normally 0 */
52 uint tile_cache_size; /* size of tile cache */
53 long bfile_end_pos; /* ftell at end of bfile */
54 gx_band_params band_params; /* parameters used when writing band list */
55 /* (actual values, no 0s) */
56 } gx_band_page_info;
57
58 /*
59 * By convention, the structure member containing the above is called
60 * page_info. Define shorthand accessors for its members.
61 */
62 #define page_cfile page_info.cfile
63 #define page_cfname page_info.cfname
64 #define page_bfile page_info.bfile
65 #define page_bfname page_info.bfname
66 #define page_tile_cache_size page_info.tile_cache_size
67 #define page_bfile_end_pos page_info.bfile_end_pos
68 #define page_band_height page_info.band_params.BandHeight
69
70 #endif /* ndef gxband_INCLUDED */