@img/sharp-libvips-dev 1.1.0-rc5 → 1.2.0-rc.1

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 (151) hide show
  1. package/cplusplus/vips-operators.cpp +39 -0
  2. package/include/archive.h +53 -2
  3. package/include/archive_entry.h +56 -25
  4. package/include/ffi.h +20 -2
  5. package/include/fontconfig/fontconfig.h +1 -1
  6. package/include/glib-2.0/gio/gdbusnameowning.h +12 -10
  7. package/include/glib-2.0/gio/gio-visibility.h +34 -0
  8. package/include/glib-2.0/gio/gsettings.h +35 -31
  9. package/include/glib-2.0/gio/gzlibcompressor.h +6 -0
  10. package/include/glib-2.0/girepository/gi-visibility.h +34 -0
  11. package/include/glib-2.0/girepository/gitypes.h +6 -0
  12. package/include/glib-2.0/glib/gbitlock.h +11 -0
  13. package/include/glib-2.0/glib/gdate.h +6 -0
  14. package/include/glib-2.0/glib/glib-visibility.h +34 -0
  15. package/include/glib-2.0/glib/gmain.h +13 -10
  16. package/include/glib-2.0/glib/gmessages.h +4 -1
  17. package/include/glib-2.0/glib/gstring.h +2 -0
  18. package/include/glib-2.0/glib/gversionmacros.h +9 -0
  19. package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
  20. package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
  21. package/include/glib-2.0/gobject/gsignal.h +33 -8
  22. package/include/harfbuzz/hb-common.h +1 -431
  23. package/include/harfbuzz/hb-deprecated.h +80 -2
  24. package/include/harfbuzz/hb-draw.h +2 -10
  25. package/include/harfbuzz/hb-face.h +1 -1
  26. package/include/harfbuzz/hb-font.h +55 -36
  27. package/include/harfbuzz/hb-paint.h +5 -3
  28. package/include/harfbuzz/hb-script-list.h +484 -0
  29. package/include/harfbuzz/hb-subset.h +22 -2
  30. package/include/harfbuzz/hb-version.h +3 -3
  31. package/include/libheif/heif.h +2 -0
  32. package/include/libheif/heif_version.h +2 -2
  33. package/include/libpng16/png.h +10 -10
  34. package/include/libpng16/pngconf.h +20 -27
  35. package/include/libpng16/pnglibconf.h +1 -1
  36. package/include/libxml2/libxml/HTMLparser.h +33 -30
  37. package/include/libxml2/libxml/HTMLtree.h +1 -0
  38. package/include/libxml2/libxml/SAX.h +2 -186
  39. package/include/libxml2/libxml/SAX2.h +2 -3
  40. package/include/libxml2/libxml/catalog.h +1 -0
  41. package/include/libxml2/libxml/debugXML.h +0 -138
  42. package/include/libxml2/libxml/encoding.h +124 -61
  43. package/include/libxml2/libxml/entities.h +0 -19
  44. package/include/libxml2/libxml/globals.h +0 -16
  45. package/include/libxml2/libxml/nanoftp.h +3 -173
  46. package/include/libxml2/libxml/parser.h +474 -231
  47. package/include/libxml2/libxml/parserInternals.h +21 -101
  48. package/include/libxml2/libxml/relaxng.h +7 -2
  49. package/include/libxml2/libxml/threads.h +0 -6
  50. package/include/libxml2/libxml/tree.h +29 -85
  51. package/include/libxml2/libxml/valid.h +20 -12
  52. package/include/libxml2/libxml/xinclude.h +5 -0
  53. package/include/libxml2/libxml/xlink.h +4 -0
  54. package/include/libxml2/libxml/xmlIO.h +15 -34
  55. package/include/libxml2/libxml/xmlautomata.h +19 -2
  56. package/include/libxml2/libxml/xmlerror.h +17 -18
  57. package/include/libxml2/libxml/xmlexports.h +6 -56
  58. package/include/libxml2/libxml/xmlmemory.h +19 -19
  59. package/include/libxml2/libxml/xmlmodule.h +4 -0
  60. package/include/libxml2/libxml/xmlreader.h +11 -3
  61. package/include/libxml2/libxml/xmlregexp.h +7 -106
  62. package/include/libxml2/libxml/xmlsave.h +11 -2
  63. package/include/libxml2/libxml/xmlschemas.h +10 -5
  64. package/include/libxml2/libxml/xmlunicode.h +3 -354
  65. package/include/libxml2/libxml/xmlversion.h +18 -33
  66. package/include/libxml2/libxml/xpath.h +5 -15
  67. package/include/libxml2/libxml/xpathInternals.h +9 -3
  68. package/include/libxml2/libxml/xpointer.h +1 -91
  69. package/include/pixman-1/pixman-version.h +2 -2
  70. package/include/pixman-1/pixman.h +200 -0
  71. package/include/png.h +10 -10
  72. package/include/pngconf.h +20 -27
  73. package/include/pnglibconf.h +1 -1
  74. package/include/vips/VImage8.h +62 -14
  75. package/include/vips/arithmetic.h +34 -34
  76. package/include/vips/basic.h +16 -0
  77. package/include/vips/buf.h +0 -5
  78. package/include/vips/colour.h +6 -7
  79. package/include/vips/connection.h +25 -37
  80. package/include/vips/enumtypes.h +11 -2
  81. package/include/vips/foreign.h +73 -43
  82. package/include/vips/format.h +7 -5
  83. package/include/vips/gate.h +0 -11
  84. package/include/vips/header.h +11 -11
  85. package/include/vips/image.h +8 -3
  86. package/include/vips/interpolate.h +0 -2
  87. package/include/vips/memory.h +4 -0
  88. package/include/vips/mosaicing.h +4 -0
  89. package/include/vips/object.h +14 -18
  90. package/include/vips/operation.h +0 -2
  91. package/include/vips/private.h +50 -2
  92. package/include/vips/region.h +1 -3
  93. package/include/vips/resample.h +2 -0
  94. package/include/vips/semaphore.h +8 -3
  95. package/include/vips/thread.h +1 -24
  96. package/include/vips/threadpool.h +0 -6
  97. package/include/vips/type.h +13 -9
  98. package/include/vips/util.h +17 -98
  99. package/include/vips/vector.h +0 -4
  100. package/include/vips/version.h +8 -8
  101. package/include/vips/vips.h +1 -0
  102. package/package.json +1 -1
  103. package/versions.json +11 -11
  104. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-animation.h +0 -221
  105. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-autocleanups.h +0 -37
  106. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +0 -525
  107. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h +0 -40
  108. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +0 -115
  109. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +0 -481
  110. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +0 -113
  111. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-macros.h +0 -718
  112. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-marshal.h +0 -33
  113. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +0 -70
  114. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +0 -168
  115. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h +0 -46
  116. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h +0 -165
  117. package/include/glib-2.0/glib/gwin32.h +0 -142
  118. package/include/harfbuzz/hb-subset-repacker.h +0 -81
  119. package/include/hwy/ops/tuple-inl.h +0 -125
  120. package/include/orc-0.4/orc/orc-stdint.h +0 -1
  121. package/include/orc-0.4/orc/orc.h +0 -16
  122. package/include/orc-0.4/orc/orcarm.h +0 -879
  123. package/include/orc-0.4/orc/orcbytecode.h +0 -35
  124. package/include/orc-0.4/orc/orcbytecodes.h +0 -255
  125. package/include/orc-0.4/orc/orccode.h +0 -53
  126. package/include/orc-0.4/orc/orccompiler.h +0 -176
  127. package/include/orc-0.4/orc/orcconstant.h +0 -39
  128. package/include/orc-0.4/orc/orccpu.h +0 -21
  129. package/include/orc-0.4/orc/orccpuinsn.h +0 -40
  130. package/include/orc-0.4/orc/orcdebug.h +0 -158
  131. package/include/orc-0.4/orc/orcemulateopcodes.h +0 -203
  132. package/include/orc-0.4/orc/orcexecutor.h +0 -135
  133. package/include/orc-0.4/orc/orcfunctions.h +0 -93
  134. package/include/orc-0.4/orc/orcinstruction.h +0 -39
  135. package/include/orc-0.4/orc/orcinternal.h +0 -46
  136. package/include/orc-0.4/orc/orclimits.h +0 -94
  137. package/include/orc-0.4/orc/orcmips.h +0 -229
  138. package/include/orc-0.4/orc/orcmmx.h +0 -79
  139. package/include/orc-0.4/orc/orcneon.h +0 -43
  140. package/include/orc-0.4/orc/orconce.h +0 -166
  141. package/include/orc-0.4/orc/orcopcode.h +0 -63
  142. package/include/orc-0.4/orc/orcparse.h +0 -27
  143. package/include/orc-0.4/orc/orcpowerpc.h +0 -209
  144. package/include/orc-0.4/orc/orcprogram.h +0 -192
  145. package/include/orc-0.4/orc/orcrule.h +0 -52
  146. package/include/orc-0.4/orc/orcsse.h +0 -55
  147. package/include/orc-0.4/orc/orctarget.h +0 -115
  148. package/include/orc-0.4/orc/orcutils.h +0 -238
  149. package/include/orc-0.4/orc/orcvariable.h +0 -81
  150. package/include/orc-0.4/orc/orcx86.h +0 -199
  151. package/include/orc-0.4/orc/orcx86insn.h +0 -672
