@cpp.js/package-tiff 1.0.0-beta.22 → 1.0.0-beta.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/README.md +3 -0
  2. package/cppjs-package-tiff.podspec +1 -1
  3. package/dist/prebuilt/Android-arm64-v8a/include/tiffio.h +11 -11
  4. package/dist/prebuilt/Android-arm64-v8a/include/tiffvers.h +4 -4
  5. package/dist/prebuilt/Android-arm64-v8a/lib/cmake/tiff/TiffConfig.cmake +2 -3
  6. package/dist/prebuilt/Android-arm64-v8a/lib/cmake/tiff/TiffConfigVersion.cmake +3 -3
  7. package/dist/prebuilt/Android-arm64-v8a/lib/libtiff.so +0 -0
  8. package/dist/prebuilt/Android-arm64-v8a/lib/pkgconfig/libtiff-4.pc +1 -1
  9. package/dist/prebuilt/CMakeLists.txt +1 -1
  10. package/dist/prebuilt/Emscripten-x86_64/include/tiffio.h +11 -11
  11. package/dist/prebuilt/Emscripten-x86_64/include/tiffvers.h +4 -4
  12. package/dist/prebuilt/Emscripten-x86_64/lib/cmake/tiff/TiffConfig.cmake +2 -3
  13. package/dist/prebuilt/Emscripten-x86_64/lib/cmake/tiff/TiffConfigVersion.cmake +3 -3
  14. package/dist/prebuilt/Emscripten-x86_64/lib/libtiff.a +0 -0
  15. package/dist/prebuilt/Emscripten-x86_64/lib/pkgconfig/libtiff-4.pc +1 -1
  16. package/dist/prebuilt/iOS-iphoneos/include/tiffio.h +11 -11
  17. package/dist/prebuilt/iOS-iphoneos/include/tiffvers.h +4 -4
  18. package/dist/prebuilt/iOS-iphoneos/lib/cmake/tiff/TiffConfig.cmake +2 -3
  19. package/dist/prebuilt/iOS-iphoneos/lib/cmake/tiff/TiffConfigVersion.cmake +3 -3
  20. package/dist/prebuilt/iOS-iphoneos/lib/libtiff.a +0 -0
  21. package/dist/prebuilt/iOS-iphoneos/lib/libtiffxx.a +0 -0
  22. package/dist/prebuilt/iOS-iphoneos/lib/pkgconfig/libtiff-4.pc +1 -1
  23. package/dist/prebuilt/iOS-iphonesimulator/include/tiffio.h +11 -11
  24. package/dist/prebuilt/iOS-iphonesimulator/include/tiffvers.h +4 -4
  25. package/dist/prebuilt/iOS-iphonesimulator/lib/cmake/tiff/TiffConfig.cmake +2 -3
  26. package/dist/prebuilt/iOS-iphonesimulator/lib/cmake/tiff/TiffConfigVersion.cmake +3 -3
  27. package/dist/prebuilt/iOS-iphonesimulator/lib/libtiff.a +0 -0
  28. package/dist/prebuilt/iOS-iphonesimulator/lib/libtiffxx.a +0 -0
  29. package/dist/prebuilt/iOS-iphonesimulator/lib/pkgconfig/libtiff-4.pc +1 -1
  30. package/package.json +8 -6
  31. package/{dist/prebuilt/tiff.xcframework/ios-arm64_arm64e_x86_64-simulator → tiff.xcframework/ios-arm64_arm64e}/Headers/tiffio.h +11 -11
  32. package/{dist/prebuilt/tiffxx.xcframework → tiff.xcframework}/ios-arm64_arm64e/Headers/tiffvers.h +4 -4
  33. package/tiff.xcframework/ios-arm64_arm64e/libtiff.a +0 -0
  34. package/{dist/prebuilt/tiffxx.xcframework/ios-arm64_arm64e → tiff.xcframework/ios-arm64_arm64e_x86_64-simulator}/Headers/tiffio.h +11 -11
  35. package/{dist/prebuilt/tiff.xcframework/ios-arm64_arm64e → tiff.xcframework/ios-arm64_arm64e_x86_64-simulator}/Headers/tiffvers.h +4 -4
  36. package/{dist/prebuilt/tiff.xcframework → tiff.xcframework}/ios-arm64_arm64e_x86_64-simulator/libtiff.a +0 -0
  37. package/{dist/prebuilt/tiffxx.xcframework/ios-arm64_arm64e_x86_64-simulator → tiffxx.xcframework/ios-arm64_arm64e}/Headers/tiffio.h +11 -11
  38. package/{dist/prebuilt/tiffxx.xcframework/ios-arm64_arm64e_x86_64-simulator → tiffxx.xcframework/ios-arm64_arm64e}/Headers/tiffvers.h +4 -4
  39. package/{dist/prebuilt/tiffxx.xcframework → tiffxx.xcframework}/ios-arm64_arm64e/libtiffxx.a +0 -0
  40. package/{dist/prebuilt/tiff.xcframework/ios-arm64_arm64e → tiffxx.xcframework/ios-arm64_arm64e_x86_64-simulator}/Headers/tiffio.h +11 -11
  41. package/{dist/prebuilt/tiff.xcframework → tiffxx.xcframework}/ios-arm64_arm64e_x86_64-simulator/Headers/tiffvers.h +4 -4
  42. package/{dist/prebuilt/tiffxx.xcframework → tiffxx.xcframework}/ios-arm64_arm64e_x86_64-simulator/libtiffxx.a +0 -0
  43. package/dist/prebuilt/tiff.xcframework/ios-arm64_arm64e/libtiff.a +0 -0
  44. package/{dist/prebuilt/tiff.xcframework → tiff.xcframework}/Info.plist +5 -5
  45. package/{dist/prebuilt/tiff.xcframework → tiff.xcframework}/ios-arm64_arm64e/Headers/tiff.h +0 -0
  46. package/{dist/prebuilt/tiff.xcframework → tiff.xcframework}/ios-arm64_arm64e/Headers/tiffconf.h +0 -0
  47. package/{dist/prebuilt/tiff.xcframework → tiff.xcframework}/ios-arm64_arm64e/Headers/tiffio.hxx +0 -0
  48. package/{dist/prebuilt/tiff.xcframework → tiff.xcframework}/ios-arm64_arm64e_x86_64-simulator/Headers/tiff.h +0 -0
  49. package/{dist/prebuilt/tiff.xcframework → tiff.xcframework}/ios-arm64_arm64e_x86_64-simulator/Headers/tiffconf.h +0 -0
  50. package/{dist/prebuilt/tiff.xcframework → tiff.xcframework}/ios-arm64_arm64e_x86_64-simulator/Headers/tiffio.hxx +0 -0
  51. package/{dist/prebuilt/tiffxx.xcframework → tiffxx.xcframework}/Info.plist +5 -5
  52. /package/{dist/prebuilt/tiffxx.xcframework → tiffxx.xcframework}/ios-arm64_arm64e/Headers/tiff.h +0 -0
  53. /package/{dist/prebuilt/tiffxx.xcframework → tiffxx.xcframework}/ios-arm64_arm64e/Headers/tiffconf.h +0 -0
  54. /package/{dist/prebuilt/tiffxx.xcframework → tiffxx.xcframework}/ios-arm64_arm64e/Headers/tiffio.hxx +0 -0
  55. /package/{dist/prebuilt/tiffxx.xcframework → tiffxx.xcframework}/ios-arm64_arm64e_x86_64-simulator/Headers/tiff.h +0 -0
  56. /package/{dist/prebuilt/tiffxx.xcframework → tiffxx.xcframework}/ios-arm64_arm64e_x86_64-simulator/Headers/tiffconf.h +0 -0
  57. /package/{dist/prebuilt/tiffxx.xcframework → tiffxx.xcframework}/ios-arm64_arm64e_x86_64-simulator/Headers/tiffio.hxx +0 -0
