home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 February / PCWorld_2002-02_cd.bin / Software / Vyzkuste / pdflib / pdflib-4.0.1.sit / pdflib-4.0.1 / tiff / tiffconf.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-07-04  |  5.0 KB  |  135 lines  |  [TEXT/CWIE]

  1. /*
  2.  * Copyright (c) 1988-1997 Sam Leffler
  3.  * Copyright (c) 1991-1997 Silicon Graphics, Inc.
  4.  *
  5.  * Permission to use, copy, modify, distribute, and sell this software and 
  6.  * its documentation for any purpose is hereby granted without fee, provided
  7.  * that (i) the above copyright notices and this permission notice appear in
  8.  * all copies of the software and related documentation, and (ii) the names of
  9.  * Sam Leffler and Silicon Graphics may not be used in any advertising or
  10.  * publicity relating to the software without the specific, prior written
  11.  * permission of Sam Leffler and Silicon Graphics.
  12.  * 
  13.  * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  14.  * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  15.  * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  16.  * 
  17.  * IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  18.  * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  19.  * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20.  * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  21.  * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  22.  * OF THIS SOFTWARE.
  23.  */
  24.  
  25. /* $Id: tiffconf.h,v 1.5 2001/03/21 10:41:18 rjs Exp $ */
  26.  
  27. #ifndef _TIFFCONF_
  28. #define    _TIFFCONF_
  29. /*
  30.  * Library Configuration Definitions.
  31.  *
  32.  * This file defines the default configuration for the library.
  33.  * If the target system does not have make or a way to specify
  34.  * #defines on the command line, this file can be edited to
  35.  * configure the library.  Otherwise, one can override portability
  36.  * and configuration-related definitions from a Makefile or command
  37.  * line by defining FEATURE_SUPPORT and COMPRESSION_SUPPORT (see below).
  38.  */
  39.  
  40. /*
  41.  * General portability-related defines:
  42.  *
  43.  * HAVE_IEEEFP        define as 0 or 1 according to the floating point
  44.  *            format suported by the machine
  45.  * BSDTYPES        define this if your system does NOT define the
  46.  *            usual 4BSD typedefs u_int et. al.
  47.  * HAVE_MMAP        enable support for memory mapping read-only files;
  48.  *            this is typically deduced by the configure script
  49.  * HOST_FILLORDER    native cpu bit order: one of FILLORDER_MSB2LSB
  50.  *            or FILLODER_LSB2MSB; this is typically set by the
  51.  *            configure script
  52.  * HOST_BIGENDIAN    native cpu byte order: 1 if big-endian (Motorola)
  53.  *            or 0 if little-endian (Intel); this may be used
  54.  *            in codecs to optimize code
  55.  * USE_64BIT_API    set to 1 if tif_unix.c should use lseek64(),
  56.  *                      fstat64() and stat64 allowing 2-4GB files.
  57.  */
  58. #ifndef HAVE_IEEEFP
  59. #define    HAVE_IEEEFP    1
  60. #endif
  61.  
  62. #ifndef FEATURE_SUPPORT
  63. /*
  64.  * Feature support definitions:
  65.  *
  66.  *    COLORIMETRY_SUPPORT enable support for 6.0 colorimetry tags
  67.  *    YCBCR_SUPPORT    enable support for 6.0 YCbCr tags
  68.  *    CMYK_SUPPORT    enable support for 6.0 CMYK tags
  69.  *    ICC_SUPPORT    enable support for ICC profile tag
  70.  *    PHOTOSHOP_SUPPORT enable support for PHOTOSHOP resource tag
  71.  *    IPTC_SUPPORT  enable support for RichTIFF IPTC tag
  72.  */
  73. #define    COLORIMETRY_SUPPORT
  74. #define    YCBCR_SUPPORT
  75. #define    CMYK_SUPPORT
  76. #define    ICC_SUPPORT
  77. #define PHOTOSHOP_SUPPORT
  78. #define IPTC_SUPPORT
  79. #endif /* FEATURE_SUPPORT */
  80.  
  81. #ifndef COMPRESSION_SUPPORT
  82. /*
  83.  * Compression support defines:
  84.  *
  85.  *    CCITT_SUPPORT    enable support for CCITT Group 3 & 4 algorithms
  86.  *    PACKBITS_SUPPORT    enable support for Macintosh PackBits algorithm
  87.  *    LZW_SUPPORT    enable support for LZW algorithm
  88.  *    THUNDER_SUPPORT    enable support for ThunderScan 4-bit RLE algorithm
  89.  *    NEXT_SUPPORT    enable support for NeXT 2-bit RLE algorithm
  90.  *    OJPEG_SUPPORT    enable support for 6.0-style JPEG DCT algorithms
  91.  *            (no builtin support, only a codec hook)
  92.  *    JPEG_SUPPORT    enable support for post-6.0-style JPEG DCT algorithms
  93.  *            (requires freely available IJG software, see tif_jpeg.c)
  94.  *    ZIP_SUPPORT    enable support for Deflate algorithm
  95.  *            (requires freely available zlib software, see tif_zip.c)
  96.  *    PIXARLOG_SUPPORT    enable support for Pixar log-format algorithm
  97.  *    LOGLUV_SUPPORT    enable support for LogLuv high dynamic range encoding
  98.  */
  99. #define    CCITT_SUPPORT
  100. #define    PACKBITS_SUPPORT
  101. #undef    LZW_SUPPORT    /* PDFlib GmbH */
  102. #define    THUNDER_SUPPORT
  103. #define    NEXT_SUPPORT
  104. #undef LOGLUV_SUPPORT    /* PDFlib GmbH */
  105. #endif /* COMPRESSION_SUPPORT */
  106.  
  107. /*
  108.  * If JPEG compression is enabled then we must also include
  109.  * support for the colorimetry and YCbCr-related tags.
  110.  */
  111. #ifdef JPEG_SUPPORT
  112. #ifndef YCBCR_SUPPORT
  113. #define    YCBCR_SUPPORT
  114. #endif
  115. #ifndef COLORIMETRY_SUPPORT
  116. #define    COLORIMETRY_SUPPORT
  117. #endif
  118. #endif /* JPEG_SUPPORT */
  119.  
  120. /*
  121.  * ``Orthogonal Features''
  122.  *
  123.  * STRIPCHOP_DEFAULT    default handling of strip chopping support (whether
  124.  *            or not to convert single-strip uncompressed images
  125.  *            to mutiple strips of ~8Kb--to reduce memory use)
  126.  * SUBIFD_SUPPORT    enable support for SubIFD tag (thumbnails and such)
  127.  */
  128. #ifndef STRIPCHOP_DEFAULT
  129. #define    STRIPCHOP_DEFAULT    TIFF_STRIPCHOP    /* default is to enable */
  130. #endif
  131. #ifndef SUBIFD_SUPPORT
  132. #define    SUBIFD_SUPPORT        1    /* enable SubIFD tag (330) support */
  133. #endif
  134. #endif /* _TIFFCONF_ */
  135.