blob: b7957a634412a51f2f170999194d14e5bfd69e39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
/* Copyright (C) 2001-2006 artofcode LLC.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
implied.
This software is distributed under license and may not be copied, modified
or distributed except as expressly authorized under the terms of that
license. Refer to licensing information at http://www.artifex.com/
or contact Artifex Software, Inc., 7 Mt. Lassen Drive - Suite A-134,
San Rafael, CA 94903, U.S.A., +1(415)492-9861, for further information.
*/
/*$Id$ */
#ifndef gswts_INCLUDED
# define gswts_INCLUDED
#ifndef gs_wts_screen_enum_t_DEFINED
# define gs_wts_screen_enum_t_DEFINED
typedef struct gs_wts_screen_enum_s gs_wts_screen_enum_t;
#endif
typedef struct gx_wts_cell_params_s gx_wts_cell_params_t;
/* Note: this corresponds roughly to the SP structure in the WTS code. */
struct gx_wts_cell_params_s {
wts_screen_type t;
int width;
int height;
double ufast;
double vfast;
double uslow;
double vslow;
};
gx_wts_cell_params_t *
wts_pick_cell_size(gs_screen_halftone *ph, const gs_matrix *pmat);
gs_wts_screen_enum_t *
gs_wts_screen_enum_new(gx_wts_cell_params_t *wcp);
int
gs_wts_screen_enum_currentpoint(gs_wts_screen_enum_t *wse, gs_point *ppt);
int
gs_wts_screen_enum_next(gs_wts_screen_enum_t *wse, floatp value);
int
wts_sort_blue(gs_wts_screen_enum_t *wse);
int
wts_sort_cell(gs_wts_screen_enum_t *wse);
wts_screen_t *
wts_screen_from_enum(const gs_wts_screen_enum_t *wse);
void
gs_wts_free_enum(gs_wts_screen_enum_t *wse);
void
gs_wts_free_screen(wts_screen_t *wts);
#endif
|