1 /*
2 Copyright (C) 2001 artofcode LLC.
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,
8 modified or distributed except as expressly authorized under the terms
9 of the license contained in the file LICENSE in this distribution.
10
11 For more information about licensing, please refer to
12 http://www.ghostscript.com/licensing/. For information on
13 commercial licensing, go to http://www.artifex.com/licensing/ or
14 contact Artifex Software, Inc., 101 Lucas Valley Road #110,
15 San Rafael, CA 94903, U.S.A., +1(415)492-9861.
16
17 Author: Raph Levien <raph@artofcode.com>
18 */
19 /* $Id: zdfilter.c,v 1.6 2002/08/22 07:12:29 henrys Exp $ */
20 /* PostScript operators for managing the device filter stack */
21
22 /* We probably don't need all of these, they were copied from zdevice.c. */
23 #include "string_.h"
24 #include "ghost.h"
25 #include "oper.h"
26 #include "ialloc.h"
27 #include "idict.h"
28 #include "igstate.h"
29 #include "iname.h"
30 #include "interp.h"
31 #include "iparam.h"
32 #include "ivmspace.h"
33 #include "gsmatrix.h"
34 #include "gsstate.h"
35 #include "gxdevice.h"
36 #include "store.h"
37 #include "gsdfilt.h"
38
39 /* pushpdf14devicefilter is defined in ztrans.c */
40
41 /* - .popdevicefilter - */
42 private int
zpopdevicefilter(i_ctx_t * i_ctx_p)43 zpopdevicefilter(i_ctx_t *i_ctx_p)
44 {
45 gs_memory_t *mem = gs_memory_stable(imemory);
46
47 return gs_pop_device_filter(mem, igs);
48 }
49
50 const op_def zdfilter_op_defs[] =
51 {
52 {"0.popdevicefilter", zpopdevicefilter},
53 op_def_end(0)
54 };
55