@revizly/sharp-libvips-dev 1.0.8 → 1.0.10

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 (145) hide show
  1. package/cplusplus/VImage.cpp +18 -2
  2. package/cplusplus/vips-operators.cpp +79 -3
  3. package/include/aom/aom.h +1 -1
  4. package/include/aom/aom_codec.h +22 -5
  5. package/include/aom/aom_decoder.h +1 -1
  6. package/include/aom/aom_encoder.h +5 -1
  7. package/include/aom/aom_external_partition.h +1 -1
  8. package/include/aom/aom_frame_buffer.h +1 -1
  9. package/include/aom/aom_image.h +4 -2
  10. package/include/aom/aom_integer.h +1 -9
  11. package/include/aom/aomcx.h +99 -16
  12. package/include/aom/aomdx.h +1 -1
  13. package/include/archive.h +2 -2
  14. package/include/archive_entry.h +7 -1
  15. package/include/cairo/cairo-version.h +1 -1
  16. package/include/expat.h +4 -2
  17. package/include/expat_config.h +3 -6
  18. package/include/ffi.h +1 -1
  19. package/include/fontconfig/fontconfig.h +22 -2
  20. package/include/fribidi/fribidi-config.h +2 -2
  21. package/include/fribidi/fribidi-unicode-version.h +3 -3
  22. package/include/gio-unix-2.0/gio/gdesktopappinfo.h +1 -1
  23. package/include/gio-unix-2.0/gio/gunixmounts.h +105 -24
  24. package/include/glib-2.0/gio/gdbusconnection.h +65 -5
  25. package/include/glib-2.0/gio/gdebugcontroller.h +1 -1
  26. package/include/glib-2.0/gio/gfile.h +4 -0
  27. package/include/glib-2.0/gio/gio-visibility.h +34 -0
  28. package/include/glib-2.0/gio/gioenums.h +16 -5
  29. package/include/glib-2.0/gio/gioenumtypes.h +3 -3
  30. package/include/glib-2.0/gio/giotypes.h +4 -4
  31. package/include/glib-2.0/gio/gmemorymonitor.h +1 -1
  32. package/include/glib-2.0/gio/gnetworkmonitor.h +1 -1
  33. package/include/glib-2.0/gio/gpowerprofilemonitor.h +1 -1
  34. package/include/glib-2.0/gio/gproxy.h +1 -1
  35. package/include/glib-2.0/gio/gproxyresolver.h +1 -1
  36. package/include/glib-2.0/gio/gresource.h +6 -0
  37. package/include/glib-2.0/gio/gtlsbackend.h +1 -1
  38. package/include/glib-2.0/gio/gvfs.h +3 -3
  39. package/include/glib-2.0/gio/gvolumemonitor.h +1 -1
  40. package/include/glib-2.0/girepository/gi-visibility.h +34 -0
  41. package/include/glib-2.0/girepository/gicallableinfo.h +12 -0
  42. package/include/glib-2.0/girepository/gitypes.h +1 -0
  43. package/include/glib-2.0/glib/garray.h +1 -1
  44. package/include/glib-2.0/glib/gerror.h +1 -1
  45. package/include/glib-2.0/glib/glib-visibility.h +34 -0
  46. package/include/glib-2.0/glib/gmacros.h +3 -3
  47. package/include/glib-2.0/glib/gmain.h +131 -48
  48. package/include/glib-2.0/glib/gmem.h +3 -0
  49. package/include/glib-2.0/glib/goption.h +58 -36
  50. package/include/glib-2.0/glib/gqueue.h +1 -1
  51. package/include/glib-2.0/glib/grefstring.h +4 -0
  52. package/include/glib-2.0/glib/gstdio.h +65 -0
  53. package/include/glib-2.0/glib/gstrfuncs.h +4 -0
  54. package/include/glib-2.0/glib/gstring.h +4 -0
  55. package/include/glib-2.0/glib/gtestutils.h +65 -33
  56. package/include/glib-2.0/glib/gthread.h +2 -0
  57. package/include/glib-2.0/glib/gtypes.h +1 -1
  58. package/include/glib-2.0/glib/gunicode.h +21 -5
  59. package/include/glib-2.0/glib/gvariant.h +50 -13
  60. package/include/glib-2.0/glib/gvarianttype.h +62 -46
  61. package/include/glib-2.0/glib/gversionmacros.h +9 -0
  62. package/include/glib-2.0/glib-unix.h +21 -0
  63. package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
  64. package/include/glib-2.0/gobject/glib-enumtypes.h +1 -1
  65. package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
  66. package/include/glib-2.0/gobject/gobjectnotifyqueue.c +3 -3
  67. package/include/glib-2.0/gobject/gparam.h +4 -2
  68. package/include/glib-2.0/gobject/gsignal.h +22 -7
  69. package/include/glib-2.0/gobject/gtype.h +10 -4
  70. package/include/harfbuzz/hb-buffer.h +7 -0
  71. package/include/harfbuzz/hb-common.h +18 -0
  72. package/include/harfbuzz/hb-draw.h +1 -1
  73. package/include/harfbuzz/hb-face.h +43 -2
  74. package/include/harfbuzz/hb-ft.h +3 -0
  75. package/include/harfbuzz/hb-ot-shape.h +6 -0
  76. package/include/harfbuzz/hb-paint.h +1 -1
  77. package/include/harfbuzz/hb-shape.h +2 -0
  78. package/include/harfbuzz/hb-subset-serialize.h +83 -0
  79. package/include/harfbuzz/hb-subset.h +12 -0
  80. package/include/harfbuzz/hb-version.h +3 -3
  81. package/include/lcms2.h +7 -5
  82. package/include/lcms2_plugin.h +1 -1
  83. package/include/libexif/exif-byte-order.h +2 -0
  84. package/include/libexif/exif-content.h +2 -0
  85. package/include/libexif/exif-data-type.h +2 -0
  86. package/include/libexif/exif-data.h +3 -2
  87. package/include/libexif/exif-entry.h +2 -0
  88. package/include/libexif/exif-format.h +2 -0
  89. package/include/libexif/exif-ifd.h +2 -0
  90. package/include/libexif/exif-loader.h +2 -0
  91. package/include/libexif/exif-log.h +2 -0
  92. package/include/libexif/exif-mem.h +2 -0
  93. package/include/libexif/exif-mnote-data.h +2 -0
  94. package/include/libexif/exif-tag.h +2 -0
  95. package/include/libexif/exif-utils.h +2 -0
  96. package/include/libheif/heif.h +322 -26
  97. package/include/libheif/heif_properties.h +24 -4
  98. package/include/libheif/heif_version.h +2 -2
  99. package/include/libpng16/png.h +126 -18
  100. package/include/libpng16/pngconf.h +5 -6
  101. package/include/libpng16/pnglibconf.h +11 -2
  102. package/include/librsvg-2.0/librsvg/rsvg-features.h +1 -1
  103. package/include/librsvg-2.0/librsvg/rsvg-pixbuf.h +1 -1
  104. package/include/librsvg-2.0/librsvg/rsvg-version.h +3 -3
  105. package/include/librsvg-2.0/librsvg/rsvg.h +3 -1
  106. package/include/libxml2/libxml/xmlexports.h +2 -2
  107. package/include/libxml2/libxml/xmlversion.h +4 -4
  108. package/include/pango-1.0/pango/pango-features.h +3 -3
  109. package/include/pango-1.0/pango/pango-font.h +31 -2
  110. package/include/pango-1.0/pango/pango-fontmap.h +4 -0
  111. package/include/pango-1.0/pango/pango-layout.h +10 -1
  112. package/include/pango-1.0/pango/pango-version-macros.h +52 -0
  113. package/include/pango-1.0/pango/pangofc-fontmap.h +6 -0
  114. package/include/pixman-1/pixman-version.h +3 -3
  115. package/include/png.h +126 -18
  116. package/include/pngconf.h +5 -6
  117. package/include/pnglibconf.h +11 -2
  118. package/include/tiffio.h +11 -11
  119. package/include/tiffvers.h +4 -4
  120. package/include/vips/VImage8.h +170 -60
  121. package/include/vips/arithmetic.h +9 -0
  122. package/include/vips/basic.h +8 -4
  123. package/include/vips/buf.h +0 -2
  124. package/include/vips/connection.h +0 -2
  125. package/include/vips/conversion.h +0 -3
  126. package/include/vips/create.h +11 -0
  127. package/include/vips/enumtypes.h +3 -3
  128. package/include/vips/foreign.h +4 -18
  129. package/include/vips/header.h +7 -0
  130. package/include/vips/image.h +7 -2
  131. package/include/vips/interpolate.h +2 -3
  132. package/include/vips/memory.h +19 -1
  133. package/include/vips/operation.h +2 -7
  134. package/include/vips/private.h +7 -0
  135. package/include/vips/util.h +6 -15
  136. package/include/vips/version.h +8 -8
  137. package/include/vips/vips.h +11 -5
  138. package/include/vips/vips8 +19 -12
  139. package/include/webp/encode.h +5 -4
  140. package/include/webp/sharpyuv/sharpyuv.h +14 -5
  141. package/include/webp/sharpyuv/sharpyuv_csp.h +5 -0
  142. package/include/webp/types.h +2 -2
  143. package/include/zlib.h +4 -4
  144. package/package.json +1 -1
  145. package/versions.json +22 -22
