LibTIFF 4.7.2
TIFF library public API and implementation reference
Loading...
Searching...
No Matches
Macros
Legacy build configuration

Describe compatibility definitions in the configured public header. More...

Collaboration diagram for Legacy build configuration:

Macros

#define TIFF_INT16_T   int16_t
 Define the configured signed 16-bit integer type.
 
#define TIFF_INT32_T   int32_t
 Define the configured signed 32-bit integer type.
 
#define TIFF_INT64_T   int64_t
 Define the configured signed 64-bit integer type.
 
#define TIFF_INT8_T   int8_t
 Define the configured signed 8-bit integer type.
 
#define TIFF_UINT16_T   uint16_t
 Define the configured unsigned 16-bit integer type.
 
#define TIFF_UINT32_T   uint32_t
 Define the configured unsigned 32-bit integer type.
 
#define TIFF_UINT64_T   uint64_t
 Define the configured unsigned 64-bit integer type.
 
#define TIFF_UINT8_T   uint8_t
 Define the configured unsigned 8-bit integer type.
 
#define TIFF_SSIZE_T   int64_t
 Define the signed addressing-size type used for tmsize_t.
 
#define HAVE_IEEEFP   1
 Indicate IEEE floating-point representation when defined to 1.
 
#define HOST_FILLORDER   FILLORDER_LSB2MSB
 Retain the legacy least-significant-bit-first fill-order constant.
 
#define HOST_BIGENDIAN   0
 Indicate native CPU byte order: 1 for big-endian, 0 for little-endian.
 
#define CCITT_SUPPORT   1
 Indicate inclusion of CCITT Group 3 and Group 4 codecs when defined.
 
#define JPEG_SUPPORT   1
 Indicate inclusion of the JPEG codec when defined.
 
#define JBIG_SUPPORT
 Indicate inclusion of the JBIG codec when defined.
 
#define LERC_SUPPORT   1
 Indicate inclusion of the LERC codec when defined.
 
#define LOGLUV_SUPPORT   1
 Indicate inclusion of the LogLuv codec when defined.
 
#define LZW_SUPPORT   1
 Indicate inclusion of the LZW codec when defined.
 
#define NEXT_SUPPORT   1
 Indicate inclusion of the NeXT 2-bit RLE codec when defined.
 
#define OJPEG_SUPPORT   1
 Indicate inclusion of the old-style JPEG reader when defined.
 
#define PACKBITS_SUPPORT   1
 Indicate inclusion of the PackBits codec when defined.
 
#define PIXARLOG_SUPPORT   1
 Indicate inclusion of the PixarLog codec when defined.
 
#define THUNDER_SUPPORT   1
 Indicate inclusion of the ThunderScan codec when defined.
 
#define ZIP_SUPPORT   1
 Indicate inclusion of Deflate compression support when defined.
 
#define LIBDEFLATE_SUPPORT   1
 Indicate use of libdeflate for Deflate compression when defined.
 
#define STRIPCHOP_DEFAULT   TIFF_STRIPCHOP
 Define the default strip-chopping flag when strip chopping is enabled.
 
#define SUBIFD_SUPPORT   1
 Indicate support for SubIFD tag handling when defined.
 
#define DEFAULT_EXTRASAMPLE_AS_ALPHA   1
 Enable the RGBA reader's fallback alpha interpretation when defined.
 
#define CHECK_JPEG_YCBCR_SUBSAMPLING   1
 Enable JPEG-stream subsampling checks when defined.
 
#define MDI_SUPPORT   1
 Indicate support for Microsoft Document Imaging signatures when defined.
 
#define COLORIMETRY_SUPPORT
 Retain the obsolete colorimetry feature marker.
 
#define YCBCR_SUPPORT
 Retain the obsolete YCbCr feature marker.
 
#define CMYK_SUPPORT
 Retain the obsolete CMYK feature marker.
 
#define ICC_SUPPORT
 Retain the obsolete ICC profiles feature marker.
 
#define PHOTOSHOP_SUPPORT
 Retain the obsolete Photoshop metadata feature marker.
 
#define IPTC_SUPPORT
 Retain the obsolete IPTC metadata feature marker.
 
#define CCITT_SUPPORT   1
 Repeat of the tiffconf.h definition of CCITT_SUPPORT.
 
#define CHECK_JPEG_YCBCR_SUBSAMPLING   1
 Repeat of the tiffconf.h definition of CHECK_JPEG_YCBCR_SUBSAMPLING.
 
