1 /* $Header: /usr/people/sam/tiff/libtiff/RCS/tiffconf.h,v 1.5 1994/09/17 23:34:09 sam Exp $ */ 2 /* 3 * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994 Sam Leffler 4 * Copyright (c) 1991, 1992, 1993, 1994 Silicon Graphics, Inc. 5 * 6 * Permission to use, copy, modify, distribute, and sell this software and 7 * its documentation for any purpose is hereby granted without fee, provided 8 * that (i) the above copyright notices and this permission notice appear in 9 * all copies of the software and related documentation, and (ii) the names of 10 * Sam Leffler and Silicon Graphics may not be used in any advertising or 11 * publicity relating to the software without the specific, prior written 12 * permission of Sam Leffler and Silicon Graphics. 13 * 14 * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 15 * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 16 * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 17 * 18 * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR 19 * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, 20 * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 21 * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 22 * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 23 * OF THIS SOFTWARE. 24 */ 25 26 #ifndef _TIFFCONF_ 27 #define _TIFFCONF_ 28 /* 29 * Library Configuration Definitions. 30 * 31 * This file defines the default configuration for the library. 32 * If the target system does not have make or a way to specify 33 * #defines on the command line, this file can be edited to 34 * configure the library. Otherwise, one can override portability 35 * and configuration-related definitions from a Makefile or command 36 * line by defining FEATURE_SUPPORT and COMPRESSION_SUPPORT (see below). 37 */ 38 39 /* 40 * General portability-related defines: 41 * 42 * HAVE_IEEEFP define as 0 or 1 according to the floating point 43 * format suported by the machine 44 * BSDTYPES define this if your system does NOT define the 45 * usual 4BSD typedefs 46 */ 47 #ifndef HAVE_IEEEFP 48 #define HAVE_IEEEFP 1 49 #endif 50 51 #ifndef FEATURE_SUPPORT 52 /* 53 * Feature support definitions: 54 * 55 * MMAP_SUPPORT enable support for memory mapping read-only files 56 * COLORIMETRY_SUPPORT enable support for 6.0 colorimetry tags 57 * JPEG_SUPPORT enable support for 6.0 JPEG tags & JPEG algorithms 58 * YCBCR_SUPPORT enable support for 6.0 YCbCr tags 59 * CMYK_SUPPORT enable support for 6.0 CMYK tags 60 */ 61 #define COLORIMETRY_SUPPORT 62 #define JPEG_SUPPORT 63 #define YCBCR_SUPPORT 64 #define CMYK_SUPPORT 65 #endif 66 67 #ifndef COMPRESSION_SUPPORT 68 /* 69 * Compression support defines: 70 * 71 * CCITT_SUPPORT enable support for CCITT Group 3 & 4 algorithms 72 * PACKBITS_SUPPORT enable support for Macintosh PackBits algorithm 73 * LZW_SUPPORT enable support for LZW algorithm 74 * THUNDER_SUPPORT enable support for ThunderScan 4-bit RLE algorithm 75 * NEXT_SUPPORT enable support for NeXT 2-bit RLE algorithm 76 * JPEG_SUPPORT enable support for JPEG DCT algorithm 77 */ 78 #define CCITT_SUPPORT 79 #define PACKBITS_SUPPORT 80 #define LZW_SUPPORT 81 #define THUNDER_SUPPORT 82 #define NEXT_SUPPORT 83 #endif 84 85 /* 86 * ``Orthogonal Features'' 87 * 88 * STRIPCHOP_SUPPORT automatically convert single-strip uncompressed images 89 * to mutiple strips of ~8Kb (for reducing memory use) 90 * SUBIFD_SUPPORT enable support for SubIFD tag (thumbnails and such) 91 */ 92 #ifndef STRIPCHOP_SUPPORT 93 #define STRIPCHOP_SUPPORT 1 /* enable strip chopping */ 94 #endif 95 #ifndef SUBIFD_SUPPORT 96 #define SUBIFD_SUPPORT 1 /* enable SubIFD tag (330) support */ 97 #endif 98 #endif /* _TIFFCONF_ */ 99