xref: /plan9/sys/src/cmd/gs/src/gxhttile.h (revision 593dc095aefb2a85c828727bbfa9da139a49bdf4)
1 /* Copyright (C) 1995, 1996 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: gxhttile.h,v 1.4 2002/02/21 22:24:53 giles Exp $ */
18 /* Halftone tile definition */
19 /* Requires gxbitmap.h */
20 
21 #ifndef gxhttile_INCLUDED
22 #  define gxhttile_INCLUDED
23 
24 /*
25  * A halftone tile is just an ordinary bitmap tile, plus a couple of other
26  * items associated with managing its existence in a tile cache.
27  * (See gzht.h for details.)  We define this in its own file so that
28  * clients of gx_device_color can access it.
29  */
30 
31 #ifndef gx_ht_tile_DEFINED
32 #  define gx_ht_tile_DEFINED
33 typedef struct gx_ht_tile_s gx_ht_tile;
34 
35 #endif
36 
37 struct gx_ht_tile_s {
38     gx_strip_bitmap tiles;	/* the currently rendered tile */
39     int level;			/* the cached gray level, i.e. */
40     /* the number of spots whitened, */
41     /* or -1 if the cache is empty */
42     uint index;			/* the index of the tile within */
43     /* the cache (for GC) */
44 };
45 
46 #endif /* gxhttile_INCLUDED */
47