package/include/png.h CHANGED
@@ -1,9 +1,8 @@
1
-
2
1
  /* png.h - header file for PNG reference library
3
2
  *
4
- * libpng version 1.6.43
3
+ * libpng version 1.6.47
5
4
  *
6
- * Copyright (c) 2018-2024 Cosmin Truta
5
+ * Copyright (c) 2018-2025 Cosmin Truta
7
6
  * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson
8
7
  * Copyright (c) 1996-1997 Andreas Dilger
9
8
  * Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
@@ -15,7 +14,7 @@
15
14
  * libpng versions 0.89, June 1996, through 0.96, May 1997: Andreas Dilger
16
15
  * libpng versions 0.97, January 1998, through 1.6.35, July 2018:
17
16
  * Glenn Randers-Pehrson
18
- * libpng versions 1.6.36, December 2018, through 1.6.43, February 2024:
17
+ * libpng versions 1.6.36, December 2018, through 1.6.47, February 2025:
19
18
  * Cosmin Truta
20
19
  * See also "Contributing Authors", below.
21
20
  */
@@ -27,8 +26,8 @@
27
26
  * PNG Reference Library License version 2
28
27
  * ---------------------------------------
29
28
  *
30
- * * Copyright (c) 1995-2024 The PNG Reference Library Authors.
31
- * * Copyright (c) 2018-2024 Cosmin Truta.
29
+ * * Copyright (c) 1995-2025 The PNG Reference Library Authors.
30
+ * * Copyright (c) 2018-2025 Cosmin Truta.
32
31
  * * Copyright (c) 2000-2002, 2004, 2006-2018 Glenn Randers-Pehrson.
