1 /* Copyright (C) 1996, 1997, 1998, 1999 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: iimage.h,v 1.7 2004/08/04 19:36:12 stefan Exp $ */ 18 /* Image operator entry points */ 19 /* Requires gscspace.h, gxiparam.h */ 20 21 #ifndef iimage_INCLUDED 22 # define iimage_INCLUDED 23 24 /* These procedures are exported by zimage.c for other modules. */ 25 26 /* 27 * Define a structure for image parameters other than those defined 28 * in the gs_*image*_t structure. 29 */ 30 typedef struct image_params_s { 31 bool MultipleDataSources; 32 ref DataSource[gs_image_max_components]; 33 const float *pDecode; 34 } image_params; 35 36 /* Extract and check parameters for an image. */ 37 int data_image_params(const gs_memory_t *mem, 38 const ref *op, gs_data_image_t *pim, 39 image_params *pip, bool require_DataSource, 40 int num_components, int max_bits_per_component, 41 bool has_alpha); 42 int pixel_image_params(i_ctx_t *i_ctx_p, const ref *op, 43 gs_pixel_image_t *pim, image_params * pip, 44 int max_bits_per_component, bool has_alpha); 45 46 /* Exported for zimage3.c and ztrans.c */ 47 int zimage_setup(i_ctx_t *i_ctx_p, const gs_pixel_image_t * pim, 48 const ref * sources, bool uses_color, int npop); 49 50 /* Exported for zdpnext.c */ 51 int image1_setup(i_ctx_t * i_ctx_p, bool has_alpha); 52 53 #endif /* iimage_INCLUDED */ 54