1 /* Copyright (C) 2001-2006 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, modified
8    or distributed except as expressly authorized under the terms of that
9    license.  Refer to licensing information at http://www.artifex.com/
10    or contact Artifex Software, Inc.,  7 Mt. Lassen Drive - Suite A-134,
11    San Rafael, CA  94903, U.S.A., +1(415)492-9861, for further information.
12 */
13 
14 /* $Id: zimage2.c 9043 2008-08-28 22:48:19Z giles $ */
15 /* image operator extensions for Level 2 PostScript */
16 #include "memory_.h"
17 #include "ghost.h"
18 #include "gsimage.h"
19 #include "gxiparam.h"
20 #include "icstate.h"
21 #include "iimage2.h"
22 #include "igstate.h"		/* for igs */
23 
24 
25 /*
26  * Process an image that has no explicit source data.  This isn't used by
27  * standard Level 2, but it's a very small procedure and is needed by
28  * both zdps.c and zdpnext.c.
29  */
30 int
process_non_source_image(i_ctx_t * i_ctx_p,const gs_image_common_t * pic,client_name_t cname)31 process_non_source_image(i_ctx_t *i_ctx_p, const gs_image_common_t * pic,
32 			 client_name_t cname)
33 {
34     gx_image_enum_common_t *pie;
35     int code = gs_image_begin_typed(pic, igs, false /****** WRONG ******/ ,
36 				    &pie);
37 
38     /* We didn't pass any data, so there's nothing to clean up. */
39     return code;
40 }
41