1 /* Copyright (C) 2001-2019 Artifex Software, Inc.
2    All Rights Reserved.
3 
4    This software is provided AS-IS with no warranty, either express or
5    implied.
6 
7    This software is distributed under license and may not be copied,
8    modified or distributed except as expressly authorized under the terms
9    of the license contained in the file LICENSE in this distribution.
10 
11    Refer to licensing information at http://www.artifex.com or contact
12    Artifex Software, Inc.,  1305 Grant Avenue - Suite 200, Novato,
13    CA 94945, U.S.A., +1(415)492-9861, for further information.
14 */
15 
16 
17 /* Halftone tile definition */
18 /* Requires gxbitmap.h */
19 
20 #ifndef gxhttile_INCLUDED
21 #  define gxhttile_INCLUDED
22 
23 #include "gxbitmap.h"
24 
25 /*
26  * A halftone tile is just an ordinary bitmap tile, plus a couple of other
27  * items associated with managing its existence in a tile cache.
28  * (See gzht.h for details.)  We define this in its own file so that
29  * clients of gx_device_color can access it.
30  */
31 
32 typedef struct gx_ht_tile_s gx_ht_tile;
33 
34 struct gx_ht_tile_s {
35     gx_strip_bitmap tiles;	/* the currently rendered tile */
36     int level;			/* the cached gray level, i.e. */
37     /* the number of spots whitened, */
38     /* or -1 if the cache is empty */
39     uint index;			/* the index of the tile within */
40     /* the cache (for GC) */
41 };
42 
43 #endif /* gxhttile_INCLUDED */
44