package/README.md CHANGED
@@ -4,6 +4,9 @@
4
4
  <a href="https://www.npmjs.com/package/@cpp.js/package-tiff">
5
5
  <img alt="NPM version" src="https://img.shields.io/npm/v/@cpp.js/package-tiff?style=for-the-badge" />
6
6
  </a>
7
+ <a href="https://gitlab.com/libtiff/libtiff">
8
+ <img src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Funpkg.com%2F%40cpp.js%2Fpackage-tiff%2Fpackage.json&query=%24.nativeVersion&style=for-the-badge&label=TIFF" />
9
+ </a>
7
10
  <a href="https://libtiff.gitlab.io/libtiff/project/license.html">
8
11
  <img alt="License" src="https://img.shields.io/npm/l/%40cpp.js%2Fpackage-tiff?style=for-the-badge" />
9
12
  </a>
@@ -9,5 +9,5 @@ Pod::Spec.new do |s|
9
9
  s.homepage = "https://libtiff.gitlab.io/libtiff/index.html"
10
10
  s.author = "Tiff Authors"
11
11
  s.source = { :http => "https://cpp.js.org" }
12
- s.vendored_frameworks = 'z.xcframework', 'tiff.xcframework'
12
+ s.vendored_frameworks = 'z.xcframework', 'tiff.xcframework', 'tiffxx.xcframework'
13
13
  end
@@ -77,10 +77,6 @@ typedef tstrile_t ttile_t; /* tile number */
77
77
  typedef tmsize_t tsize_t; /* i/o size in bytes */
78
78
  typedef void *tdata_t; /* image data ref */
79
79
 
80
- #if !defined(__WIN32__) && (defined(_WIN32) || defined(WIN32))
81
- #define __WIN32__
82
- #endif
83
-
84
80
  /*
85
81
  * On windows you should define USE_WIN32_FILEIO if you are using tif_win32.c
86
82
  * or AVOID_WIN32_FILEIO if you are using something else (like tif_unix.c).
@@ -88,7 +84,7 @@ typedef void *tdata_t; /* image data ref */
88
84
  * By default tif_unix.c is assumed.
89
85
  */
90
86
 
91
- #if defined(_WINDOWS) || defined(__WIN32__) || defined(_Windows)
87
+ #if defined(_WIN32)
92
88
  #if !defined(__CYGWIN) && !defined(AVOID_WIN32_FILEIO) && \
93
89
  !defined(USE_WIN32_FILEIO)
94
90
  #define AVOID_WIN32_FILEIO
@@ -98,11 +94,11 @@ typedef void *tdata_t; /* image data ref */
98
94
  #if defined(USE_WIN32_FILEIO)
99
95
  #define VC_EXTRALEAN
100
96
  #include <windows.h>
101
- #ifdef __WIN32__
97
+ #ifdef _WIN32
102
98
  DECLARE_HANDLE(thandle_t); /* Win32 file handle */
103
99
  #else
104
100
  typedef HFILE thandle_t; /* client data handle */
105
- #endif /* __WIN32__ */
101
+ #endif /* _WIN32 */
106
102
  #else
107
103
  typedef void *thandle_t; /* client data handle */
108
104
  #endif /* USE_WIN32_FILEIO */
@@ -311,14 +307,15 @@ extern "C"
311
307
  /*
312
308
  * Auxiliary functions.
313
309
  */
