File: tiffconf.h

package info (click to toggle)
vtk 5.0.4-1.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 51,084 kB
  • ctags: 70,426
  • sloc: cpp: 524,166; ansic: 220,276; tcl: 43,377; python: 14,037; perl: 3,102; java: 1,436; yacc: 1,033; sh: 339; lex: 248; makefile: 197; asm: 154
file content (162 lines) | stat: -rw-r--r-- 6,178 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
/* $Header: /cvsroot/VTK/VTK/Utilities/vtktiff/tiffconf.h,v 1.1 2004/04/28 15:49:22 king Exp $ */
/*
 * Copyright (c) 1988-1997 Sam Leffler
 * Copyright (c) 1991-1997 Silicon Graphics, Inc.
 *
 * Permission to use, copy, modify, distribute, and sell this software and 
 * its documentation for any purpose is hereby granted without fee, provided
 * that (i) the above copyright notices and this permission notice appear in
 * all copies of the software and related documentation, and (ii) the names of
 * Sam Leffler and Silicon Graphics may not be used in any advertising or
 * publicity relating to the software without the specific, prior written
 * permission of Sam Leffler and Silicon Graphics.
 * 
 * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
 * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
 * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
 * 
 * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
 * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
 * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
 * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
 * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
 * OF THIS SOFTWARE.
 */

#ifndef _TIFFCONF_
#define _TIFFCONF_
/*
 * Library Configuration Definitions.
 *
 * This file defines the default configuration for the library.
 * If the target system does not have make or a way to specify
 * #defines on the command line, this file can be edited to
 * configure the library.  Otherwise, one can override portability
 * and configuration-related definitions from a Makefile or command
 * line by defining FEATURE_SUPPORT and COMPRESSION_SUPPORT (see below).
 */

/*
 * General portability-related defines:
 *
 * HAVE_IEEEFP          define as 0 or 1 according to the floating point
 *                      format suported by the machine
 * BSDTYPES             define this if your system does NOT define the
 *                      usual 4BSD typedefs u_int et. al.
 * HAVE_MMAP            enable support for memory mapping read-only files;
 *                      this is typically deduced by the configure script
 * HOST_FILLORDER       native cpu bit order: one of FILLORDER_MSB2LSB
 *                      or FILLODER_LSB2MSB; this is typically set by the
 *                      configure script
 * HOST_BIGENDIAN       native cpu byte order: 1 if big-endian (Motorola)
 *                      or 0 if little-endian (Intel); this may be used
 *                      in codecs to optimize code
 * USE_64BIT_API        set to 1 if tif_unix.c should use lseek64(),
 *                      fstat64() and stat64 allowing 2-4GB files.
 */
#ifndef HAVE_IEEEFP
#define HAVE_IEEEFP     1
#endif
#ifndef HOST_FILLORDER
#define HOST_FILLORDER  FILLORDER_MSB2LSB
#endif
#ifndef HOST_BIGENDIAN
#define HOST_BIGENDIAN  1
#endif

#ifndef USE_64BIT_API
#  define USE_64BIT_API 0
#endif

#ifndef FEATURE_SUPPORT
/*
 * Feature support definitions:
 *
 *    COLORIMETRY_SUPPORT enable support for 6.0 colorimetry tags
 *    YCBCR_SUPPORT     enable support for 6.0 YCbCr tags
 *    CMYK_SUPPORT      enable support for 6.0 CMYK tags
 *    ICC_SUPPORT       enable support for ICC profile tag
 *    PHOTOSHOP_SUPPORT enable support for PHOTOSHOP resource tag
 *    IPTC_SUPPORT  enable support for RichTIFF IPTC tag
 */
#define COLORIMETRY_SUPPORT
#define YCBCR_SUPPORT
#define CMYK_SUPPORT
#define ICC_SUPPORT
#define PHOTOSHOP_SUPPORT
#define IPTC_SUPPORT
#endif /* FEATURE_SUPPORT */

#ifndef COMPRESSION_SUPPORT
/*
 * Compression support defines:
 *
 *    CCITT_SUPPORT     enable support for CCITT Group 3 & 4 algorithms
 *    PACKBITS_SUPPORT  enable support for Macintosh PackBits algorithm
 *    LZW_SUPPORT       enable support for LZW algorithm
 *    THUNDER_SUPPORT   enable support for ThunderScan 4-bit RLE algorithm
 *    NEXT_SUPPORT      enable support for NeXT 2-bit RLE algorithm
 *    OJPEG_SUPPORT     enable support for 6.0-style JPEG DCT algorithms
 *                      (requires IJG software)
 *    JPEG_SUPPORT      enable support for post-6.0-style JPEG DCT algorithms
 *                      (requires freely available IJG software, see tif_jpeg.c)
 *    ZIP_SUPPORT       enable support for Deflate algorithm
 *                      (requires freely available zlib software, see tif_zip.c)
 *    PIXARLOG_SUPPORT  enable support for Pixar log-format algorithm
 *    LOGLUV_SUPPORT    enable support for LogLuv high dynamic range encoding
 */
#define CCITT_SUPPORT
#define PACKBITS_SUPPORT
#define LZW_SUPPORT
#define THUNDER_SUPPORT
#define NEXT_SUPPORT
#define LOGLUV_SUPPORT
#endif /* COMPRESSION_SUPPORT */

/*
 * If JPEG compression is enabled then we must also include
 * support for the colorimetry and YCbCr-related tags.
 */
#ifdef JPEG_SUPPORT
#ifndef YCBCR_SUPPORT
#define YCBCR_SUPPORT
#endif
#ifndef COLORIMETRY_SUPPORT
#define COLORIMETRY_SUPPORT
#endif
#endif /* JPEG_SUPPORT */

/*
 * ``Orthogonal Features''
 *
 * STRIPCHOP_DEFAULT    default handling of strip chopping support (whether
 *                      or not to convert single-strip uncompressed images
 *                      to mutiple strips of ~8Kb--to reduce memory use)
 * SUBIFD_SUPPORT       enable support for SubIFD tag (thumbnails and such)
 */
#ifndef STRIPCHOP_DEFAULT
#define STRIPCHOP_DEFAULT       TIFF_STRIPCHOP  /* default is to enable */
#endif
#ifndef SUBIFD_SUPPORT
#define SUBIFD_SUPPORT          1       /* enable SubIFD tag (330) support */
#endif

#if defined ( _MSC_VER )
#pragma warning ( disable : 4057 )
#pragma warning ( disable : 4100 )
#pragma warning ( disable : 4115 )
#pragma warning ( disable : 4127 )
#pragma warning ( disable : 4189 )
#pragma warning ( disable : 4244 )
#pragma warning ( disable : 4251 )
#pragma warning ( disable : 4267 )
#pragma warning ( disable : 4305 )
#pragma warning ( disable : 4309 )
#pragma warning ( disable : 4505 )
#pragma warning ( disable : 4706 )
#pragma warning ( disable : 4786 )
#pragma warning ( disable : 4311 )
#pragma warning ( disable : 4312 )
#endif

#endif /* _TIFFCONF_ */