xref: /plan9/sys/src/cmd/gs/src/sdcparam.h (revision 593dc095aefb2a85c828727bbfa9da139a49bdf4)
1 /* Copyright (C) 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: sdcparam.h,v 1.5 2002/06/16 05:00:54 lpd Exp $ */
18 /* DCT filter parameter setting and reading interface */
19 
20 #ifndef sdcparam_INCLUDED
21 #  define sdcparam_INCLUDED
22 
23 /*
24  * All of these procedures are defined in sdcparam.c and are only for
25  * internal use (by sddparam.c and sdeparam.c), so they are not
26  * documented here.
27  */
28 
29 int s_DCT_get_params(gs_param_list * plist, const stream_DCT_state * ss,
30 		     const stream_DCT_state * defaults);
31 int s_DCT_get_quantization_tables(gs_param_list * plist,
32 				  const stream_DCT_state * pdct,
33 				  const stream_DCT_state * defaults,
34 				  bool is_encode);
35 int s_DCT_get_huffman_tables(gs_param_list * plist,
36 			     const stream_DCT_state * pdct,
37 			     const stream_DCT_state * defaults,
38 			     bool is_encode);
39 
40 int s_DCT_byte_params(gs_param_list * plist, gs_param_name key, int start,
41 		      int count, UINT8 * pvals);
42 int s_DCT_put_params(gs_param_list * plist, stream_DCT_state * pdct);
43 int s_DCT_put_quantization_tables(gs_param_list * plist,
44 				  stream_DCT_state * pdct,
45 				  bool is_encode);
46 int s_DCT_put_huffman_tables(gs_param_list * plist, stream_DCT_state * pdct,
47 			     bool is_encode);
48 
49 #endif /* sdcparam_INCLUDED */
50