314
-
310
+ #ifndef TIFF_DO_NOT_USE_NON_EXT_ALLOC_FUNCTIONS
315
311
  extern void *_TIFFmalloc(tmsize_t s);
316
312
  extern void *_TIFFcalloc(tmsize_t nmemb, tmsize_t siz);
317
313
  extern void *_TIFFrealloc(void *p, tmsize_t s);
314
+ extern void _TIFFfree(void *p);
315
+ #endif
318
316
  extern void _TIFFmemset(void *p, int v, tmsize_t c);
319
317
  extern void _TIFFmemcpy(void *d, const void *s, tmsize_t c);
320
318
  extern int _TIFFmemcmp(const void *p1, const void *p2, tmsize_t c);
321
- extern void _TIFFfree(void *p);
322
319
 
323
320
  /*
324
321
  ** Stuff, related to tag handling and creating custom tags.
@@ -508,6 +505,9 @@ extern int TIFFReadRGBAImageOriented(TIFF *, uint32_t, uint32_t, uint32_t *,
508
505
  TIFFOpenOptionsSetMaxSingleMemAlloc(TIFFOpenOptions *opts,
509
506
  tmsize_t max_single_mem_alloc);
510
507
  extern void
508
+ TIFFOpenOptionsSetMaxCumulatedMemAlloc(TIFFOpenOptions *opts,
509
+ tmsize_t max_cumulated_mem_alloc);
510
+ extern void
511
511
  TIFFOpenOptionsSetErrorHandlerExtR(TIFFOpenOptions *opts,
512
512
  TIFFErrorHandlerExtR handler,
513
513
  void *errorhandler_user_data);
@@ -518,11 +518,11 @@ extern int TIFFReadRGBAImageOriented(TIFF *, uint32_t, uint32_t, uint32_t *,
518
518
 
519
519
  extern TIFF *TIFFOpen(const char *, const char *);
520
520
  extern TIFF *TIFFOpenExt(const char *, const char *, TIFFOpenOptions *opts);
521
- #ifdef __WIN32__
521
+ #ifdef _WIN32
522
522
  extern TIFF *TIFFOpenW(const wchar_t *, const char *);
523
523
  extern TIFF *TIFFOpenWExt(const wchar_t *, const char *,
524
524
  TIFFOpenOptions *opts);
525
- #endif /* __WIN32__ */
525
+ #endif /* _WIN32 */
526
526
  extern TIFF *TIFFFdOpen(int, const char *, const char *);
527
527
  extern TIFF *TIFFFdOpenExt(int, const char *, const char *,
528
528
  TIFFOpenOptions *opts);
@@ -8,7 +8,7 @@
8
8
  * Furthermore, configure_file variables of type "" are
9
9
  * modified by clang-format and won't be substituted by CMake.
10
10
  */
11
- #define TIFFLIB_VERSION_STR "LIBTIFF, Version 4.6.0\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc."
11
+ #define TIFFLIB_VERSION_STR "LIBTIFF, Version 4.7.0\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc."
12
12
  /*
13
13
  * This define can be used in code that requires
14
14
  * compilation-related definitions specific to a
@@ -16,13 +16,13 @@
16
16
  * version checking should be done based on the
17
17
  * string returned by TIFFGetVersion.
18
18
  */
19
- #define TIFFLIB_VERSION 20230908
19
+ #define TIFFLIB_VERSION 20240911
20
20
 
21
21
  /* The following defines have been added in 4.5.0 */
22
22
  #define TIFFLIB_MAJOR_VERSION 4
23
- #define TIFFLIB_MINOR_VERSION 6
23
+ #define TIFFLIB_MINOR_VERSION 7
24
24
  #define TIFFLIB_MICRO_VERSION 0
25
- #define TIFFLIB_VERSION_STR_MAJ_MIN_MIC "4.6.0"
25
+ #define TIFFLIB_VERSION_STR_MAJ_MIN_MIC "4.7.0"
26
26
 
