1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- /* Copyright (C) 2002 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 the license contained in the file LICENSE in this distribution.
-
- For more information about licensing, please refer to
- http://www.ghostscript.com/licensing/. For information on
- commercial licensing, go to http://www.artifex.com/licensing/ or
- contact Artifex Software, Inc., 101 Lucas Valley Road #110,
- San Rafael, CA 94903, U.S.A., +1(415)492-9861.
- */
- /*$Id: gswts.h,v 1.2 2002/11/02 07:31:45 raph Exp $ */
- #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
|