diff options
author | Henry Stiles <henry.stiles@artifex.com> | 1998-08-08 06:14:25 +0000 |
---|---|---|
committer | Henry Stiles <henry.stiles@artifex.com> | 1998-08-08 06:14:25 +0000 |
commit | a54bb96de84363bd3ffc7696805c268babc95954 (patch) | |
tree | ab95f514d2831fa22cecdf942d2530b656a66d9e /gs/src/gxdither.h | |
parent | 3305477b99710b8ce6223a0bdd5014ced4de6997 (diff) | |
download | ghostpdl-a54bb96de84363bd3ffc7696805c268babc95954.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r279,
which included commits to RCS files with non-trunk default branches.
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@280 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'gs/src/gxdither.h')
-rw-r--r-- | gs/src/gxdither.h | 70 |
1 files changed, 31 insertions, 39 deletions
diff --git a/gs/src/gxdither.h b/gs/src/gxdither.h index 3fa12d167..b6cd31e96 100644 --- a/gs/src/gxdither.h +++ b/gs/src/gxdither.h @@ -1,78 +1,70 @@ /* Copyright (C) 1994, 1995, 1996, 1997 Aladdin Enterprises. All rights reserved. - - This file is part of Aladdin Ghostscript. - - Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author - or distributor accepts any responsibility for the consequences of using it, - or for whether it serves any particular purpose or works at all, unless he - or she says so in writing. Refer to the Aladdin Ghostscript Free Public - License (the "License") for full details. - - Every copy of Aladdin Ghostscript must include a copy of the License, - normally in a plain ASCII text file named PUBLIC. The License grants you - the right to copy, modify and redistribute Aladdin Ghostscript, but only - under certain conditions described in the License. Among other things, the - License requires that the copyright notice and this notice be preserved on - all copies. -*/ -/* gxdither.h */ + This file is part of Aladdin Ghostscript. + + Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author + or distributor accepts any responsibility for the consequences of using it, + or for whether it serves any particular purpose or works at all, unless he + or she says so in writing. Refer to the Aladdin Ghostscript Free Public + License (the "License") for full details. + + Every copy of Aladdin Ghostscript must include a copy of the License, + normally in a plain ASCII text file named PUBLIC. The License grants you + the right to copy, modify and redistribute Aladdin Ghostscript, but only + under certain conditions described in the License. Among other things, the + License requires that the copyright notice and this notice be preserved on + all copies. + */ + +/*Id: gxdither.h */ /* Interface to gxdither.c */ +#ifndef gxdither_INCLUDED +# define gxdither_INCLUDED + #ifndef gx_device_halftone_DEFINED # define gx_device_halftone_DEFINED typedef struct gx_device_halftone_s gx_device_halftone; + #endif -#ifdef DPNEXT /* * Note that in the procedures below, the colors are specified by fracs, * but the alpha value is a gx_color_value. This is a design flaw that * we might be able to fix eventually. */ -#endif /* Render a gray, possibly by halftoning. */ /* Return 0 if complete, 1 if caller must do gx_color_load, <0 on error. */ int gx_render_device_gray(P6(frac gray, gx_color_value alpha, - gx_device_color *pdevc, gx_device *dev, - const gx_device_halftone *dev_ht, - const gs_int_point *ht_phase)); -#ifdef DPNEXT + gx_device_color * pdevc, gx_device * dev, + const gx_device_halftone * dev_ht, + const gs_int_point * ht_phase)); + #define gx_render_gray_alpha(gray, alpha, pdevc, pis, dev, select)\ gx_render_device_gray(gray, alpha, pdevc, dev, pis->dev_ht,\ &pis->screen_phase[select]) #define gx_render_gray(gray, pdevc, pis, dev, select)\ gx_render_gray_alpha(gray, pis->alpha, pdevc, pis, dev, select) -#else -#define gx_render_gray(gray, pdevc, pis, dev, select)\ - gx_render_device_gray(gray, pis->alpha, pdevc, dev, pis->dev_ht,\ - &pis->screen_phase[select]) -#endif /* Render a color, possibly by halftoning. */ /* Return as for gx_render_[device_]gray. */ int gx_render_device_color(P10(frac red, frac green, frac blue, frac white, bool cmyk, gx_color_value alpha, - gx_device_color *pdevc, gx_device *dev, - const gx_device_halftone *pdht, - const gs_int_point *ht_phase)); -#ifdef DPNEXT + gx_device_color * pdevc, gx_device * dev, + const gx_device_halftone * pdht, + const gs_int_point * ht_phase)); + #define gx_render_color_alpha(r, g, b, w, a, cmyk, pdevc, pis, dev, select)\ gx_render_device_color(r, g, b, w, cmyk, a, pdevc, dev,\ pis->dev_ht, &pis->screen_phase[select]) #define gx_render_color(r, g, b, w, cmyk, pdevc, pis, dev, select)\ gx_render_color_alpha(r, g, b, w, pis->alpha, cmyk, pdevc, pis, dev, select) -#else -#define gx_render_color(r, g, b, w, cmyk, pdevc, pis, dev, select)\ - gx_render_device_color(r, g, b, w, cmyk, pis->alpha, pdevc, dev,\ - pis->dev_ht, &pis->screen_phase[select]) -#endif #define gx_render_rgb(r, g, b, pdevc, pis, dev, select)\ gx_render_color(r, g, b, frac_0, false, pdevc, pis, dev, select) #define gx_render_cmyk(c, m, y, k, pdevc, pis, dev, select)\ gx_render_color(c, m, y, k, true, pdevc, pis, dev, select) -#ifdef DPNEXT #define gx_render_rgb_alpha(r, g, b, a, pdevc, pis, dev, select)\ gx_render_color_alpha(r, g, b, frac_0, a, false, pdevc, pis, dev, select) -#endif + +#endif /* gxdither_INCLUDED */ |