27
27
  /* Macro added in 4.5.0. Returns TRUE if the current libtiff version is
28
28
  * greater or equal to major.minor.micro
@@ -11,8 +11,7 @@ function(set_variable_from_rel_or_absolute_path var root rel_or_abs_path)
11
11
  endfunction()
12
12
 
13
13
  # Tell the user project where to find our headers and libraries
14
- get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" ABSOLUTE)
15
- get_filename_component(_DIR "${_DIR}" DIRECTORY)
14
+ get_filename_component(_DIR "${CMAKE_CURRENT_LIST_DIR}/../../.." ABSOLUTE)
16
15
  get_filename_component(_ROOT "${_DIR}/" ABSOLUTE)
17
16
  # Use _ROOT as prefix here for the possibility of relocation after installation.
18
17
  set_variable_from_rel_or_absolute_path("TIFF_INCLUDE_DIR" "${_ROOT}" "include")
@@ -21,7 +20,7 @@ set(TIFF_INCLUDE_DIRS ${TIFF_INCLUDE_DIR})
21
20
  set(TIFF_LIBRARIES TIFF::tiff)
22
21
 
23
22
  if(NOT TARGET TIFF::tiff)
24
- include("${_DIR}/TiffTargets.cmake")
23
+ include("${CMAKE_CURRENT_LIST_DIR}/TiffTargets.cmake")
25
24
  endif()
26
25
 
27
26
  unset (_ROOT)
@@ -9,19 +9,19 @@
9
9
  # The variable CVF_VERSION must be set before calling configure_file().
10
10
 
11
11
 
12
- set(PACKAGE_VERSION "4.6.0")
12
+ set(PACKAGE_VERSION "4.7.0")
13
13
 
14
14
  if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
15
15
  set(PACKAGE_VERSION_COMPATIBLE FALSE)
16
16
  else()
17
17
 
18
- if("4.6.0" MATCHES "^([0-9]+)\\.")
18
+ if("4.7.0" MATCHES "^([0-9]+)\\.")
19
19
  set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}")
20
20
  if(NOT CVF_VERSION_MAJOR VERSION_EQUAL 0)
21
21
  string(REGEX REPLACE "^0+" "" CVF_VERSION_MAJOR "${CVF_VERSION_MAJOR}")
22
22
  endif()
23
23
  else()
24
- set(CVF_VERSION_MAJOR "4.6.0")
24
+ set(CVF_VERSION_MAJOR "4.7.0")
25
25
  endif()
26
26
 
27
27
  if(PACKAGE_FIND_VERSION_RANGE)
@@ -5,7 +5,7 @@ includedir=${prefix}/include
5
5
 
6
6
  Name: libtiff
7
7
  Description: Tag Image File Format (TIFF) library.
8
- Version: 4.6.0
8
+ Version: 4.7.0
9
9
  Libs: -L${libdir} -ltiff
10
10
  Libs.private: -lm
11
11
  Cflags: -I${includedir}
@@ -9,7 +9,7 @@ if(ANDROID)
9
9
  set(PACKAGE_DIR "${PROJECT_SOURCE_DIR}/${PACKAGE_HOST}/lib")
10
10
  elseif(APPLE)
11
11
  if (CMAKE_SYSTEM_NAME STREQUAL "iOS")
12
- set(PACKAGE_DIR "${PROJECT_SOURCE_DIR}")
12
+ set(PACKAGE_DIR "${PROJECT_SOURCE_DIR}/../..")
13
13
  else()
14
14
  set(PACKAGE_HOST "${CMAKE_SYSTEM_NAME}-${CMAKE_HOST_SYSTEM_PROCESSOR}")
15
15
  set(PACKAGE_DIR "${PROJECT_SOURCE_DIR}/${PACKAGE_HOST}/lib")
@@ -77,10 +77,6 @@ typedef tstrile_t ttile_t; /* tile number */
77
77
  typedef tmsize_t tsize_t; /* i/o size in bytes */
78
78
  typedef void *tdata_t; /* image data ref */
79
79
 
80
- #if !defined(__WIN32__) && (defined(_WIN32) || defined(WIN32))
81
- #define __WIN32__
82
- #endif
83
-
84
80
  /*
85
81
  * On windows you should define USE_WIN32_FILEIO if you are using tif_win32.c
86
82
  * or AVOID_WIN32_FILEIO if you are using something else (like tif_unix.c).
@@ -88,7 +84,7 @@ typedef void *tdata_t; /* image data ref */
88
84
  * By default tif_unix.c is assumed.
89
85
  */
90
86
 
91
- #if defined(_WINDOWS) || defined(__WIN32__) || defined(_Windows)
87
+ #if defined(_WIN32)
92
88
  #if !defined(__CYGWIN) && !defined(AVOID_WIN32_FILEIO) && \
93
89
  !defined(USE_WIN32_FILEIO)
94
90
  #define AVOID_WIN32_FILEIO
@@ -98,11 +94,11 @@ typedef void *tdata_t; /* image data ref */
98
94
  #if defined(USE_WIN32_FILEIO)
99
95
  #define VC_EXTRALEAN
100
96
  #include <windows.h>
101
- #ifdef __WIN32__
97
+ #ifdef _WIN32
102
98
  DECLARE_HANDLE(thandle_t); /* Win32 file handle */
103
99
  #else
104
100
  typedef HFILE thandle_t; /* client data handle */
105
- #endif /* __WIN32__ */
101
+ #endif /* _WIN32 */
106
102
  #else
107
103
  typedef void *thandle_t; /* client data handle */
108
104
  #endif /* USE_WIN32_FILEIO */
@@ -311,14 +307,15 @@ extern "C"
311
307
  /*
312
308
  * Auxiliary functions.
313
309
  */
314
-
310
+ #ifndef TIFF_DO_NOT_USE_NON_EXT_ALLOC_FUNCTIONS
315
311
  extern void *_TIFFmalloc(tmsize_t s);
316
312
  extern void *_TIFFcalloc(tmsize_t nmemb, tmsize_t siz);
317
313
  extern void *_TIFFrealloc(void *p, tmsize_t s);
314
+ extern void _TIFFfree(void *p);
315
+ #endif
318
316
  extern void _TIFFmemset(void *p, int v, tmsize_t c);
319
317
  extern void _TIFFmemcpy(void *d, const void *s, tmsize_t c);
320
318
  extern int _TIFFmemcmp(const void *p1, const void *p2, tmsize_t c);
321
- extern void _TIFFfree(void *p);
322
319
 
