ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/tiffconf.h
Revision: 3.3
Committed: Fri Jun 6 16:38:47 2003 UTC (21 years, 11 months ago) by schorsch
Content type: text/plain
Branch: MAIN
Changes since 3.2: +7 -1 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 /* $Header: /cvs/radiance/ray/src/common/tiffconf.h,v 3.2 2003/06/05 19:29:34 schorsch Exp $ */
2 /*
3 * Copyright (c) 1988-1997 Sam Leffler
4 * Copyright (c) 1991-1997 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 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 /*
32 * Library Configuration Definitions.
33 *
34 * This file defines the default configuration for the library.
35 * If the target system does not have make or a way to specify
36 * #defines on the command line, this file can be edited to
37 * configure the library. Otherwise, one can override portability
38 * and configuration-related definitions from a Makefile or command
39 * line by defining FEATURE_SUPPORT and COMPRESSION_SUPPORT (see below).
40 */
41
42 /*
43 * General portability-related defines:
44 *
45 * HAVE_IEEEFP define as 0 or 1 according to the floating point
46 * format suported by the machine
47 * BSDTYPES define this if your system does NOT define the
48 * usual 4BSD typedefs u_int et. al.
49 * HAVE_MMAP enable support for memory mapping read-only files;
50 * this is typically deduced by the configure script
51 * HOST_FILLORDER native cpu bit order: one of FILLORDER_MSB2LSB
52 * or FILLODER_LSB2MSB; this is typically set by the
53 * configure script
54 * HOST_BIGENDIAN native cpu byte order: 1 if big-endian (Motorola)
55 * or 0 if little-endian (Intel); this may be used
56 * in codecs to optimize code
57 * USE_64BIT_API set to 1 if tif_unix.c should use lseek64(),
58 * fstat64() and stat64 allowing 2-4GB files.
59 */
60 #ifndef HAVE_IEEEFP
61 #define HAVE_IEEEFP 1
62 #endif
63 #ifndef HOST_FILLORDER
64 #define HOST_FILLORDER FILLORDER_MSB2LSB
65 #endif
66 #ifndef HOST_BIGENDIAN
67 #define HOST_BIGENDIAN 1
68 #endif
69
70 #ifndef USE_64BIT_API
71 # define USE_64BIT_API 0
72 #endif
73
74 #ifndef FEATURE_SUPPORT
75 /*
76 * Feature support definitions:
77 *
78 * COLORIMETRY_SUPPORT enable support for 6.0 colorimetry tags
79 * YCBCR_SUPPORT enable support for 6.0 YCbCr tags
80 * CMYK_SUPPORT enable support for 6.0 CMYK tags
81 * ICC_SUPPORT enable support for ICC profile tag
82 * PHOTOSHOP_SUPPORT enable support for PHOTOSHOP resource tag
83 * IPTC_SUPPORT enable support for RichTIFF IPTC tag
84 */
85 #define COLORIMETRY_SUPPORT
86 #define YCBCR_SUPPORT
87 #define CMYK_SUPPORT
88 #define ICC_SUPPORT
89 #define PHOTOSHOP_SUPPORT
90 #define IPTC_SUPPORT
91 #endif /* FEATURE_SUPPORT */
92
93 #ifndef COMPRESSION_SUPPORT
94 /*
95 * Compression support defines:
96 *
97 * CCITT_SUPPORT enable support for CCITT Group 3 & 4 algorithms
98 * PACKBITS_SUPPORT enable support for Macintosh PackBits algorithm
99 * LZW_SUPPORT enable support for LZW algorithm
100 * THUNDER_SUPPORT enable support for ThunderScan 4-bit RLE algorithm
101 * NEXT_SUPPORT enable support for NeXT 2-bit RLE algorithm
102 * OJPEG_SUPPORT enable support for 6.0-style JPEG DCT algorithms
103 * (no builtin support, only a codec hook)
104 * JPEG_SUPPORT enable support for post-6.0-style JPEG DCT algorithms
105 * (requires freely available IJG software, see tif_jpeg.c)
106 * ZIP_SUPPORT enable support for Deflate algorithm
107 * (requires freely available zlib software, see tif_zip.c)
108 * PIXARLOG_SUPPORT enable support for Pixar log-format algorithm
109 * LOGLUV_SUPPORT enable support for LogLuv high dynamic range encoding
110 */
111 #define CCITT_SUPPORT
112 #define PACKBITS_SUPPORT
113 #define LZW_SUPPORT
114 #define THUNDER_SUPPORT
115 #define NEXT_SUPPORT
116 #define LOGLUV_SUPPORT
117 #endif /* COMPRESSION_SUPPORT */
118
119 /*
120 * If JPEG compression is enabled then we must also include
121 * support for the colorimetry and YCbCr-related tags.
122 */
123 #ifdef JPEG_SUPPORT
124 #ifndef YCBCR_SUPPORT
125 #define YCBCR_SUPPORT
126 #endif
127 #ifndef COLORIMETRY_SUPPORT
128 #define COLORIMETRY_SUPPORT
129 #endif
130 #endif /* JPEG_SUPPORT */
131
132 /*
133 * ``Orthogonal Features''
134 *
135 * STRIPCHOP_DEFAULT default handling of strip chopping support (whether
136 * or not to convert single-strip uncompressed images
137 * to mutiple strips of ~8Kb--to reduce memory use)
138 * SUBIFD_SUPPORT enable support for SubIFD tag (thumbnails and such)
139 */
140 #ifndef STRIPCHOP_DEFAULT
141 #define STRIPCHOP_DEFAULT TIFF_STRIPCHOP /* default is to enable */
142 #endif
143 #ifndef SUBIFD_SUPPORT
144 #define SUBIFD_SUPPORT 1 /* enable SubIFD tag (330) support */
145 #endif
146 #ifdef __cplusplus
147 }
148 #endif
149 #endif /* _TIFFCONF_ */