33
32
  * * Copyright (c) 1996-1997 Andreas Dilger.
34
33
  * * Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
@@ -239,7 +238,7 @@
239
238
  * ...
240
239
  * 1.5.30 15 10530 15.so.15.30[.0]
241
240
  * ...
242
- * 1.6.43 16 10643 16.so.16.43[.0]
241
+ * 1.6.47 16 10647 16.so.16.47[.0]
243
242
  *
244
243
  * Henceforth the source version will match the shared-library major and
245
244
  * minor numbers; the shared-library major version number will be used for
@@ -275,7 +274,7 @@
275
274
  */
276
275
 
277
276
  /* Version information for png.h - this should match the version in png.c */
278
- #define PNG_LIBPNG_VER_STRING "1.6.43"
277
+ #define PNG_LIBPNG_VER_STRING "1.6.47"
279
278
  #define PNG_HEADER_VERSION_STRING " libpng version " PNG_LIBPNG_VER_STRING "\n"
280
279
 
281
280
  /* The versions of shared library builds should stay in sync, going forward */
@@ -286,18 +285,18 @@
286
285
  /* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */
287
286
  #define PNG_LIBPNG_VER_MAJOR 1
288
287
  #define PNG_LIBPNG_VER_MINOR 6
289
- #define PNG_LIBPNG_VER_RELEASE 43
288
+ #define PNG_LIBPNG_VER_RELEASE 47
290
289
 
291
290
  /* This should be zero for a public release, or non-zero for a
292
291
  * development version.
293
292
  */
294
- #define PNG_LIBPNG_VER_BUILD 0
293
+ #define PNG_LIBPNG_VER_BUILD 0
295
294
 