@@ -71,10 +71,12 @@ typedef struct hb_subset_plan_t hb_subset_plan_t;
71
71
  * in the final subset.
72
72
  * @HB_SUBSET_FLAGS_NO_PRUNE_UNICODE_RANGES: If set then the unicode ranges in
73
73
  * OS/2 will not be recalculated.
74
- * @HB_SUBSET_FLAGS_NO_LAYOUT_CLOSURE: If set don't perform glyph closure on layout
74
+ * @HB_SUBSET_FLAGS_NO_LAYOUT_CLOSURE: If set do not perform glyph closure on layout
75
75
  * substitution rules (GSUB). Since: 7.2.0.
76
76
  * @HB_SUBSET_FLAGS_OPTIMIZE_IUP_DELTAS: If set perform IUP delta optimization on the
77
77
  * remaining gvar table's deltas. Since: 8.5.0
78
+ * @HB_SUBSET_FLAGS_NO_BIDI_CLOSURE: If set do not pull mirrored versions of input
79
+ * codepoints into the subset. Since: 11.1.0
78
80
  * @HB_SUBSET_FLAGS_IFTB_REQUIREMENTS: If set enforce requirements on the output subset
79
81
  * to allow it to be used with incremental font transfer IFTB patches. Primarily,
80
82
  * this forces all outline data to use long (32 bit) offsets. Since: EXPERIMENTAL