#define LERC_SUPPORT   1
 Repeat of the tiffconf.h definition of LERC_SUPPORT.
 

Detailed Description

Describe compatibility definitions in the configured public header.

These definitions describe this build, not every possible LibTIFF build. Applications should avoid relying on the legacy feature macros.

Macro Definition Documentation

◆ CCITT_SUPPORT [1/2]

#define CCITT_SUPPORT   1

Repeat of the tiffconf.h definition of CCITT_SUPPORT.

Definition at line 27 of file tif_config.h.

◆ CCITT_SUPPORT [2/2]

#define CCITT_SUPPORT   1

Indicate inclusion of CCITT Group 3 and Group 4 codecs when defined.

Repeat of the tiffconf.h definition of CCITT_SUPPORT.

Definition at line 85 of file tiffconf.h.

◆ CHECK_JPEG_YCBCR_SUBSAMPLING [1/2]

#define CHECK_JPEG_YCBCR_SUBSAMPLING   1

Repeat of the tiffconf.h definition of CHECK_JPEG_YCBCR_SUBSAMPLING.

Definition at line 33 of file tif_config.h.

◆ CHECK_JPEG_YCBCR_SUBSAMPLING [2/2]

#define CHECK_JPEG_YCBCR_SUBSAMPLING   1

Enable JPEG-stream subsampling checks when defined.

Repeat of the tiffconf.h definition of CHECK_JPEG_YCBCR_SUBSAMPLING.

When the YCbCrSubsampling tag is absent from a contiguous three-sample YCbCr JPEG image, the JPEG codec reads the sampling factors from the JPEG stream instead of assuming the TIFF default of 2,2.

Definition at line 159 of file tiffconf.h.

◆ CMYK_SUPPORT

#define CMYK_SUPPORT

Retain the obsolete CMYK feature marker.

Always defined for compatibility; do not use as a capability test.

Definition at line 184 of file tiffconf.h.

◆ COLORIMETRY_SUPPORT

#define COLORIMETRY_SUPPORT

Retain the obsolete colorimetry feature marker.

Always defined for compatibility; do not use as a capability test.

Definition at line 174 of file tiffconf.h.

◆ DEFAULT_EXTRASAMPLE_AS_ALPHA

#define DEFAULT_EXTRASAMPLE_AS_ALPHA   1

Enable the RGBA reader's fallback alpha interpretation when defined.

For an RGB image with exactly four samples per pixel and no declared extra samples, the fourth sample is treated as associated alpha.

Definition at line 151 of file tiffconf.h.

◆ HAVE_IEEEFP

#define HAVE_IEEEFP   1

Indicate IEEE floating-point representation when defined to 1.

Definition at line 69 of file tiffconf.h.

◆ HOST_BIGENDIAN

#define HOST_BIGENDIAN   0

Indicate native CPU byte order: 1 for big-endian, 0 for little-endian.

Definition at line 81 of file tiffconf.h.

◆ HOST_FILLORDER

#define HOST_FILLORDER   FILLORDER_LSB2MSB

Retain the legacy least-significant-bit-first fill-order constant.

Fixed at FILLORDER_LSB2MSB, independently of CPU byte order. The deprecated H open mode now selects FILLORDER_MSB2LSB and does not consult this macro. Do not use this constant to detect CPU byte order or the file's FillOrder.

Definition at line 77 of file tiffconf.h.

◆ ICC_SUPPORT

#define ICC_SUPPORT

Retain the obsolete ICC profiles feature marker.

Always defined for compatibility; do not use as a capability test.

Definition at line 189 of file tiffconf.h.

◆ IPTC_SUPPORT

#define IPTC_SUPPORT

Retain the obsolete IPTC metadata feature marker.

Always defined for compatibility; do not use as a capability test.

Definition at line 199 of file tiffconf.h.

◆ JBIG_SUPPORT

#define JBIG_SUPPORT

Indicate inclusion of the JBIG codec when defined.

Definition at line 93 of file tiffconf.h.

◆ JPEG_SUPPORT

#define JPEG_SUPPORT   1

Indicate inclusion of the JPEG codec when defined.

Definition at line 89 of file tiffconf.h.

◆ LERC_SUPPORT [1/2]

#define LERC_SUPPORT   1

Repeat of the tiffconf.h definition of LERC_SUPPORT.

Definition at line 187 of file tif_config.h.

◆ LERC_SUPPORT [2/2]

#define LERC_SUPPORT   1

Indicate inclusion of the LERC codec when defined.

Repeat of the tiffconf.h definition of LERC_SUPPORT.