323
320
  /*
324
321
  ** Stuff, related to tag handling and creating custom tags.
@@ -508,6 +505,9 @@ extern int TIFFReadRGBAImageOriented(TIFF *, uint32_t, uint32_t, uint32_t *,
508
505
  TIFFOpenOptionsSetMaxSingleMemAlloc(TIFFOpenOptions *opts,
509
506
  tmsize_t max_single_mem_alloc);
510
507
  extern void
508
+ TIFFOpenOptionsSetMaxCumulatedMemAlloc(TIFFOpenOptions *opts,
509
+ tmsize_t max_cumulated_mem_alloc);
510
+ extern void
511
511
  TIFFOpenOptionsSetErrorHandlerExtR(TIFFOpenOptions *opts,
512
512
  TIFFErrorHandlerExtR handler,
513
513
  void *errorhandler_user_data);
@@ -518,11 +518,11 @@ extern int TIFFReadRGBAImageOriented(TIFF *, uint32_t, uint32_t, uint32_t *,
518
518
 
519
519
  extern TIFF *TIFFOpen(const char *, const char *);
520
520
  extern TIFF *TIFFOpenExt(const char *, const char *, TIFFOpenOptions *opts);
521
- #ifdef __WIN32__
521
+ #ifdef _WIN32
522
522
  extern TIFF *TIFFOpenW(const wchar_t *, const char *);
523
523
  extern TIFF *TIFFOpenWExt(const wchar_t *, const char *,
524
524
  TIFFOpenOptions *opts);
525
- #endif /* __WIN32__ */
525
+ #endif /* _WIN32 */
526
526
  extern TIFF *TIFFFdOpen(int, const char *, const char *);
527
527
  extern TIFF *TIFFFdOpenExt(int, const char *, const char *,
528
528
  TIFFOpenOptions *opts);
@@ -8,7 +8,7 @@
8
8
  * Furthermore, configure_file variables of type "" are
9
9
  * modified by clang-format and won't be substituted by CMake.
10
10
  */
11
- #define TIFFLIB_VERSION_STR "LIBTIFF, Version 4.6.0\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc."
11
+ #define TIFFLIB_VERSION_STR "LIBTIFF, Version 4.7.0\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc."
12
12
  /*
13
13
  * This define can be used in code that requires
14
14
  * compilation-related definitions specific to a
@@ -16,13 +16,13 @@
16
16
  * version checking should be done based on the
17
17
  * string returned by TIFFGetVersion.
18
18
  */
19
- #define TIFFLIB_VERSION 20230908
19
+ #define TIFFLIB_VERSION 20240911
20
20
 
21
21
  /* The following defines have been added in 4.5.0 */
22
22
  #define TIFFLIB_MAJOR_VERSION 4
23
- #define TIFFLIB_MINOR_VERSION 6
23
+ #define TIFFLIB_MINOR_VERSION 7
24
24
  #define TIFFLIB_MICRO_VERSION 0
25
- #define TIFFLIB_VERSION_STR_MAJ_MIN_MIC "4.6.0"
25
+ #define TIFFLIB_VERSION_STR_MAJ_MIN_MIC "4.7.0"
26
26
 
27
27
  /* Macro added in 4.5.0. Returns TRUE if the current libtiff version is
28
28
  * greater or equal to major.minor.micro
@@ -11,8 +11,7 @@ function(set_variable_from_rel_or_absolute_path var root rel_or_abs_path)
11
11
  endfunction()
12
12
 
13
13
  # Tell the user project where to find our headers and libraries
14
- get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" ABSOLUTE)
15
- get_filename_component(_DIR "${_DIR}" DIRECTORY)
14
+ get_filename_component(_DIR "${CMAKE_CURRENT_LIST_DIR}/../../.." ABSOLUTE)
16
15
  get_filename_component(_ROOT "${_DIR}/" ABSOLUTE)
17
16
  # Use _ROOT as prefix here for the possibility of relocation after installation.
18
17
  set_variable_from_rel_or_absolute_path("TIFF_INCLUDE_DIR" "${_ROOT}" "include")
@@ -21,7 +20,7 @@ set(TIFF_INCLUDE_DIRS ${TIFF_INCLUDE_DIR})
21
20
  set(TIFF_LIBRARIES TIFF::tiff)
22
21
 
23
22
  if(NOT TARGET TIFF::tiff)
24
- include("${_DIR}/TiffTargets.cmake")
23
+ include("${CMAKE_CURRENT_LIST_DIR}/TiffTargets.cmake")
25
24
  endif()
26
25
 
27
26
  unset (_ROOT)
@@ -9,19 +9,19 @@
9
9
  # The variable CVF_VERSION must be set before calling configure_file().
10
10
 
11
11
 
12
- set(PACKAGE_VERSION "4.6.0")
12
+ set(PACKAGE_VERSION "4.7.0")
13
13
 
14
14
  if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
15
15
  set(PACKAGE_VERSION_COMPATIBLE FALSE)
16
16
  else()
17
17
 
18
- if("4.6.0" MATCHES "^([0-9]+)\\.")
18
+ if("4.7.0" MATCHES "^([0-9]+)\\.")
19
19
  set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}")
20
20
  if(NOT CVF_VERSION_MAJOR VERSION_EQUAL 0)
21
21
  string(REGEX REPLACE "^0+" "" CVF_VERSION_MAJOR "${CVF_VERSION_MAJOR}")
22
22
  endif()
23
23
  else()
24
- set(CVF_VERSION_MAJOR "4.6.0")
24
+ set(CVF_VERSION_MAJOR "4.7.0")
25
25
  endif()
26
26
 
27
27
  if(PACKAGE_FIND_VERSION_RANGE)
@@ -5,7 +5,7 @@ includedir=${prefix}/include
5
5
 
6
6
  Name: libtiff
7
7
  Description: Tag Image File Format (TIFF) library.
8
- Version: 4.6.0
8
+ Version: 4.7.0
9
9
  Libs: -L${libdir} -ltiff
10
10
  Libs.private:
11
11
  Cflags: -I${includedir}
@@ -77,10 +77,6 @@ typedef tstrile_t ttile_t; /* tile number */
77
77
  typedef tmsize_t tsize_t; /* i/o size in bytes */
78
78
  typedef void *tdata_t; /* image data ref */
79
79
 