@@ -96,8 +98,9 @@ typedef enum { /*< flags >*/
96
98
  HB_SUBSET_FLAGS_NO_PRUNE_UNICODE_RANGES = 0x00000100u,
97
99
  HB_SUBSET_FLAGS_NO_LAYOUT_CLOSURE = 0x00000200u,
98
100
  HB_SUBSET_FLAGS_OPTIMIZE_IUP_DELTAS = 0x00000400u,
101
+ HB_SUBSET_FLAGS_NO_BIDI_CLOSURE = 0x00000800u,
99
102
  #ifdef HB_EXPERIMENTAL_API
100
- HB_SUBSET_FLAGS_IFTB_REQUIREMENTS = 0x00000800u,
103
+ HB_SUBSET_FLAGS_IFTB_REQUIREMENTS = 0x00001000u,
101
104
  #endif
102
105
  } hb_subset_flags_t;
103
106
 
@@ -224,6 +227,23 @@ hb_subset_input_override_name_table (hb_subset_input_t *input,
224
227
  unsigned language_id,
225
228
  const char *name_str,
226
229
  int str_len);
230
+
231
+
232
+ /*
233
+ * Raw outline data access
234
+ */
235
+
236
+ HB_EXTERN hb_blob_t*
237
+ hb_subset_cff_get_charstring_data (hb_face_t* face, hb_codepoint_t glyph_index);
238
+
239
+ HB_EXTERN hb_blob_t*
240
+ hb_subset_cff_get_charstrings_index (hb_face_t* face);
241
+
242
+ HB_EXTERN hb_blob_t*
243
+ hb_subset_cff2_get_charstring_data (hb_face_t* face, hb_codepoint_t glyph_index);
244
+
245
+ HB_EXTERN hb_blob_t*
246
+ hb_subset_cff2_get_charstrings_index (hb_face_t* face);
227
247
  #endif
228
248
 
229
249
  HB_EXTERN hb_face_t *
@@ -47,20 +47,20 @@ HB_BEGIN_DECLS
47
47
  *
48
48
  * The minor component of the library version available at compile-time.
49
49
  */
50
- #define HB_VERSION_MINOR 0
50
+ #define HB_VERSION_MINOR 2
51
51
  /**
52
52
  * HB_VERSION_MICRO:
53
53
  *
54
54
  * The micro component of the library version available at compile-time.
55
55
  */
56
- #define HB_VERSION_MICRO 0
56
+ #define HB_VERSION_MICRO 1
57
57
 
58
58
  /**
59
59
  * HB_VERSION_STRING:
60
60
  *
61
61
  * A string literal containing the library version available at compile-time.
62
62
  */
63
- #define HB_VERSION_STRING "11.0.0"
63
+ #define HB_VERSION_STRING "11.2.1"
64
64
 
65
65
  /**
66
66
  * HB_VERSION_ATLEAST:
@@ -2059,6 +2059,8 @@ struct heif_writer
2059
2059
  int writer_api_version;
2060
2060
 
2061
2061
  // --- version 1 functions ---
2062
+
2063
+ // On success, the returned heif_error may have a NULL message. It will automatically be replaced with a "Success" string.
2062
2064
  struct heif_error (* write)(struct heif_context* ctx, // TODO: why do we need this parameter?
2063
2065
  const void* data,
2064
2066
  size_t size,
@@ -28,10 +28,10 @@
28
28
  #define LIBHEIF_HEIF_VERSION_H
29
29
 
30
30
  /* Numeric representation of the version */
31
- #define LIBHEIF_NUMERIC_VERSION ((1<<24) | (19<<16) | (7<<8) | 0)
31
+ #define LIBHEIF_NUMERIC_VERSION ((1<<24) | (19<<16) | (8<<8) | 0)
32
32
 
33
33
  /* Version string */
34
- #define LIBHEIF_VERSION "1.19.7"
34
+ #define LIBHEIF_VERSION "1.19.8"
35
35
 
36
36
  #define LIBHEIF_PLUGIN_DIRECTORY "/target/lib/libheif"
37
37
 
@@ -1,6 +1,6 @@
1
1
  /* png.h - header file for PNG reference library
2
2
  *
3
- * libpng version 1.6.47
3
+ * libpng version 1.6.48
4
4
  *
5
5
  * Copyright (c) 2018-2025 Cosmin Truta
6
6
  * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson
@@ -14,7 +14,7 @@
14
14
  * libpng versions 0.89, June 1996, through 0.96, May 1997: Andreas Dilger
15
15
  * libpng versions 0.97, January 1998, through 1.6.35, July 2018:
16
16
  * Glenn Randers-Pehrson
17
- * libpng versions 1.6.36, December 2018, through 1.6.47, February 2025:
17
+ * libpng versions 1.6.36, December 2018, through 1.6.48, April 2025:
18
18
  * Cosmin Truta
19
19
  * See also "Contributing Authors", below.
20
20
  */
@@ -238,7 +238,7 @@
238
238
  * ...
239
239
  * 1.5.30 15 10530 15.so.15.30[.0]
240
240
  * ...
