/*
  Configuration defines for installed libtiff.
  This file maintained for backward compatibility. Do not use definitions
  from this file in your programs.
*/

#ifndef _TIFFCONF_
#define _TIFFCONF_

/* Define to 1 if the system has the type `int16'. */
#cmakedefine HAVE_INT16

/* Define to 1 if the system has the type `int32'. */
#cmakedefine HAVE_INT32

/* Define to 1 if the system has the type `int8'. */
#cmakedefine HAVE_INT8

/* The size of a `int', as computed by sizeof. */
#define SIZEOF_INT @SIZEOF_INT@

/* The size of a `long', as computed by sizeof. */
#define SIZEOF_LONG @SIZEOF_LONG@

/* Signed 8-bit type */
#define TIFF_INT8_T char

/* Unsigned 8-bit type */
#define TIFF_UINT8_T unsigned char

/* Signed 16-bit type */
#define TIFF_INT16_T signed __INT16_TYPE__

/* Unsigned 16-bit type */
#define TIFF_UINT16_T unsigned __INT16_TYPE__

/* Signed 32-bit type formatter */
#define TIFF_INT32_FORMAT "%d"

/* Signed 32-bit type */
#define TIFF_INT32_T signed __INT32_TYPE__

/* Unsigned 32-bit type formatter */
#define TIFF_UINT32_FORMAT "%u"

/* Unsigned 32-bit type */
#define TIFF_UINT32_T unsigned __INT32_TYPE__

/* Signed 64-bit type formatter */
#define TIFF_INT64_FORMAT "%ld"

/* Signed 64-bit type */
#define TIFF_INT64_T signed __INT64_TYPE__

/* Unsigned 64-bit type formatter */
#define TIFF_UINT64_FORMAT "%llu"

/* Unsigned 64-bit type */
#define TIFF_UINT64_T unsigned __INT64_TYPE__

/* Signed size type */
#define TIFF_SSIZE_T signed __INT64_TYPE__

#define TIFF_SSIZE_FORMAT "%llu"

/* Pointer difference type */
#define TIFF_PTRDIFF_T long

/* Compatibility stuff. */

/* Define as 0 or 1 according to the floating point format suported by the
   machine */
#cmakedefine HAVE_IEEEFP

/* Set the native cpu bit order (FILLORDER_LSB2MSB or FILLORDER_MSB2LSB) */
#cmakedefine HOST_FILLORDER FILLORDER_LSB2MSB

/* Native cpu byte order: 1 if big-endian (Motorola) or 0 if little-endian
   (Intel) */
#cmakedefine HOST_BIGENDIAN 0

/* Support CCITT Group 3 & 4 algorithms */
#cmakedefine CCITT_SUPPORT

/* Support JPEG compression (requires IJG JPEG library) */
#cmakedefine JPEG_SUPPORT

/* Support LogLuv high dynamic range encoding */
#cmakedefine LOGLUV_SUPPORT

/* Support LZW algorithm */
#cmakedefine LZW_SUPPORT

/* Support NeXT 2-bit RLE algorithm */
#cmakedefine NEXT_SUPPORT

/* Support Old JPEG compresson (read contrib/ojpeg/README first! Compilation
   fails with unpatched IJG JPEG library) */
#cmakedefine OJPEG_SUPPORT

/* Support Macintosh PackBits algorithm */
#cmakedefine PACKBITS_SUPPORT

/* Support Pixar log-format algorithm (requires Zlib) */
#cmakedefine PIXARLOG_SUPPORT

/* Support ThunderScan 4-bit RLE algorithm */
#cmakedefine THUNDER_SUPPORT

/* Support Deflate compression */
#cmakedefine ZIP_SUPPORT

/* Support strip chopping (whether or not to convert single-strip uncompressed
   images to mutiple strips of ~8Kb to reduce memory usage) */
#define STRIPCHOP_DEFAULT @STRIPCHOP_DEFAULT@

/* Enable SubIFD tag (330) support */
#cmakedefine SUBIFD_SUPPORT

/* Treat extra sample as alpha (default enabled). The RGBA interface will
   treat a fourth sample with no EXTRASAMPLE_ value as being ASSOCALPHA. Many
   packages produce RGBA files but don't mark the alpha properly. */
#cmakedefine DEFAULT_EXTRASAMPLE_AS_ALPHA

/* Pick up YCbCr subsampling info from the JPEG data stream to support files
   lacking the tag (default enabled). */
#cmakedefine CHECK_JPEG_YCBCR_SUBSAMPLING

/* Support MS MDI magic number files as TIFF */
#cmakedefine01 MDI_SUPPORT

/*
 * Feature support definitions.
 * XXX: These macros are obsoleted. Don't use them in your apps!
 * Macros stays here for backward compatibility and should be always defined.
 */
#define COLORIMETRY_SUPPORT
#define YCBCR_SUPPORT
#define CMYK_SUPPORT
#define ICC_SUPPORT
#define PHOTOSHOP_SUPPORT
#define IPTC_SUPPORT

#endif /* _TIFFCONF_ */
