Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
/* Copyright (C) 1994, 1995, 1996, 1997, 1998 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: gxdither.h,v 1.7 2005/05/05 05:35:22 dan Exp $ */
18
/* Interface to gxdither.c */
19
 
20
#ifndef gxdither_INCLUDED
21
#  define gxdither_INCLUDED
22
 
23
#include "gxfrac.h"
24
 
25
#ifndef gx_device_halftone_DEFINED
26
#  define gx_device_halftone_DEFINED
27
typedef struct gx_device_halftone_s gx_device_halftone;
28
#endif
29
 
30
/*
31
 * Render DeviceN possibly by halftoning.
32
 *  pcolors = pointer to an array color values (as fracs)
33
 *  pdevc - pointer to device color structure
34
 *  dev = pointer to device data structure
35
 *  pht = pointer to halftone data structure
36
 *  ht_phase  = halftone phase
37
 *  This is part of a kludge to minimize differences in the
38
 *  regression testing.
39
 */
40
int gx_render_device_DeviceN(frac * pcolor, gx_device_color * pdevc,
41
    gx_device * dev, gx_device_halftone * pdht, const gs_int_point * ht_phase);
42
/*
43
 * Reduce a colored halftone with 0 or 1 varying plane(s) to a pure color
44
 * or a binary halftone.
45
 */
46
int gx_devn_reduce_colored_halftone(gx_device_color *pdevc, gx_device *dev);
47
 
48
#endif /* gxdither_INCLUDED */