80
- #if !defined(__WIN32__) && (defined(_WIN32) || defined(WIN32))
81
- #define __WIN32__
82
- #endif
83
-
84
80
  /*
85
81
  * On windows you should define USE_WIN32_FILEIO if you are using tif_win32.c
86
82
  * or AVOID_WIN32_FILEIO if you are using something else (like tif_unix.c).
@@ -88,7 +84,7 @@ typedef void *tdata_t; /* image data ref */
88
84
  * By default tif_unix.c is assumed.
89
85
  */
90
86
 
91
- #if defined(_WINDOWS) || defined(__WIN32__) || defined(_Windows)
87
+ #if defined(_WIN32)
92
88
  #if !defined(__CYGWIN) && !defined(AVOID_WIN32_FILEIO) && \
93
89
  !defined(USE_WIN32_FILEIO)
94
90
  #define AVOID_WIN32_FILEIO
@@ -98,11 +94,11 @@ typedef void *tdata_t; /* image data ref */
98
94
  #if defined(USE_WIN32_FILEIO)
99
95
  #define VC_EXTRALEAN
100
96
  #include <windows.h>
101
- #ifdef __WIN32__
97
+ #ifdef _WIN32
102
98
  DECLARE_HANDLE(thandle_t); /* Win32 file handle */
103
99
  #else
104
100
  typedef HFILE thandle_t; /* client data handle */
105
- #endif /* __WIN32__ */
101
+ #endif /* _WIN32 */
106
102
  #else
107
103
  typedef void *thandle_t; /* client data handle */
108
104
  #endif /* USE_WIN32_FILEIO */
@@ -311,14 +307,15 @@ extern "C"
311
307
  /*
312
308
  * Auxiliary functions.
313
309
  */
314
-
310
+ #ifndef TIFF_DO_NOT_USE_NON_EXT_ALLOC_FUNCTIONS
315
311
  extern void *_TIFFmalloc(tmsize_t s);
316
312
  extern void *_TIFFcalloc(tmsize_t nmemb, tmsize_t siz);
317
313
  extern void *_TIFFrealloc(void *p, tmsize_t s);
314
+ extern void _TIFFfree(void *p);
315
+ #endif
318
316
  extern void _TIFFmemset(void *p, int v, tmsize_t c);
319
317
  extern void _TIFFmemcpy(void *d, const void *s, tmsize_t c);
320
318
  extern int _TIFFmemcmp(const void *p1, const void *p2, tmsize_t c);
321
- extern void _TIFFfree(void *p);
322
319
 
323
320
  /*
324
321
  ** Stuff, related to tag handling and creating custom tags.
@@ -508,6 +505,9 @@ extern int TIFFReadRGBAImageOriented(TIFF *, uint32_t, uint32_t, uint32_t *,
508
505
  TIFFOpenOptionsSetMaxSingleMemAlloc(TIFFOpenOptions *opts,
509
506
  tmsize_t max_single_mem_alloc);
510
507
  extern void
508
+ TIFFOpenOptionsSetMaxCumulatedMemAlloc(TIFFOpenOptions *opts,
509
+ tmsize_t max_cumulated_mem_alloc);
510
+ extern void
511
511
  TIFFOpenOptionsSetErrorHandlerExtR(TIFFOpenOptions *opts,
512
512
  TIFFErrorHandlerExtR handler,
513
513
  void *errorhandler_user_data);
@@ -518,11 +518,11 @@ extern int TIFFReadRGBAImageOriented(TIFF *, uint32_t, uint32_t, uint32_t *,
518
518
 
519
519
  extern TIFF *TIFFOpen(const char *, const char *);
520
520
  extern TIFF *TIFFOpenExt(const char *, const char *, TIFFOpenOptions *opts);
521
- #ifdef __WIN32__
521
+ #ifdef _WIN32
522
522
  extern TIFF *TIFFOpenW(const wchar_t *, const char *);
523
523
  extern TIFF *TIFFOpenWExt(const wchar_t *, const char *,
524
524
  TIFFOpenOptions *opts);
525
- #endif /* __WIN32__ */
525
+ #endif /* _WIN32 */
526
526
  extern TIFF *TIFFFdOpen(int, const char *, const char *);
527
527
  extern TIFF *TIFFFdOpenExt(int, const char *, const char *,
528
528
  TIFFOpenOptions *opts);
@@ -8,7 +8,7 @@
8
8
  * Furthermore, configure_file variables of type "" are
9
9
  * modified by clang-format and won't be substituted by CMake.
10
10
  */
11
- #define TIFFLIB_VERSION_STR "LIBTIFF, Version 4.6.0\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc."
11
+ #define TIFFLIB_VERSION_STR "LIBTIFF, Version 4.7.0\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc."
12
12
  /*
13
13
  * This define can be used in code that requires
14
14
  * compilation-related definitions specific to a
@@ -16,13 +16,13 @@
16
16
  * version checking should be done based on the
17
17
  * string returned by TIFFGetVersion.
18
18
  */
19
- #define TIFFLIB_VERSION 20230908
19
+ #define TIFFLIB_VERSION 20240911
20
20
 
21
21
  /* The following defines have been added in 4.5.0 */
22
22
  #define TIFFLIB_MAJOR_VERSION 4
23
- #define TIFFLIB_MINOR_VERSION 6
23
+ #define TIFFLIB_MINOR_VERSION 7
24
24
  #define TIFFLIB_MICRO_VERSION 0
25
- #define TIFFLIB_VERSION_STR_MAJ_MIN_MIC "4.6.0"
25
+ #define TIFFLIB_VERSION_STR_MAJ_MIN_MIC "4.7.0"
26
26
 
