tiffconf.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /*
  2. Configuration defines for installed libtiff.
  3. This file maintained for backward compatibility. Do not use definitions
  4. from this file in your programs.
  5. */
  6. #ifndef _TIFFCONF_
  7. #define _TIFFCONF_
  8. #include <stddef.h>
  9. #include <stdint.h>
  10. #include <inttypes.h>
  11. /* Signed 16-bit type */
  12. #define TIFF_INT16_T int16_t
  13. /* Signed 32-bit type */
  14. #define TIFF_INT32_T int32_t
  15. /* Signed 64-bit type */
  16. #define TIFF_INT64_T int64_t
  17. /* Signed 8-bit type */
  18. #define TIFF_INT8_T int8_t
  19. /* Unsigned 16-bit type */
  20. #define TIFF_UINT16_T uint16_t
  21. /* Unsigned 32-bit type */
  22. #define TIFF_UINT32_T uint32_t
  23. /* Unsigned 64-bit type */
  24. #define TIFF_UINT64_T uint64_t
  25. /* Unsigned 8-bit type */
  26. #define TIFF_UINT8_T uint8_t
  27. /* Signed size type */
  28. #define TIFF_SSIZE_T int64_t
  29. /* Compatibility stuff. */
  30. /* Define as 0 or 1 according to the floating point format supported by the
  31. machine */
  32. #define HAVE_IEEEFP 1
  33. /* Set the native cpu bit order (FILLORDER_LSB2MSB or FILLORDER_MSB2LSB) */
  34. #define HOST_FILLORDER FILLORDER_LSB2MSB
  35. /* Native cpu byte order: 1 if big-endian (Motorola) or 0 if little-endian
  36. (Intel) */
  37. #define HOST_BIGENDIAN 0
  38. /* Support CCITT Group 3 & 4 algorithms */
  39. #define CCITT_SUPPORT 1
  40. /* Support JPEG compression (requires IJG JPEG library) */
  41. #define JPEG_SUPPORT 1
  42. /* Support JBIG compression (requires JBIG-KIT library) */
  43. /* #undef JBIG_SUPPORT */
  44. /* Support LERC compression */
  45. #define LERC_SUPPORT 1
  46. /* Support LogLuv high dynamic range encoding */
  47. #define LOGLUV_SUPPORT 1
  48. /* Support LZW algorithm */
  49. #define LZW_SUPPORT 1
  50. /* Support NeXT 2-bit RLE algorithm */
  51. #define NEXT_SUPPORT 1
  52. /* Support Old JPEG compresson (read contrib/ojpeg/README first! Compilation
  53. fails with unpatched IJG JPEG library) */
  54. #define OJPEG_SUPPORT 1
  55. /* Support Macintosh PackBits algorithm */
  56. #define PACKBITS_SUPPORT 1
  57. /* Support Pixar log-format algorithm (requires Zlib) */
  58. #define PIXARLOG_SUPPORT 1
  59. /* Support ThunderScan 4-bit RLE algorithm */
  60. #define THUNDER_SUPPORT 1
  61. /* Support Deflate compression */
  62. #define ZIP_SUPPORT 1
  63. /* Support libdeflate enhanced compression */
  64. #define LIBDEFLATE_SUPPORT 1
  65. /* Support strip chopping (whether or not to convert single-strip uncompressed
  66. images to multiple strips of ~8Kb to reduce memory usage) */
  67. #define STRIPCHOP_DEFAULT TIFF_STRIPCHOP
  68. /* Enable SubIFD tag (330) support */
  69. #define SUBIFD_SUPPORT 1
  70. /* Treat extra sample as alpha (default enabled). The RGBA interface will
  71. treat a fourth sample with no EXTRASAMPLE_ value as being ASSOCALPHA. Many
  72. packages produce RGBA files but don't mark the alpha properly. */
  73. #define DEFAULT_EXTRASAMPLE_AS_ALPHA 1
  74. /* Pick up YCbCr subsampling info from the JPEG data stream to support files
  75. lacking the tag (default enabled). */
  76. #define CHECK_JPEG_YCBCR_SUBSAMPLING 1
  77. /* Support MS MDI magic number files as TIFF */
  78. #define MDI_SUPPORT 1
  79. /*
  80. * Feature support definitions.
  81. * XXX: These macros are obsoleted. Don't use them in your apps!
  82. * Macros stays here for backward compatibility and should be always defined.
  83. */
  84. #define COLORIMETRY_SUPPORT
  85. #define YCBCR_SUPPORT
  86. #define CMYK_SUPPORT
  87. #define ICC_SUPPORT
  88. #define PHOTOSHOP_SUPPORT
  89. #define IPTC_SUPPORT
  90. #endif /* _TIFFCONF_ */