summaryrefslogtreecommitdiff
path: root/base/gdevmpla.h
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2013-07-23 16:24:19 +0100
committerChris Liddell <chris.liddell@artifex.com>2015-07-20 18:21:17 +0100
commit6948650efd3fb9e2a70b8cf16aca57e9d0b7eb0a (patch)
tree5c2a1c671c1d4521f8a770d1e69e3d4342718030 /base/gdevmpla.h
parent7fd9e0be26e67c36f87733bc89ea07dc26d9f839 (diff)
downloadghostpdl-6948650efd3fb9e2a70b8cf16aca57e9d0b7eb0a.tar.gz
Commit of build_consolidation branch
Squashed into one commit (see branch for details of the evolution of the branch). This brings gpcl6 and gxps into the Ghostscript build system, and a shared set of graphics library object files for all the interpreters. Also, brings the same configuration options to the pcl and xps products as we have for Ghostscript.
Diffstat (limited to 'base/gdevmpla.h')
-rw-r--r--base/gdevmpla.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/base/gdevmpla.h b/base/gdevmpla.h
new file mode 100644
index 000000000..c1bf142a2
--- /dev/null
+++ b/base/gdevmpla.h
@@ -0,0 +1,44 @@
+/* Copyright (C) 2001-2012 Artifex Software, Inc.
+ All Rights Reserved.
+
+ This software is provided AS-IS with no warranty, either express or
+ implied.
+
+ This software is distributed under license and may not be copied,
+ modified or distributed except as expressly authorized under the terms
+ of the license contained in the file LICENSE in this distribution.
+
+ Refer to licensing information at http://www.artifex.com or contact
+ Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134, San Rafael,
+ CA 94903, U.S.A., +1(415)492-9861, for further information.
+*/
+
+/* Interface to planar memory devices. */
+
+#ifndef gdevmpla_INCLUDED
+# define gdevmpla_INCLUDED
+
+/*
+ * Planar memory devices store the bits by planes instead of by chunks.
+ * The plane corresponding to the least significant bits of the color index
+ * is stored first. Each plane may store a different number of bits,
+ * but the depth of each plane must be an allowable one for a memory
+ * device and not greater than 16 (currently, 1, 2, 4, 8, or 16), and the
+ * total must not exceed the size of gx_color_index.
+ *
+ * Planar devices store the data for each plane contiguously, as though
+ * each plane were a separate device. There is an array of line pointers
+ * for each plane (num_planes arrays in all).
+ */
+
+/*
+ * Set up a planar memory device, after calling gs_make_mem_device but
+ * before opening the device. The pre-existing device provides the color
+ * mapping procedures, but not the drawing procedures. Requires: num_planes
+ * > 0, plane_depths[0 .. num_planes - 1] > 0, sum of plane_depths <=
+ * mdev->color_info.depth.
+ */
+int gdev_mem_set_planar(gx_device_memory * mdev, int num_planes,
+ const gx_render_plane_t *planes /*[num_planes]*/);
+
+#endif /* gdevmpla_INCLUDED */