1 /* Copyright (C) 1998 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: gxrplane.h,v 1.5 2002/06/16 08:45:43 lpd Exp $ */ 18 /* Definitions for planar rendering */ 19 20 #ifndef gxrplane_INCLUDED 21 # define gxrplane_INCLUDED 22 23 #ifndef gx_device_DEFINED 24 # define gx_device_DEFINED 25 typedef struct gx_device_s gx_device; 26 #endif 27 28 /* 29 * Define the parameters for extracting a single plane from chunky pixels. 30 * This structure should be considered opaque, and should only be 31 * initialized with the procedure. 32 */ 33 typedef struct gx_render_plane_s { 34 int depth; 35 int shift; /* bit position of l.s.b. from low end */ 36 int index; /* index within multi-screen halftone */ 37 } gx_render_plane_t; 38 39 /* 40 * Initialize a rendering plane specification for a device. Note that it is 41 * up to the device to decide which bits constitute a given plane identified 42 * by index. (Currently this is done with a fixed procedure, but eventually 43 * it will be made a property of the device somehow, perhaps in the 44 * color_info.) 45 */ 46 int gx_render_plane_init(gx_render_plane_t *render_plane, 47 const gx_device *dev, int index); 48 49 #endif /* gxrplane_INCLUDED */ 50