296
295
  /* Release Status */
297
- #define PNG_LIBPNG_BUILD_ALPHA 1
298
- #define PNG_LIBPNG_BUILD_BETA 2
299
- #define PNG_LIBPNG_BUILD_RC 3
300
- #define PNG_LIBPNG_BUILD_STABLE 4
296
+ #define PNG_LIBPNG_BUILD_ALPHA 1
297
+ #define PNG_LIBPNG_BUILD_BETA 2
298
+ #define PNG_LIBPNG_BUILD_RC 3
299
+ #define PNG_LIBPNG_BUILD_STABLE 4
301
300
  #define PNG_LIBPNG_BUILD_RELEASE_STATUS_MASK 7
302
301
 
303
302
  /* Release-Specific Flags */
@@ -317,7 +316,7 @@
317
316
  * From version 1.0.1 it is:
318
317
  * XXYYZZ, where XX=major, YY=minor, ZZ=release
319
318
  */
320
- #define PNG_LIBPNG_VER 10643 /* 1.6.43 */
319
+ #define PNG_LIBPNG_VER 10647 /* 1.6.47 */
321
320
 
322
321
  /* Library configuration: these options cannot be changed after
323
322
  * the library has been built.
@@ -427,7 +426,7 @@ extern "C" {
427
426
  /* This triggers a compiler error in png.c, if png.c and png.h
428
427
  * do not agree upon the version number.
429
428
  */
430
- typedef char* png_libpng_version_1_6_43;
429
+ typedef char* png_libpng_version_1_6_47;
431
430
 
432
431
  /* Basic control structions. Read libpng-manual.txt or libpng.3 for more info.
433
432
  *
@@ -745,6 +744,21 @@ typedef png_unknown_chunk * * png_unknown_chunkpp;
745
744
  #define PNG_INFO_sCAL 0x4000U /* ESR, 1.0.6 */
746
745
  #define PNG_INFO_IDAT 0x8000U /* ESR, 1.0.6 */
747
746
  #define PNG_INFO_eXIf 0x10000U /* GR-P, 1.6.31 */
747
+ #define PNG_INFO_cICP 0x20000U /* PNGv3: 1.6.45 */
748
+ #define PNG_INFO_cLLI 0x40000U /* PNGv3: 1.6.45 */
749
+ #define PNG_INFO_mDCV 0x80000U /* PNGv3: 1.6.45 */
750
+ /* APNG: these chunks are stored as unknown, these flags are never set
751
+ * however they are provided as a convenience for implementors of APNG and
752
+ * avoids any merge conflicts.
753
+ *
754
+ * Private chunks: these chunk names violate the chunk name recommendations
755
+ * because the chunk definitions have no signature and because the private
756
+ * chunks with these names have been reserved. Private definitions should
757
+ * avoid them.
758
+ */
759
+ #define PNG_INFO_acTL 0x100000U /* PNGv3: 1.6.45: unknown */
760
+ #define PNG_INFO_fcTL 0x200000U /* PNGv3: 1.6.45: unknown */
761
+ #define PNG_INFO_fdAT 0x400000U /* PNGv3: 1.6.45: unknown */
748
762
 
749
763
  /* This is used for the transformation routines, as some of them
750
764
  * change these values for the row. It also should enable using
@@ -824,7 +838,7 @@ typedef PNG_CALLBACK(int, *png_user_chunk_ptr, (png_structp,
824
838
  * your compiler. This may be very difficult - try using a different compiler
825
839
  * to build the library!
826
840
  */
827
- PNG_FUNCTION(void, (PNGCAPI *png_longjmp_ptr), PNGARG((jmp_buf, int)), typedef);
841
+ PNG_FUNCTION(void, (PNGCAPI *png_longjmp_ptr), (jmp_buf, int), typedef);
828
842
  #endif
829
843
 
830
844
  /* Transform masks for the high-level interface */
@@ -1974,6 +1988,46 @@ PNG_FIXED_EXPORT(233, void, png_set_cHRM_XYZ_fixed, (png_const_structrp png_ptr,
1974
1988
  png_fixed_point int_blue_Z))
1975
1989
  #endif
1976
1990
 