241
- * 1.6.47 16 10647 16.so.16.47[.0]
241
+ * 1.6.48 16 10648 16.so.16.48[.0]
242
242
  *
243
243
  * Henceforth the source version will match the shared-library major and
244
244
  * minor numbers; the shared-library major version number will be used for
@@ -274,7 +274,7 @@
274
274
  */
275
275
 
276
276
  /* Version information for png.h - this should match the version in png.c */
277
- #define PNG_LIBPNG_VER_STRING "1.6.47"
277
+ #define PNG_LIBPNG_VER_STRING "1.6.48"
278
278
  #define PNG_HEADER_VERSION_STRING " libpng version " PNG_LIBPNG_VER_STRING "\n"
279
279
 
280
280
  /* The versions of shared library builds should stay in sync, going forward */
@@ -285,7 +285,7 @@
285
285
  /* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */
286
286
  #define PNG_LIBPNG_VER_MAJOR 1
287
287
  #define PNG_LIBPNG_VER_MINOR 6
288
- #define PNG_LIBPNG_VER_RELEASE 47
288
+ #define PNG_LIBPNG_VER_RELEASE 48
289
289
 
290
290
  /* This should be zero for a public release, or non-zero for a
291
291
  * development version.
@@ -316,7 +316,7 @@
316
316
  * From version 1.0.1 it is:
317
317
  * XXYYZZ, where XX=major, YY=minor, ZZ=release
318
318
  */
319
- #define PNG_LIBPNG_VER 10647 /* 1.6.47 */
319
+ #define PNG_LIBPNG_VER 10648 /* 1.6.48 */
320
320
 
321
321
  /* Library configuration: these options cannot be changed after
322
322
  * the library has been built.
@@ -426,7 +426,7 @@ extern "C" {
426
426
  /* This triggers a compiler error in png.c, if png.c and png.h
427
427
  * do not agree upon the version number.
428
428
  */
429
- typedef char* png_libpng_version_1_6_47;
429
+ typedef char* png_libpng_version_1_6_48;
430
430
 
431
431
  /* Basic control structions. Read libpng-manual.txt or libpng.3 for more info.
432
432
  *
@@ -1570,7 +1570,7 @@ PNG_EXPORT(226, void, png_set_text_compression_method, (png_structrp png_ptr,
1570
1570
 
1571
1571
  #ifdef PNG_STDIO_SUPPORTED
1572
1572
  /* Initialize the input/output for the PNG file to the default functions. */
1573
- PNG_EXPORT(74, void, png_init_io, (png_structrp png_ptr, png_FILE_p fp));
1573
+ PNG_EXPORT(74, void, png_init_io, (png_structrp png_ptr, FILE *fp));
1574
1574
  #endif
1575
1575
 
1576
1576
  /* Replace the (error and abort), and warning functions with user
@@ -3088,7 +3088,7 @@ PNG_EXPORT(234, int, png_image_begin_read_from_file, (png_imagep image,
3088
3088
  */
3089
3089
 
3090
3090
  PNG_EXPORT(235, int, png_image_begin_read_from_stdio, (png_imagep image,
3091
- FILE* file));
3091
+ FILE *file));
3092
3092
  /* The PNG header is read from the stdio FILE object. */
3093
3093
  #endif /* STDIO */
3094
3094
 
