/* Copyright (C) 1994, 1998 artofcode LLC. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA, 02111-1307. */ /*$Id: gxtmap.h,v 1.2.6.1.2.1 2003/01/17 00:49:04 giles Exp $ */ /* Definition of transfer mapping function */ /* (also used for black generation and undercolor removal) */ #ifndef gxtmap_INCLUDED # define gxtmap_INCLUDED /* Common definition for mapping procedures. */ /* These are used for transfer functions, black generation, */ /* and undercolor removal. */ /* gx_transfer_map should probably be renamed gx_mapping_cache.... */ /* Define an abstract type for a transfer map. */ typedef struct gx_transfer_map_s gx_transfer_map; /* * Define the type of a mapping procedure. There are two forms of this. * The original form passed only the transfer map itself as an argument: */ typedef float (*gs_mapping_proc) (P2(floatp, const gx_transfer_map *)); /* * Later, we recognized that this procedure should really be a general * closure: */ typedef float (*gs_mapping_closure_proc_t) (P3(floatp value, const gx_transfer_map * pmap, const void *proc_data)); typedef struct gs_mapping_closure_s { gs_mapping_closure_proc_t proc; const void *data; } gs_mapping_closure_t; #endif /* gxtmap_INCLUDED */