27
27
  /* Macro added in 4.5.0. Returns TRUE if the current libtiff version is
28
28
  * greater or equal to major.minor.micro
@@ -11,8 +11,7 @@ function(set_variable_from_rel_or_absolute_path var root rel_or_abs_path)
11
11
  endfunction()
12
12
 
13
13
  # Tell the user project where to find our headers and libraries
14
- get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" ABSOLUTE)
15
- get_filename_component(_DIR "${_DIR}" DIRECTORY)
14
+ get_filename_component(_DIR "${CMAKE_CURRENT_LIST_DIR}/../../.." ABSOLUTE)
16
15
  get_filename_component(_ROOT "${_DIR}/" ABSOLUTE)
17
16
  # Use _ROOT as prefix here for the possibility of relocation after installation.
18
17
  set_variable_from_rel_or_absolute_path("TIFF_INCLUDE_DIR" "${_ROOT}" "include")
@@ -21,7 +20,7 @@ set(TIFF_INCLUDE_DIRS ${TIFF_INCLUDE_DIR})
21
20
  set(TIFF_LIBRARIES TIFF::tiff)
22
21
 
23
22
  if(NOT TARGET TIFF::tiff)
24
- include("${_DIR}/TiffTargets.cmake")
23
+ include("${CMAKE_CURRENT_LIST_DIR}/TiffTargets.cmake")
25
24
  endif()
26
25
 
27
26
  unset (_ROOT)
@@ -9,19 +9,19 @@
9
9
  # The variable CVF_VERSION must be set before calling configure_file().
10
10
 
11
11
 
12
- set(PACKAGE_VERSION "4.6.0")
12
+ set(PACKAGE_VERSION "4.7.0")
13
13
 
14
14
  if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
15
15
  set(PACKAGE_VERSION_COMPATIBLE FALSE)
16
16
  else()
17
17
 
18
- if("4.6.0" MATCHES "^([0-9]+)\\.")
18
+ if("4.7.0" MATCHES "^([0-9]+)\\.")
19
19
  set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}")
20
20
  if(NOT CVF_VERSION_MAJOR VERSION_EQUAL 0)
21
21
  string(REGEX REPLACE "^0+" "" CVF_VERSION_MAJOR "${CVF_VERSION_MAJOR}")
22
22
  endif()
23
23
  else()
24
- set(CVF_VERSION_MAJOR "4.6.0")
24
+ set(CVF_VERSION_MAJOR "4.7.0")
25
25
  endif()
26
26
 
27
27
  if(PACKAGE_FIND_VERSION_RANGE)
@@ -5,7 +5,7 @@ includedir=${prefix}/include
5
5
 
6
6
  Name: libtiff
7
7
  Description: Tag Image File Format (TIFF) library.
8
- Version: 4.6.0
8
+ Version: 4.7.0
9
9
  Libs: -L${libdir} -ltiff
10
10
  Libs.private: -lm
11
11
  Cflags: -I${includedir}
@@ -77,10 +77,6 @@ typedef tstrile_t ttile_t; /* tile number */
77
77
  typedef tmsize_t tsize_t; /* i/o size in bytes */
78
78
  typedef void *tdata_t; /* image data ref */
79
79
 
80
- #if !defined(__WIN32__) && (defined(_WIN32) || defined(WIN32))
81
- #define __WIN32__
82
- #endif
83
-
84
80
  /*
85
81
  * On windows you should define USE_WIN32_FILEIO if you are using tif_win32.c
86
82
  * or AVOID_WIN32_FILEIO if you are using something else (like tif_unix.c).
@@ -88,7 +84,7 @@ typedef void *tdata_t; /* image data ref */
88
84
  * By default tif_unix.c is assumed.
89
85
  */
90
86
 
91
- #if defined(_WINDOWS) || defined(__WIN32__) || defined(_Windows)
87
+ #if defined(_WIN32)
92
88
  #if !defined(__CYGWIN) && !defined(AVOID_WIN32_FILEIO) && \
93
89
  !defined(USE_WIN32_FILEIO)
94
90
  #define AVOID_WIN32_FILEIO
@@ -98,11 +94,11 @@ typedef void *tdata_t; /* image data ref */
98
94
  #if defined(USE_WIN32_FILEIO)
99
95
  #define VC_EXTRALEAN
100
96
  #include <windows.h>
101
- #ifdef __WIN32__
97
+ #ifdef _WIN32
102
98
  DECLARE_HANDLE(thandle_t); /* Win32 file handle */
103
99
  #else
104
100
  typedef HFILE thandle_t; /* client data handle */
105
- #endif /* __WIN32__ */
101
+ #endif /* _WIN32 */
106
102
  #else
107
103
  typedef void *thandle_t; /* client data handle */
108
104
  #endif /* USE_WIN32_FILEIO */
@@ -311,14 +307,15 @@ extern "C"
311
307
  /*
312
308
  * Auxiliary functions.
313
309
  */
314
-
310
+ #ifndef TIFF_DO_NOT_USE_NON_EXT_ALLOC_FUNCTIONS
315
311
  extern void *_TIFFmalloc(tmsize_t s);
316
312
  extern void *_TIFFcalloc(tmsize_t nmemb, tmsize_t siz);
317
313
  extern void *_TIFFrealloc(void *p, tmsize_t s);
314
+ extern void _TIFFfree(void *p);
315
+ #endif
318
316
  extern void _TIFFmemset(void *p, int v, tmsize_t c);
319
317
  extern void _TIFFmemcpy(void *d, const void *s, tmsize_t c);
320
318
  extern int _TIFFmemcmp(const void *p1, const void *p2, tmsize_t c);
321
- extern void _TIFFfree(void *p);
322
319
 
