summaryrefslogtreecommitdiff
path: root/gs/src/gsimage.h
diff options
context:
space:
mode:
authorRay Johnston <ray.johnston@artifex.com>1999-12-13 02:53:22 +0000
committerRay Johnston <ray.johnston@artifex.com>1999-12-13 02:53:22 +0000
commitd7d4186d964ca61a7893e9434fa8ac5c2d3ec321 (patch)
treeb53f35bd836bd9518881ee59389f6b8070150b25 /gs/src/gsimage.h
parent83e369998390339d55e7ff613e61ce861a550cc4 (diff)
Fix ImageType 3 for file and procedures. Add new API gs_image_next_planes
needed to correctly implement ImageType 3 (masked images). git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@1050 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'gs/src/gsimage.h')
-rw-r--r--gs/src/gsimage.h29
1 files changed, 26 insertions, 3 deletions
diff --git a/gs/src/gsimage.h b/gs/src/gsimage.h
index dc861cf51..fc172031b 100644
--- a/gs/src/gsimage.h
+++ b/gs/src/gsimage.h
@@ -53,12 +53,10 @@ int gs_image_enum_init(P4(gs_image_enum * penum,
const gs_data_image_t * pim, gs_state *pgs));
int gs_image_init(P4(gs_image_enum * penum, const gs_image_t * pim,
bool MultipleDataSources, gs_state * pgs));
-int gs_image_next(P4(gs_image_enum * penum, const byte * dbytes,
- uint dsize, uint * pused));
/*
* Return the number of bytes of data per row
- * (per plane, if MultipleDataSources is true).
+ * (per plane, if there are multiple data sources).
*/
uint gs_image_bytes_per_plane_row(P2(const gs_image_enum * penum, int plane));
@@ -74,4 +72,29 @@ const byte *gs_image_planes_wanted(P1(const gs_image_enum *penum));
/* Clean up after processing an image. */
void gs_image_cleanup(P1(gs_image_enum * penum));
+/*
+ * Pass multiple or selected planes of data for an image.
+ * *plane_data is an array of size num_planes of gs_const_string type
+ * which contains the pointer and the length for each.
+ * *used is also of size num_planes and will be set to the number of
+ * bytes consumed for each plane.
+ * The amount of data available for planes can be 0 in order to provide
+ * data for a single plane or only some of the planes.
+ *
+ * Returns 1 if end of image, < 0 error code, otherwise 0.
+ *
+ * ****** NEEDS DOC FROM RAY ABOUT RETENTION OF SOURCE DATA ******
+ */
+int gs_image_next_planes(P3(gs_image_enum *penum,
+ gs_const_string *plane_data,
+ uint *used));
+
+/*
+ * Pass the next plane of data for an image. This procedure should no
+ * longer be used: use gs_image_next_planes instead.
+ */
+int gs_image_next(P4(gs_image_enum * penum, const byte * dbytes,
+ uint dsize, uint * pused));
+
+
#endif /* gsimage_INCLUDED */