1991
+ #ifdef PNG_cICP_SUPPORTED
1992
+ PNG_EXPORT(250, png_uint_32, png_get_cICP, (png_const_structrp png_ptr,
1993
+ png_const_inforp info_ptr, png_bytep colour_primaries,
1994
+ png_bytep transfer_function, png_bytep matrix_coefficients,
1995
+ png_bytep video_full_range_flag));
1996
+ #endif
1997
+
1998
+ #ifdef PNG_cICP_SUPPORTED
1999
+ PNG_EXPORT(251, void, png_set_cICP, (png_const_structrp png_ptr,
2000
+ png_inforp info_ptr, png_byte colour_primaries,
2001
+ png_byte transfer_function, png_byte matrix_coefficients,
2002
+ png_byte video_full_range_flag));
2003
+ #endif
2004
+
2005
+ #ifdef PNG_cLLI_SUPPORTED
2006
+ PNG_FP_EXPORT(252, png_uint_32, png_get_cLLI, (png_const_structrp png_ptr,
2007
+ png_const_inforp info_ptr, double *maximum_content_light_level,
2008
+ double *maximum_frame_average_light_level))
2009
+ PNG_FIXED_EXPORT(253, png_uint_32, png_get_cLLI_fixed,
2010
+ (png_const_structrp png_ptr, png_const_inforp info_ptr,
2011
+ /* The values below are in cd/m2 (nits) and are scaled by 10,000; not
2012
+ * 100,000 as in the case of png_fixed_point.
2013
+ */
2014
+ png_uint_32p maximum_content_light_level_scaled_by_10000,
2015
+ png_uint_32p maximum_frame_average_light_level_scaled_by_10000))
2016
+ #endif
2017
+
2018
+ #ifdef PNG_cLLI_SUPPORTED
2019
+ PNG_FP_EXPORT(254, void, png_set_cLLI, (png_const_structrp png_ptr,
2020
+ png_inforp info_ptr, double maximum_content_light_level,
2021
+ double maximum_frame_average_light_level))
2022
+ PNG_FIXED_EXPORT(255, void, png_set_cLLI_fixed, (png_const_structrp png_ptr,
2023
+ png_inforp info_ptr,
2024
+ /* The values below are in cd/m2 (nits) and are scaled by 10,000; not
2025
+ * 100,000 as in the case of png_fixed_point.
2026
+ */
2027
+ png_uint_32 maximum_content_light_level_scaled_by_10000,
2028
+ png_uint_32 maximum_frame_average_light_level_scaled_by_10000))
2029
+ #endif
2030
+
1977
2031
  #ifdef PNG_eXIf_SUPPORTED
1978
2032
  PNG_EXPORT(246, png_uint_32, png_get_eXIf, (png_const_structrp png_ptr,
1979
2033
  png_inforp info_ptr, png_bytep *exif));
@@ -2018,6 +2072,60 @@ PNG_EXPORT(144, void, png_set_IHDR, (png_const_structrp png_ptr,
2018
2072
  int color_type, int interlace_method, int compression_method,
2019
2073
  int filter_method));
2020
2074
 