323
320
  /*
324
321
  ** Stuff, related to tag handling and creating custom tags.
@@ -508,6 +505,9 @@ extern int TIFFReadRGBAImageOriented(TIFF *, uint32_t, uint32_t, uint32_t *,
508
505
  TIFFOpenOptionsSetMaxSingleMemAlloc(TIFFOpenOptions *opts,
509
506
  tmsize_t max_single_mem_alloc);
510
507
  extern void
508
+ TIFFOpenOptionsSetMaxCumulatedMemAlloc(TIFFOpenOptions *opts,
509
+ tmsize_t max_cumulated_mem_alloc);
510
+ extern void
511
511
  TIFFOpenOptionsSetErrorHandlerExtR(TIFFOpenOptions *opts,
512
512
  TIFFErrorHandlerExtR handler,
513
513
  void *errorhandler_user_data);
@@ -518,11 +518,11 @@ extern int TIFFReadRGBAImageOriented(TIFF *, uint32_t, uint32_t, uint32_t *,
518
518
 
519
519
  extern TIFF *TIFFOpen(const char *, const char *);
520
520
  extern TIFF *TIFFOpenExt(const char *, const char *, TIFFOpenOptions *opts);
521
- #ifdef __WIN32__
521
+ #ifdef _WIN32
522
522
  extern TIFF *TIFFOpenW(const wchar_t *, const char *);
523
523
  extern TIFF *TIFFOpenWExt(const wchar_t *, const char *,
524
524
  TIFFOpenOptions *opts);
525
- #endif /* __WIN32__ */
525
+ #endif /* _WIN32 */
526
526
  extern TIFF *TIFFFdOpen(int, const char *, const char *);
527
527
  extern TIFF *TIFFFdOpenExt(int, const char *, const char *,
528
528
  TIFFOpenOptions *opts);
@@ -8,7 +8,7 @@
8
8
  * Furthermore, configure_file variables of type "" are
9
9
  * modified by clang-format and won't be substituted by CMake.
10
10
  */
11
- #define TIFFLIB_VERSION_STR "LIBTIFF, Version 4.6.0\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc."
11
+ #define TIFFLIB_VERSION_STR "LIBTIFF, Version 4.7.0\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc."
12
12
  /*
13
13
  * This define can be used in code that requires
14
14
  * compilation-related definitions specific to a
@@ -16,13 +16,13 @@
16
16
  * version checking should be done based on the
17
17
  * string returned by TIFFGetVersion.
18
18
  */
19
- #define TIFFLIB_VERSION 20230908
19
+ #define TIFFLIB_VERSION 20240911
20
20
 
21
21
  /* The following defines have been added in 4.5.0 */
22
22
  #define TIFFLIB_MAJOR_VERSION 4
23
- #define TIFFLIB_MINOR_VERSION 6
23
+ #define TIFFLIB_MINOR_VERSION 7
24
24
  #define TIFFLIB_MICRO_VERSION 0
25
- #define TIFFLIB_VERSION_STR_MAJ_MIN_MIC "4.6.0"
25
+ #define TIFFLIB_VERSION_STR_MAJ_MIN_MIC "4.7.0"
26
26
 
27
27
  /* Macro added in 4.5.0. Returns TRUE if the current libtiff version is
28
28
  * greater or equal to major.minor.micro
@@ -11,8 +11,7 @@ function(set_variable_from_rel_or_absolute_path var root rel_or_abs_path)
11
11
  endfunction()
12
12
 
13
13
  # Tell the user project where to find our headers and libraries
14
- get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" ABSOLUTE)
15
- get_filename_component(_DIR "${_DIR}" DIRECTORY)
14
+ get_filename_component(_DIR "${CMAKE_CURRENT_LIST_DIR}/../../.." ABSOLUTE)
16
15
  get_filename_component(_ROOT "${_DIR}/" ABSOLUTE)
17
16
  # Use _ROOT as prefix here for the possibility of relocation after installation.
18
17
  set_variable_from_rel_or_absolute_path("TIFF_INCLUDE_DIR" "${_ROOT}" "include")
@@ -21,7 +20,7 @@ set(TIFF_INCLUDE_DIRS ${TIFF_INCLUDE_DIR})
21
20
  set(TIFF_LIBRARIES TIFF::tiff)
22
21
 
23
22
  if(NOT TARGET TIFF::tiff)
24
- include("${_DIR}/TiffTargets.cmake")
23
+ include("${CMAKE_CURRENT_LIST_DIR}/TiffTargets.cmake")
25
24
  endif()
26
25
 
27
26
  unset (_ROOT)
@@ -9,19 +9,19 @@
9
9
  # The variable CVF_VERSION must be set before calling configure_file().
10
10
 
11
11
 
12
- set(PACKAGE_VERSION "4.6.0")
12
+ set(PACKAGE_VERSION "4.7.0")
13
13
 
14
14
  if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
15
15
  set(PACKAGE_VERSION_COMPATIBLE FALSE)
16
16
  else()
17
17
 
18
- if("4.6.0" MATCHES "^([0-9]+)\\.")
18
+ if("4.7.0" MATCHES "^([0-9]+)\\.")
19
19
  set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}")
20
20
  if(NOT CVF_VERSION_MAJOR VERSION_EQUAL 0)
21
21
  string(REGEX REPLACE "^0+" "" CVF_VERSION_MAJOR "${CVF_VERSION_MAJOR}")
22
22
  endif()
23
23
  else()
24
- set(CVF_VERSION_MAJOR "4.6.0")
24
+ set(CVF_VERSION_MAJOR "4.7.0")
25
25
  endif()
26
26
 
27
27
  if(PACKAGE_FIND_VERSION_RANGE)