zdfilter.c 1.5 KB

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