2075
+ #ifdef PNG_mDCV_SUPPORTED
2076
+ PNG_FP_EXPORT(256, png_uint_32, png_get_mDCV, (png_const_structrp png_ptr,
2077
+ png_const_inforp info_ptr,
2078
+ /* The chromaticities of the mastering display. As cHRM, but independent of
2079
+ * the encoding endpoints in cHRM, or cICP, or iCCP. These values will
2080
+ * always be in the range 0 to 1.3107.
2081
+ */
2082
+ double *white_x, double *white_y, double *red_x, double *red_y,
2083
+ double *green_x, double *green_y, double *blue_x, double *blue_y,
2084
+ /* Mastering display luminance in cd/m2 (nits). */
2085
+ double *mastering_display_maximum_luminance,
2086
+ double *mastering_display_minimum_luminance))
2087
+
2088
+ PNG_FIXED_EXPORT(257, png_uint_32, png_get_mDCV_fixed,
2089
+ (png_const_structrp png_ptr, png_const_inforp info_ptr,
2090
+ png_fixed_point *int_white_x, png_fixed_point *int_white_y,
2091
+ png_fixed_point *int_red_x, png_fixed_point *int_red_y,
2092
+ png_fixed_point *int_green_x, png_fixed_point *int_green_y,
2093
+ png_fixed_point *int_blue_x, png_fixed_point *int_blue_y,
2094
+ /* Mastering display luminance in cd/m2 (nits) multiplied (scaled) by
2095
+ * 10,000.
2096
+ */
2097
+ png_uint_32p mastering_display_maximum_luminance_scaled_by_10000,
2098
+ png_uint_32p mastering_display_minimum_luminance_scaled_by_10000))
2099
+ #endif
2100
+
2101
+ #ifdef PNG_mDCV_SUPPORTED
2102
+ PNG_FP_EXPORT(258, void, png_set_mDCV, (png_const_structrp png_ptr,
2103
+ png_inforp info_ptr,
2104
+ /* The chromaticities of the mastering display. As cHRM, but independent of
2105
+ * the encoding endpoints in cHRM, or cICP, or iCCP.
2106
+ */
2107
+ double white_x, double white_y, double red_x, double red_y, double green_x,
2108
+ double green_y, double blue_x, double blue_y,
2109
+ /* Mastering display luminance in cd/m2 (nits). */
2110
+ double mastering_display_maximum_luminance,
2111
+ double mastering_display_minimum_luminance))
2112
+
2113
+ PNG_FIXED_EXPORT(259, void, png_set_mDCV_fixed, (png_const_structrp png_ptr,
2114
+ png_inforp info_ptr,
2115
+ /* The admissible range of these values is not the full range of a PNG
2116
+ * fixed point value. Negative values cannot be encoded and the maximum
2117
+ * value is about 1.3 */
2118
+ png_fixed_point int_white_x, png_fixed_point int_white_y,
2119
+ png_fixed_point int_red_x, png_fixed_point int_red_y,
2120
+ png_fixed_point int_green_x, png_fixed_point int_green_y,
2121
+ png_fixed_point int_blue_x, png_fixed_point int_blue_y,
2122
+ /* These are PNG unsigned 4 byte values: 31-bit unsigned values. The MSB
2123
+ * must be zero.
2124
+ */
2125
+ png_uint_32 mastering_display_maximum_luminance_scaled_by_10000,
2126
+ png_uint_32 mastering_display_minimum_luminance_scaled_by_10000))
2127
+ #endif
2128
+
2021
2129
  #ifdef PNG_oFFs_SUPPORTED
