icsmap.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* Copyright (C) 1994, 1999 Aladdin Enterprises. All rights reserved.
  2. This software is provided AS-IS with no warranty, either express or
  3. implied.
  4. This software is distributed under license and may not be copied,
  5. modified or distributed except as expressly authorized under the terms
  6. of the license contained in the file LICENSE in this distribution.
  7. For more information about licensing, please refer to
  8. http://www.ghostscript.com/licensing/. For information on
  9. commercial licensing, go to http://www.artifex.com/licensing/ or
  10. contact Artifex Software, Inc., 101 Lucas Valley Road #110,
  11. San Rafael, CA 94903, U.S.A., +1(415)492-9861.
  12. */
  13. /* $Id: icsmap.h,v 1.5 2002/06/16 04:47:10 lpd Exp $ */
  14. /* Interface to shared routines for loading the cached color space maps. */
  15. #ifndef icsmap_INCLUDED
  16. # define icsmap_INCLUDED
  17. /*
  18. * Set up to load a cached map for an Indexed or substituted Separation
  19. * color space. The implementation is in zcsindex.c. When the map1
  20. * procedure is called, the following structure is on the e_stack:
  21. */
  22. #define num_csme 5
  23. # define csme_num_components (-4) /* t_integer */
  24. # define csme_map (-3) /* t_struct (bytes) */
  25. # define csme_proc (-2) /* -procedure- */
  26. # define csme_hival (-1) /* t_integer */
  27. # define csme_index 0 /* t_integer */
  28. /*
  29. * Note that the underlying color space parameter is a direct space, not a
  30. * base space, since the underlying space of an Indexed color space may be
  31. * a Separation or DeviceN space.
  32. */
  33. int zcs_begin_map(i_ctx_t *i_ctx_p, gs_indexed_map ** pmap,
  34. const ref * pproc, int num_entries,
  35. const gs_direct_color_space * base_space,
  36. op_proc_t map1);
  37. #endif /* icsmap_INCLUDED */