tiffconf.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. /* libtiff/tiffconf.h. Generated from tiffconf.h.in by configure. */
  2. /*
  3. Configuration defines for installed libtiff.
  4. This file maintained for backward compatibility. Do not use definitions
  5. from this file in your programs.
  6. */
  7. /* clang-format off */
  8. /* clang-format disabled because CMake scripts are very sensitive to the
  9. * formatting of this file. configure_file variables of type "@VAR@" are
  10. * modified by clang-format and won't be substituted.
  11. */
  12. #ifndef _TIFFCONF_
  13. #define _TIFFCONF_
  14. #include <stddef.h>
  15. #include <stdint.h>
  16. #include <inttypes.h>
  17. /* Signed 16-bit type */
  18. /* #undef TIFF_INT16_T */
  19. /* Signed 32-bit type */
  20. /* #undef TIFF_INT32_T */
  21. /* Signed 64-bit type */
  22. /* #undef TIFF_INT64_T */
  23. /* Signed 8-bit type */
  24. /* #undef TIFF_INT8_T */
  25. /* Unsigned 16-bit type */
  26. /* #undef TIFF_UINT16_T */
  27. /* Unsigned 32-bit type */
  28. /* #undef TIFF_UINT32_T */
  29. /* Unsigned 64-bit type */
  30. /* #undef TIFF_UINT64_T */
  31. /* Unsigned 8-bit type */
  32. /* #undef TIFF_UINT8_T */
  33. /* Signed size type */
  34. #define TIFF_SSIZE_T int64_t
  35. /* Compatibility stuff. */
  36. /* Define as 0 or 1 according to the floating point format supported by the
  37. machine */
  38. #define HAVE_IEEEFP 1
  39. /* The concept of HOST_FILLORDER is broken. Since libtiff 4.5.1
  40. * this macro will always be hardcoded to FILLORDER_LSB2MSB on all
  41. * architectures, to reflect past long behavior of doing so on x86 architecture.
  42. * Note however that the default FillOrder used by libtiff is FILLORDER_MSB2LSB,
  43. * as mandated per the TIFF specification.
  44. * The influence of HOST_FILLORDER is only when passing the 'H' mode in
  45. * TIFFOpen().
  46. * You should NOT rely on this macro to decide the CPU endianness!
  47. * This macro will be removed in libtiff 4.6
  48. */
  49. #define HOST_FILLORDER FILLORDER_LSB2MSB
  50. /* Native cpu byte order: 1 if big-endian (Motorola) or 0 if little-endian
  51. (Intel) */
  52. #define HOST_BIGENDIAN 0
  53. /* Support CCITT Group 3 & 4 algorithms */
  54. #define CCITT_SUPPORT 1
  55. /* Support JPEG compression (requires IJG JPEG library) */
  56. #define JPEG_SUPPORT 1
  57. /* Support JBIG compression (requires JBIG-KIT library) */
  58. /* #undef JBIG_SUPPORT */
  59. /* Support LERC compression */
  60. /* #undef LERC_SUPPORT */
  61. /* Support LogLuv high dynamic range encoding */
  62. #define LOGLUV_SUPPORT 1
  63. /* Support LZW algorithm */
  64. #define LZW_SUPPORT 1
  65. /* Support NeXT 2-bit RLE algorithm */
  66. #define NEXT_SUPPORT 1
  67. /* Support Old JPEG compresson (read contrib/ojpeg/README first! Compilation
  68. fails with unpatched IJG JPEG library) */
  69. /* #undef OJPEG_SUPPORT */
  70. /* Support Macintosh PackBits algorithm */
  71. #define PACKBITS_SUPPORT 1
  72. /* Support Pixar log-format algorithm (requires Zlib) */
  73. /* #undef PIXARLOG_SUPPORT */
  74. /* Support ThunderScan 4-bit RLE algorithm */
  75. #define THUNDER_SUPPORT 1
  76. /* Support Deflate compression */
  77. #define ZIP_SUPPORT 1
  78. /* Support libdeflate enhanced compression */
  79. /* #undef LIBDEFLATE_SUPPORT */
  80. /* Support strip chopping (whether or not to convert single-strip uncompressed
  81. images to multiple strips of ~8Kb to reduce memory usage) */
  82. #define STRIPCHOP_DEFAULT TIFF_STRIPCHOP
  83. /* Enable SubIFD tag (330) support */
  84. #define SUBIFD_SUPPORT 1
  85. /* Treat extra sample as alpha (default enabled). The RGBA interface will
  86. treat a fourth sample with no EXTRASAMPLE_ value as being ASSOCALPHA. Many
  87. packages produce RGBA files but don't mark the alpha properly. */
  88. #define DEFAULT_EXTRASAMPLE_AS_ALPHA 1
  89. /* Pick up YCbCr subsampling info from the JPEG data stream to support files
  90. lacking the tag (default enabled). */
  91. #define CHECK_JPEG_YCBCR_SUBSAMPLING 1
  92. /* Support MS MDI magic number files as TIFF */
  93. /* #undef MDI_SUPPORT */
  94. /*
  95. * Feature support definitions.
  96. * XXX: These macros are obsoleted. Don't use them in your apps!
  97. * Macros stays here for backward compatibility and should be always defined.
  98. */
  99. #define COLORIMETRY_SUPPORT
  100. #define YCBCR_SUPPORT
  101. #define CMYK_SUPPORT
  102. #define ICC_SUPPORT
  103. #define PHOTOSHOP_SUPPORT
  104. #define IPTC_SUPPORT
  105. #endif /* _TIFFCONF_ */
  106. /* clang-format on */