2022
2130
  PNG_EXPORT(145, png_uint_32, png_get_oFFs, (png_const_structrp png_ptr,
2023
2131
  png_const_inforp info_ptr, png_int_32 *offset_x, png_int_32 *offset_y,
@@ -3238,7 +3346,7 @@ PNG_EXPORT(244, int, png_set_option, (png_structrp png_ptr, int option,
3238
3346
  * one to use is one more than this.)
3239
3347
  */
3240
3348
  #ifdef PNG_EXPORT_LAST_ORDINAL
3241
- PNG_EXPORT_LAST_ORDINAL(249);
3349
+ PNG_EXPORT_LAST_ORDINAL(259);
3242
3350
  #endif
3243
3351
 
3244
3352
  #ifdef __cplusplus
package/include/pngconf.h CHANGED
@@ -1,9 +1,8 @@
1
-
2
1
  /* pngconf.h - machine-configurable file for libpng
3
2
  *
4
- * libpng version 1.6.43
3
+ * libpng version 1.6.47
5
4
  *
6
- * Copyright (c) 2018-2024 Cosmin Truta
5
+ * Copyright (c) 2018-2025 Cosmin Truta
7
6
  * Copyright (c) 1998-2002,2004,2006-2016,2018 Glenn Randers-Pehrson
8
7
  * Copyright (c) 1996-1997 Andreas Dilger
9
8
  * Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
@@ -88,7 +87,7 @@
88
87
 
89
88
  /* The PNGARG macro was used in versions of libpng prior to 1.6.0 to protect
90
89
  * against legacy (pre ISOC90) compilers that did not understand function
91
- * prototypes. It is not required for modern C compilers.
90
+ * prototypes. [Deprecated.]
92
91
  */
93
92
  #ifndef PNGARG
94
93
  # define PNGARG(arglist) arglist
@@ -298,7 +297,7 @@
298
297
 
299
298
  #ifndef PNG_EXPORTA
300
299
  # define PNG_EXPORTA(ordinal, type, name, args, attributes) \
301
- PNG_FUNCTION(PNG_EXPORT_TYPE(type), (PNGAPI name), PNGARG(args), \
300
+ PNG_FUNCTION(PNG_EXPORT_TYPE(type), (PNGAPI name), args, \
302
301
  PNG_LINKAGE_API attributes)
303
302
  #endif
304
303
 
@@ -316,7 +315,7 @@
316
315
  #endif
317
316
 
318
317
  #ifndef PNG_CALLBACK
319
- # define PNG_CALLBACK(type, name, args) type (PNGCBAPI name) PNGARG(args)
318
+ # define PNG_CALLBACK(type, name, args) type (PNGCBAPI name) args
320
319
  #endif
321
320
 
322
321
  /* Support for compiler specific function attributes. These are used
@@ -1,8 +1,8 @@
1
1
  /* pnglibconf.h - library build configuration */
2
2
 
3
- /* libpng version 1.6.43 */
3
+ /* libpng version 1.6.47 */
4
4
 
5
- /* Copyright (c) 2018-2024 Cosmin Truta */
5
+ /* Copyright (c) 2018-2025 Cosmin Truta */
6
6
  /* Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson */
7
7
 
8
8
  /* This code is released under the libpng license. */
@@ -88,11 +88,14 @@
88
88
  #define PNG_READ_USER_TRANSFORM_SUPPORTED
89
89
  #define PNG_READ_bKGD_SUPPORTED
90
90
  #define PNG_READ_cHRM_SUPPORTED
91
+ #define PNG_READ_cICP_SUPPORTED
92
+ #define PNG_READ_cLLI_SUPPORTED
91
93
  #define PNG_READ_eXIf_SUPPORTED
92
94
  #define PNG_READ_gAMA_SUPPORTED
93
95
  #define PNG_READ_hIST_SUPPORTED
94
96
  #define PNG_READ_iCCP_SUPPORTED
95
97
  #define PNG_READ_iTXt_SUPPORTED
98
+ #define PNG_READ_mDCV_SUPPORTED
96
99
  #define PNG_READ_oFFs_SUPPORTED
97
100
  #define PNG_READ_pCAL_SUPPORTED
98
101
  #define PNG_READ_pHYs_SUPPORTED
@@ -158,11 +161,14 @@
158
161
  #define PNG_WRITE_WEIGHTED_FILTER_SUPPORTED
159
162
  #define PNG_WRITE_bKGD_SUPPORTED
160
163
  #define PNG_WRITE_cHRM_SUPPORTED
164
+ #define PNG_WRITE_cICP_SUPPORTED
165
+ #define PNG_WRITE_cLLI_SUPPORTED
161
166
  #define PNG_WRITE_eXIf_SUPPORTED
162
167
  #define PNG_WRITE_gAMA_SUPPORTED
163
168
  #define PNG_WRITE_hIST_SUPPORTED
164
169
  #define PNG_WRITE_iCCP_SUPPORTED
165
170
  #define PNG_WRITE_iTXt_SUPPORTED
171
+ #define PNG_WRITE_mDCV_SUPPORTED
166
172
  #define PNG_WRITE_oFFs_SUPPORTED
167
173
  #define PNG_WRITE_pCAL_SUPPORTED
168
174
  #define PNG_WRITE_pHYs_SUPPORTED
@@ -176,11 +182,14 @@
176
182
  #define PNG_WRITE_zTXt_SUPPORTED
177
183
  #define PNG_bKGD_SUPPORTED
178
184
  #define PNG_cHRM_SUPPORTED
185
+ #define PNG_cICP_SUPPORTED
186
+ #define PNG_cLLI_SUPPORTED
179
187
  #define PNG_eXIf_SUPPORTED
180
188
  #define PNG_gAMA_SUPPORTED
181
189
  #define PNG_hIST_SUPPORTED
182
190
  #define PNG_iCCP_SUPPORTED
183
191
  #define PNG_iTXt_SUPPORTED
192
+ #define PNG_mDCV_SUPPORTED
184
193
  #define PNG_oFFs_SUPPORTED
185
194
  #define PNG_pCAL_SUPPORTED
186
195
  #define PNG_pHYs_SUPPORTED
package/include/tiffio.h CHANGED
@@ -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 "@VAR@" 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