Definition at line 97 of file tiffconf.h.

◆ LIBDEFLATE_SUPPORT

#define LIBDEFLATE_SUPPORT   1

Indicate use of libdeflate for Deflate compression when defined.

Definition at line 133 of file tiffconf.h.

◆ LOGLUV_SUPPORT

#define LOGLUV_SUPPORT   1

Indicate inclusion of the LogLuv codec when defined.

Definition at line 101 of file tiffconf.h.

◆ LZW_SUPPORT

#define LZW_SUPPORT   1

Indicate inclusion of the LZW codec when defined.

Definition at line 105 of file tiffconf.h.

◆ MDI_SUPPORT

#define MDI_SUPPORT   1

Indicate support for Microsoft Document Imaging signatures when defined.

Definition at line 163 of file tiffconf.h.

◆ NEXT_SUPPORT

#define NEXT_SUPPORT   1

Indicate inclusion of the NeXT 2-bit RLE codec when defined.

Definition at line 109 of file tiffconf.h.

◆ OJPEG_SUPPORT

#define OJPEG_SUPPORT   1

Indicate inclusion of the old-style JPEG reader when defined.

Definition at line 113 of file tiffconf.h.

◆ PACKBITS_SUPPORT

#define PACKBITS_SUPPORT   1

Indicate inclusion of the PackBits codec when defined.

Definition at line 117 of file tiffconf.h.

◆ PHOTOSHOP_SUPPORT

#define PHOTOSHOP_SUPPORT

Retain the obsolete Photoshop metadata feature marker.

Always defined for compatibility; do not use as a capability test.

Definition at line 194 of file tiffconf.h.

◆ PIXARLOG_SUPPORT

#define PIXARLOG_SUPPORT   1

Indicate inclusion of the PixarLog codec when defined.

Definition at line 121 of file tiffconf.h.

◆ STRIPCHOP_DEFAULT

#define STRIPCHOP_DEFAULT   TIFF_STRIPCHOP

Define the default strip-chopping flag when strip chopping is enabled.

Enables treating a single uncompressed strip as smaller strips internally; the open-mode options can override the default.

Definition at line 140 of file tiffconf.h.

◆ SUBIFD_SUPPORT

#define SUBIFD_SUPPORT   1

Indicate support for SubIFD tag handling when defined.

Definition at line 144 of file tiffconf.h.

◆ THUNDER_SUPPORT

#define THUNDER_SUPPORT   1

Indicate inclusion of the ThunderScan codec when defined.

Definition at line 125 of file tiffconf.h.

◆ TIFF_INT16_T

#define TIFF_INT16_T   int16_t

Define the configured signed 16-bit integer type.

Definition at line 31 of file tiffconf.h.

◆ TIFF_INT32_T

#define TIFF_INT32_T   int32_t

Define the configured signed 32-bit integer type.

Definition at line 35 of file tiffconf.h.

◆ TIFF_INT64_T

#define TIFF_INT64_T   int64_t

Define the configured signed 64-bit integer type.

Definition at line 39 of file tiffconf.h.

◆ TIFF_INT8_T

#define TIFF_INT8_T   int8_t

Define the configured signed 8-bit integer type.

Definition at line 43 of file tiffconf.h.

◆ TIFF_SSIZE_T

#define TIFF_SSIZE_T   int64_t

Define the signed addressing-size type used for tmsize_t.

Definition at line 63 of file tiffconf.h.

◆ TIFF_UINT16_T

#define TIFF_UINT16_T   uint16_t

Define the configured unsigned 16-bit integer type.

Definition at line 47 of file tiffconf.h.

◆ TIFF_UINT32_T

#define TIFF_UINT32_T   uint32_t

Define the configured unsigned 32-bit integer type.

Definition at line 51 of file tiffconf.h.

◆ TIFF_UINT64_T

#define TIFF_UINT64_T   uint64_t

Define the configured unsigned 64-bit integer type.

Definition at line 55 of file tiffconf.h.

◆ TIFF_UINT8_T

#define TIFF_UINT8_T   uint8_t

Define the configured unsigned 8-bit integer type.

Definition at line 59 of file tiffconf.h.

◆ YCBCR_SUPPORT

#define YCBCR_SUPPORT

Retain the obsolete YCbCr feature marker.

Always defined for compatibility; do not use as a capability test.

Definition at line 179 of file tiffconf.h.

◆ ZIP_SUPPORT

#define ZIP_SUPPORT   1

Indicate inclusion of Deflate compression support when defined.

Definition at line 129 of file tiffconf.h.