xref: /plan9/sys/src/cmd/gs/src/zimage2.c (revision 593dc095aefb2a85c828727bbfa9da139a49bdf4)
1 /* Copyright (C) 1992, 2000 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: zimage2.c,v 1.7 2002/08/22 07:12:29 henrys Exp $ */
18 /* image operator extensions for Level 2 PostScript */
19 #include "memory_.h"
20 #include "ghost.h"
21 #include "gsimage.h"
22 #include "gxiparam.h"
23 #include "icstate.h"
24 #include "iimage2.h"
25 #include "igstate.h"		/* for igs */
26 
27 
28 /*
29  * Process an image that has no explicit source data.  This isn't used by
30  * standard Level 2, but it's a very small procedure and is needed by
31  * both zdps.c and zdpnext.c.
32  */
33 int
process_non_source_image(i_ctx_t * i_ctx_p,const gs_image_common_t * pic,client_name_t cname)34 process_non_source_image(i_ctx_t *i_ctx_p, const gs_image_common_t * pic,
35 			 client_name_t cname)
36 {
37     gx_image_enum_common_t *pie;
38     int code = gs_image_begin_typed(pic, igs, false /****** WRONG ******/ ,
39 				    &pie);
40 
41     /* We didn't pass any data, so there's nothing to clean up. */
42     return code;
43 }
44