xref: /plan9/sys/src/cmd/gs/src/gsjmorec.h (revision 593dc095aefb2a85c828727bbfa9da139a49bdf4)
1 /* Copyright (C) 1994, 1995 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: gsjmorec.h,v 1.5 2002/02/21 22:24:52 giles Exp $ */
18 /* "Wrapper" for Independent JPEG Group code jmorecfg.h */
19 
20 #ifndef gsjmorec_INCLUDED
21 #  define gsjmorec_INCLUDED
22 
23 #include "jmcorig.h"
24 
25 /* Remove unwanted / unneeded features. */
26 #undef DCT_IFAST_SUPPORTED
27 #if FPU_TYPE <= 0
28 #  undef DCT_FLOAT_SUPPORTED
29 #endif
30 #undef C_MULTISCAN_FILES_SUPPORTED
31 #undef C_PROGRESSIVE_SUPPORTED
32 #undef ENTROPY_OPT_SUPPORTED
33 #undef INPUT_SMOOTHING_SUPPORTED
34 
35 
36 /* Progressive JPEG is required for PDF 1.3.
37  * Don't undefine D_MULTISCAN_FILES_SUPPORTED and D_PROGRESSIVE_SUPPORTED
38  */
39 
40 #undef BLOCK_SMOOTHING_SUPPORTED
41 #undef IDCT_SCALING_SUPPORTED
42 #undef UPSAMPLE_SCALING_SUPPORTED
43 #undef UPSAMPLE_MERGING_SUPPORTED
44 #undef QUANT_1PASS_SUPPORTED
45 #undef QUANT_2PASS_SUPPORTED
46 /*
47  * Read "JPEG" files with up to 64 blocks/MCU for Adobe compatibility.
48  * Note that this #define will have no effect in pre-v6 IJG versions.
49  */
50 #define D_MAX_BLOCKS_IN_MCU   64
51 
52 #endif /* gsjmorec_INCLUDED */
53