@@ -3163,7 +3163,7 @@ PNG_EXPORT(239, int, png_image_write_to_file, (png_imagep image,
3163
3163
  PNG_EXPORT(240, int, png_image_write_to_stdio, (png_imagep image, FILE *file,
3164
3164
  int convert_to_8_bit, const void *buffer, png_int_32 row_stride,
3165
3165
  const void *colormap));
3166
- /* Write the image to the given (FILE*). */
3166
+ /* Write the image to the given FILE object. */
3167
3167
  #endif /* SIMPLIFIED_WRITE_STDIO */
3168
3168
 
3169
3169
  /* With all write APIs if image is in one of the linear formats with 16-bit
@@ -1,6 +1,6 @@
1
1
  /* pngconf.h - machine-configurable file for libpng
2
2
  *
3
- * libpng version 1.6.47
3
+ * libpng version 1.6.48
4
4
  *
5
5
  * Copyright (c) 2018-2025 Cosmin Truta
6
6
  * Copyright (c) 1998-2002,2004,2006-2016,2018 Glenn Randers-Pehrson
@@ -219,25 +219,13 @@
219
219
  /* NOTE: PNGCBAPI always defaults to PNGCAPI. */
220
220
 
221
221
  # if defined(PNGAPI) && !defined(PNG_USER_PRIVATEBUILD)
222
- # error "PNG_USER_PRIVATEBUILD must be defined if PNGAPI is changed"
222
+ # error PNG_USER_PRIVATEBUILD must be defined if PNGAPI is changed
223
223
  # endif
224
224
 
225
- # if (defined(_MSC_VER) && _MSC_VER < 800) ||\
226
- (defined(__BORLANDC__) && __BORLANDC__ < 0x500)
227
- /* older Borland and MSC
228
- * compilers used '__export' and required this to be after
229
- * the type.
230
- */
231
- # ifndef PNG_EXPORT_TYPE
232
- # define PNG_EXPORT_TYPE(type) type PNG_IMPEXP
233
- # endif
234
- # define PNG_DLL_EXPORT __export
235
- # else /* newer compiler */
236
- # define PNG_DLL_EXPORT __declspec(dllexport)
237
- # ifndef PNG_DLL_IMPORT
238
- # define PNG_DLL_IMPORT __declspec(dllimport)
239
- # endif
240
- # endif /* compiler */
225
+ # define PNG_DLL_EXPORT __declspec(dllexport)
226
+ # ifndef PNG_DLL_IMPORT
227
+ # define PNG_DLL_IMPORT __declspec(dllimport)
228
+ # endif
241
229
 
242
230
  #else /* !Windows */
243
231
  # if (defined(__IBMC__) || defined(__IBMCPP__)) && defined(__OS2__)
@@ -479,7 +467,7 @@
479
467
  #if CHAR_BIT == 8 && UCHAR_MAX == 255
480
468
  typedef unsigned char png_byte;
481
469
  #else
482
- # error "libpng requires 8-bit bytes"
470
+ # error libpng requires 8-bit bytes
483
471
  #endif
484
472
 
485
473
  #if INT_MIN == -32768 && INT_MAX == 32767
@@ -487,7 +475,7 @@
487
475
  #elif SHRT_MIN == -32768 && SHRT_MAX == 32767
488
476
  typedef short png_int_16;
489
477
  #else
490
- # error "libpng requires a signed 16-bit type"
478
+ # error libpng requires a signed 16-bit integer type
491
479
  #endif
492
480
 
493
481
  #if UINT_MAX == 65535
@@ -495,7 +483,7 @@
495
483
  #elif USHRT_MAX == 65535
496
484
  typedef unsigned short png_uint_16;
497
485
  #else
498
- # error "libpng requires an unsigned 16-bit type"
486
+ # error libpng requires an unsigned 16-bit integer type
499
487
  #endif
500
488
 
501
489
  #if INT_MIN < -2147483646 && INT_MAX > 2147483646
@@ -503,7 +491,7 @@
503
491
  #elif LONG_MIN < -2147483646 && LONG_MAX > 2147483646
504
492
  typedef long int png_int_32;
505
493
  #else
506
- # error "libpng requires a signed 32-bit (or more) type"
494
+ # error libpng requires a signed 32-bit (or longer) integer type
507
495
  #endif
508
496
 
509
497
  #if UINT_MAX > 4294967294U
@@ -511,7 +499,7 @@
511
499
  #elif ULONG_MAX > 4294967294U
512
500
  typedef unsigned long int png_uint_32;
513
501
  #else
514
- # error "libpng requires an unsigned 32-bit (or more) type"
502
+ # error libpng requires an unsigned 32-bit (or longer) integer type
515
503
  #endif
516
504
 
517
505
  /* Prior to 1.6.0, it was possible to disable the use of size_t and ptrdiff_t.
@@ -592,10 +580,6 @@ typedef const png_fixed_point * png_const_fixed_point_p;
592
580
  typedef size_t * png_size_tp;
593
581
  typedef const size_t * png_const_size_tp;
594
582
 
595
- #ifdef PNG_STDIO_SUPPORTED
596
- typedef FILE * png_FILE_p;
597
- #endif
598
-
599
583
  #ifdef PNG_FLOATING_POINT_SUPPORTED
600
584
  typedef double * png_doublep;
601
585
  typedef const double * png_const_doublep;
@@ -617,6 +601,15 @@ typedef double * * png_doublepp;
617
601
  /* Pointers to pointers to pointers; i.e., pointer to array */
618
602
  typedef char * * * png_charppp;
619
603
 
604
+ #ifdef PNG_STDIO_SUPPORTED
605
+ /* With PNG_STDIO_SUPPORTED it was possible to use I/O streams that were
606
+ * not necessarily stdio FILE streams, to allow building Windows applications
607
+ * before Win32 and Windows CE applications before WinCE 3.0, but that kind
608
+ * of support has long been discontinued.
609
+ */
610
+ typedef FILE * png_FILE_p; /* [Deprecated] */
611
+ #endif
612
+
620
613
  #endif /* PNG_BUILDING_SYMBOL_TABLE */
621
614
 
622
615
  #endif /* PNGCONF_H */
@@ -1,6 +1,6 @@
1
1
  /* pnglibconf.h - library build configuration */
2
2
 
3
- /* libpng version 1.6.47 */
3
+ /* libpng version 1.6.48 */
4
4
 
5
5
  /* Copyright (c) 2018-2025 Cosmin Truta */
6
6
  /* Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson */
@@ -21,6 +21,11 @@
21
21
  extern "C" {
22
22
  #endif
23
23
 
24
+ /*
25
+ * Backward compatibility
26
+ */
27
+ #define UTF8ToHtml htmlUTF8ToHtml
28
+
24
29
  /*
25
30
  * Most of the back-end structures from XML and HTML are shared.
26
31
  */
@@ -42,31 +47,22 @@ typedef struct _htmlElemDesc htmlElemDesc;
42
47
  typedef htmlElemDesc *htmlElemDescPtr;
43
48
  struct _htmlElemDesc {
44
49
  const char *name; /* The tag name */
45
- char startTag; /* Whether the start tag can be implied */
50
+ char startTag; /* unused */
46
51
  char endTag; /* Whether the end tag can be implied */
47
52
  char saveEndTag; /* Whether the end tag should be saved */
48
53
  char empty; /* Is this an empty element ? */
49
- char depr; /* Is this a deprecated element ? */
50
- char dtd; /* 1: only in Loose DTD, 2: only Frameset one */
54
+ char depr; /* unused */
55
+ char dtd; /* unused */
51
56
  char isinline; /* is this a block 0 or inline 1 element */
52
57
  const char *desc; /* the description */
53
58
 
54
- /* NRK Jan.2003
55
- * New fields encapsulating HTML structure
56
- *
57
- * Bugs:
58
- * This is a very limited representation. It fails to tell us when
59
- * an element *requires* subelements (we only have whether they're
60
- * allowed or not), and it doesn't tell us where CDATA and PCDATA
61
- * are allowed. Some element relationships are not fully represented:
62
- * these are flagged with the word MODIFIER
63
- */
64
- const char** subelts; /* allowed sub-elements of this element */
65
- const char* defaultsubelt; /* subelement for suggested auto-repair
66
- if necessary or NULL */
67
- const char** attrs_opt; /* Optional Attributes */
68
- const char** attrs_depr; /* Additional deprecated attributes */
69
- const char** attrs_req; /* Required attributes */
59
+ const char** subelts XML_DEPRECATED_MEMBER;
60
+ const char* defaultsubelt XML_DEPRECATED_MEMBER;
61
+ const char** attrs_opt XML_DEPRECATED_MEMBER;
62
+ const char** attrs_depr XML_DEPRECATED_MEMBER;
63
+ const char** attrs_req XML_DEPRECATED_MEMBER;
64
+
65
+ int dataMode;
70
66
  };
71
67
 
72
68
  /*
@@ -85,11 +81,6 @@ struct _htmlEntityDesc {
85
81
  XML_DEPRECATED
86
82
  XMLPUBVAR const xmlSAXHandlerV1 htmlDefaultSAXHandler;
87
83
 
88
- #ifdef LIBXML_THREAD_ENABLED
89
- XML_DEPRECATED
90
- XMLPUBFUN const xmlSAXHandlerV1 *__htmlDefaultSAXHandler(void);
91
- #endif
92
-
93
84
  #endif /* LIBXML_SAX1_ENABLED */
94
85
 
95
86
  /*
@@ -105,9 +96,11 @@ XMLPUBFUN const htmlEntityDesc *
105
96
  XMLPUBFUN const htmlEntityDesc *
106
97
  htmlEntityValueLookup(unsigned int value);
107
98
 
99
+ XML_DEPRECATED
108
100
  XMLPUBFUN int
109
101
  htmlIsAutoClosed(htmlDocPtr doc,
110
102
  htmlNodePtr elem);
103
+ XML_DEPRECATED
111
104
  XMLPUBFUN int
112
105
  htmlAutoCloseTag(htmlDocPtr doc,
113
106
  const xmlChar *name,
@@ -157,7 +150,7 @@ XMLPUBFUN htmlDocPtr
157
150
  htmlParseFile (const char *filename,
158
151
  const char *encoding);
159
152
  XMLPUBFUN int
160
- UTF8ToHtml (unsigned char *out,
153
+ htmlUTF8ToHtml (unsigned char *out,
161
154
  int *outlen,
162
155
  const unsigned char *in,
163
156
  int *inlen);
@@ -203,20 +196,26 @@ XMLPUBFUN void
203
196
  * to the xmlReadDoc() and similar calls.
204
197
  */
205
198
  typedef enum {
206
- HTML_PARSE_RECOVER = 1<<0, /* Relaxed parsing */
199
+ HTML_PARSE_RECOVER = 1<<0, /* No effect */
207
200
  HTML_PARSE_NODEFDTD = 1<<2, /* do not default a doctype if not found */
208
201
  HTML_PARSE_NOERROR = 1<<5, /* suppress error reports */
209
202
  HTML_PARSE_NOWARNING= 1<<6, /* suppress warning reports */
210
- HTML_PARSE_PEDANTIC = 1<<7, /* pedantic error reporting */
203
+ HTML_PARSE_PEDANTIC = 1<<7, /* No effect */
211
204
  HTML_PARSE_NOBLANKS = 1<<8, /* remove blank nodes */
212
- HTML_PARSE_NONET = 1<<11,/* Forbid network access */
205
+ HTML_PARSE_NONET = 1<<11,/* No effect */
213
206
  HTML_PARSE_NOIMPLIED= 1<<13,/* Do not add implied html/body... elements */
214
207
  HTML_PARSE_COMPACT = 1<<16,/* compact small text nodes */
215
- HTML_PARSE_IGNORE_ENC=1<<21 /* ignore internal document encoding hint */
208
+ HTML_PARSE_HUGE = 1<<19,/* relax any hardcoded limit from the parser */
209
+ HTML_PARSE_IGNORE_ENC=1<<21,/* ignore internal document encoding hint */
210
+ HTML_PARSE_BIG_LINES= 1<<22,/* Store big lines numbers in text PSVI field */
211
+ HTML_PARSE_HTML5 = 1<<26 /* HTML5 support */
216
212
  } htmlParserOption;
217
213
 
218
214
  XMLPUBFUN void
219
215
  htmlCtxtReset (htmlParserCtxtPtr ctxt);
216
+ XMLPUBFUN int
217
+ htmlCtxtSetOptions (htmlParserCtxtPtr ctxt,
218
+ int options);
220
219
  XMLPUBFUN int
221
220
  htmlCtxtUseOptions (htmlParserCtxtPtr ctxt,
222
221
  int options);
@@ -283,7 +282,7 @@ XMLPUBFUN htmlDocPtr
283
282
  const char *encoding,
284
283
  int options);
285
284
 
286
- /* NRK/Jan2003: further knowledge of HTML structure
285
+ /* deprecated content model
287
286
  */
288
287
  typedef enum {
289
288
  HTML_NA = 0 , /* something we don't check at all */
@@ -296,9 +295,13 @@ typedef enum {
296
295
  /* Using htmlElemDesc rather than name here, to emphasise the fact
297
296
  that otherwise there's a lookup overhead
298
297
  */
298
+ XML_DEPRECATED
299
299
  XMLPUBFUN htmlStatus htmlAttrAllowed(const htmlElemDesc*, const xmlChar*, int) ;
300
+ XML_DEPRECATED
300
301
  XMLPUBFUN int htmlElementAllowedHere(const htmlElemDesc*, const xmlChar*) ;
302
+ XML_DEPRECATED
301
303
  XMLPUBFUN htmlStatus htmlElementStatusHere(const htmlElemDesc*, const htmlElemDesc*) ;
304
+ XML_DEPRECATED
302
305
  XMLPUBFUN htmlStatus htmlNodeStatus(htmlNodePtr, int) ;
303
306
  /**
304
307
  * htmlDefaultSubelement:
@@ -133,6 +133,7 @@ XMLPUBFUN void
133
133
 
134
134
  #endif /* LIBXML_OUTPUT_ENABLED */
135
135
 
136
+ XML_DEPRECATED
136
137
  XMLPUBFUN int
137
138
  htmlIsBooleanAttr (const xmlChar *name);
138
139
 
@@ -8,195 +8,11 @@
8
8
  * Author: Daniel Veillard
9
9
  */
10
10
 
11
-
12
11
  #ifndef __XML_SAX_H__
13
12
  #define __XML_SAX_H__
14
13
 
15
- #include <libxml/xmlversion.h>
16
- #include <libxml/parser.h>
17
-
18
- #ifdef LIBXML_LEGACY_ENABLED
19
-
20
- #ifdef __cplusplus
21
- extern "C" {
14
+ #ifdef __GNUC__
15
+ #warning "libxml/SAX.h is deprecated"
22
16
  #endif
23
- XML_DEPRECATED
24
- XMLPUBFUN const xmlChar *
25
- getPublicId (void *ctx);
26
- XML_DEPRECATED
27
- XMLPUBFUN const xmlChar *
28
- getSystemId (void *ctx);
29
- XML_DEPRECATED
30
- XMLPUBFUN void
31
- setDocumentLocator (void *ctx,
32
- xmlSAXLocatorPtr loc);
33
-
34
- XML_DEPRECATED
35
- XMLPUBFUN int
36
- getLineNumber (void *ctx);
37
- XML_DEPRECATED
38
- XMLPUBFUN int
39
- getColumnNumber (void *ctx);
40
-
41
- XML_DEPRECATED
42
- XMLPUBFUN int
43
- isStandalone (void *ctx);
44
- XML_DEPRECATED
45
- XMLPUBFUN int
46
- hasInternalSubset (void *ctx);
47
- XML_DEPRECATED
48
- XMLPUBFUN int
49
- hasExternalSubset (void *ctx);
50
-
51
- XML_DEPRECATED
52
- XMLPUBFUN void
53
- internalSubset (void *ctx,
54
- const xmlChar *name,
55
- const xmlChar *ExternalID,
56
- const xmlChar *SystemID);
57
- XML_DEPRECATED
58
- XMLPUBFUN void
59
- externalSubset (void *ctx,
60
- const xmlChar *name,
61
- const xmlChar *ExternalID,
62
- const xmlChar *SystemID);
63
- XML_DEPRECATED
64
- XMLPUBFUN xmlEntityPtr
65
- getEntity (void *ctx,
66
- const xmlChar *name);
67
- XML_DEPRECATED
68
- XMLPUBFUN xmlEntityPtr
69
- getParameterEntity (void *ctx,
70
- const xmlChar *name);
71
- XML_DEPRECATED
72
- XMLPUBFUN xmlParserInputPtr
73
- resolveEntity (void *ctx,
74
- const xmlChar *publicId,
75
- const xmlChar *systemId);
76
-
77
- XML_DEPRECATED
78
- XMLPUBFUN void
79
- entityDecl (void *ctx,
80
- const xmlChar *name,
81
- int type,
82
- const xmlChar *publicId,
83
- const xmlChar *systemId,
84
- xmlChar *content);
85
- XML_DEPRECATED
86
- XMLPUBFUN void
87
- attributeDecl (void *ctx,
88
- const xmlChar *elem,
89
- const xmlChar *fullname,
90
- int type,
91
- int def,
92
- const xmlChar *defaultValue,
93
- xmlEnumerationPtr tree);
94
- XML_DEPRECATED
95
- XMLPUBFUN void
96
- elementDecl (void *ctx,
97
- const xmlChar *name,
98
- int type,
99
- xmlElementContentPtr content);
100
- XML_DEPRECATED
101
- XMLPUBFUN void
102
- notationDecl (void *ctx,
103
- const xmlChar *name,
104
- const xmlChar *publicId,
105
- const xmlChar *systemId);
106
- XML_DEPRECATED
107
- XMLPUBFUN void
108
- unparsedEntityDecl (void *ctx,
109
- const xmlChar *name,
110
- const xmlChar *publicId,
111
- const xmlChar *systemId,
112
- const xmlChar *notationName);
113
-
114
- XML_DEPRECATED
115
- XMLPUBFUN void
116
- startDocument (void *ctx);
117
- XML_DEPRECATED
118
- XMLPUBFUN void
119
- endDocument (void *ctx);
120
- XML_DEPRECATED
121
- XMLPUBFUN void
122
- attribute (void *ctx,
123
- const xmlChar *fullname,
124
- const xmlChar *value);
125
- XML_DEPRECATED
126
- XMLPUBFUN void
127
- startElement (void *ctx,
128
- const xmlChar *fullname,
129
- const xmlChar **atts);
130
- XML_DEPRECATED
131
- XMLPUBFUN void
132
- endElement (void *ctx,
133
- const xmlChar *name);
134
- XML_DEPRECATED
135
- XMLPUBFUN void
136
- reference (void *ctx,
137
- const xmlChar *name);
138
- XML_DEPRECATED
139
- XMLPUBFUN void
140
- characters (void *ctx,
141
- const xmlChar *ch,
142
- int len);
143
- XML_DEPRECATED
144
- XMLPUBFUN void
145
- ignorableWhitespace (void *ctx,
146
- const xmlChar *ch,
147
- int len);
148
- XML_DEPRECATED
149
- XMLPUBFUN void
150
- processingInstruction (void *ctx,
151
- const xmlChar *target,
152
- const xmlChar *data);
153
- XML_DEPRECATED
154
- XMLPUBFUN void
155
- globalNamespace (void *ctx,
156
- const xmlChar *href,
157
- const xmlChar *prefix);
158
- XML_DEPRECATED
159
- XMLPUBFUN void
160
- setNamespace (void *ctx,
161
- const xmlChar *name);
162
- XML_DEPRECATED
163
- XMLPUBFUN xmlNsPtr
164
- getNamespace (void *ctx);
165
- XML_DEPRECATED
166
- XMLPUBFUN int
167
- checkNamespace (void *ctx,
168
- xmlChar *nameSpace);
169
- XML_DEPRECATED
170
- XMLPUBFUN void
171
- namespaceDecl (void *ctx,
172
- const xmlChar *href,
173
- const xmlChar *prefix);
174
- XML_DEPRECATED
175
- XMLPUBFUN void
176
- comment (void *ctx,
177
- const xmlChar *value);
178
- XML_DEPRECATED
179
- XMLPUBFUN void
180
- cdataBlock (void *ctx,
181
- const xmlChar *value,
182
- int len);
183
-
184
- #ifdef LIBXML_SAX1_ENABLED
185
- XML_DEPRECATED
186
- XMLPUBFUN void
187
- initxmlDefaultSAXHandler (xmlSAXHandlerV1 *hdlr,
188
- int warning);
189
- #ifdef LIBXML_HTML_ENABLED
190
- XML_DEPRECATED
191
- XMLPUBFUN void
192
- inithtmlDefaultSAXHandler (xmlSAXHandlerV1 *hdlr);
193
- #endif
194
- #endif /* LIBXML_SAX1_ENABLED */
195
-
196
- #ifdef __cplusplus
197
- }
198
- #endif
199
-
200
- #endif /* LIBXML_LEGACY_ENABLED */
201
17
 
202
18
  #endif /* __XML_SAX_H__ */
@@ -95,16 +95,15 @@ XMLPUBFUN void
95
95
  xmlSAX2StartDocument (void *ctx);
96
96
  XMLPUBFUN void
97
97
  xmlSAX2EndDocument (void *ctx);
98
- #if defined(LIBXML_SAX1_ENABLED) || defined(LIBXML_HTML_ENABLED) || \
99
- defined(LIBXML_WRITER_ENABLED) || defined(LIBXML_LEGACY_ENABLED)
98
+ XML_DEPRECATED
100
99
  XMLPUBFUN void
101
100
  xmlSAX2StartElement (void *ctx,
102
101
  const xmlChar *fullname,
103
102
  const xmlChar **atts);
103
+ XML_DEPRECATED
104
104
  XMLPUBFUN void
105
105
  xmlSAX2EndElement (void *ctx,
106
106
  const xmlChar *name);
107
- #endif /* LIBXML_SAX1_ENABLED or LIBXML_HTML_ENABLED or LIBXML_LEGACY_ENABLED */
108
107
  XMLPUBFUN void
109
108
  xmlSAX2StartElementNs (void *ctx,
110
109
  const xmlChar *localname,
@@ -161,6 +161,7 @@ XMLPUBFUN xmlChar *
161
161
  */
162
162
  XMLPUBFUN int
163
163
  xmlCatalogSetDebug (int level);
164
+ XML_DEPRECATED
164
165
  XMLPUBFUN xmlCatalogPrefer
165
166
  xmlCatalogSetDefaultPrefer(xmlCatalogPrefer prefer);
166
167
  XMLPUBFUN void