@revizly/sharp-libvips-dev 1.0.7 → 1.0.9

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 (147) 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 +64 -9
  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/freetype2/freetype/config/ftconfig.h +1 -1
  19. package/include/freetype2/freetype/config/ftheader.h +1 -1
  20. package/include/freetype2/freetype/config/ftoption.h +17 -1
  21. package/include/freetype2/freetype/config/ftstdlib.h +1 -1
  22. package/include/freetype2/freetype/config/integer-types.h +1 -1
  23. package/include/freetype2/freetype/config/mac-support.h +1 -1
  24. package/include/freetype2/freetype/config/public-macros.h +1 -1
  25. package/include/freetype2/freetype/freetype.h +35 -83
  26. package/include/freetype2/freetype/ftadvanc.h +1 -1
  27. package/include/freetype2/freetype/ftbbox.h +1 -1
  28. package/include/freetype2/freetype/ftbdf.h +1 -1
  29. package/include/freetype2/freetype/ftbitmap.h +1 -1
  30. package/include/freetype2/freetype/ftbzip2.h +1 -1
  31. package/include/freetype2/freetype/ftcache.h +1 -1
  32. package/include/freetype2/freetype/ftcid.h +1 -1
  33. package/include/freetype2/freetype/ftcolor.h +1 -1
  34. package/include/freetype2/freetype/ftdriver.h +75 -1
  35. package/include/freetype2/freetype/fterrdef.h +1 -1
  36. package/include/freetype2/freetype/fterrors.h +1 -1
  37. package/include/freetype2/freetype/ftfntfmt.h +1 -1
  38. package/include/freetype2/freetype/ftgasp.h +1 -1
  39. package/include/freetype2/freetype/ftglyph.h +1 -1
  40. package/include/freetype2/freetype/ftgxval.h +1 -1
  41. package/include/freetype2/freetype/ftgzip.h +1 -1
  42. package/include/freetype2/freetype/ftimage.h +17 -12
  43. package/include/freetype2/freetype/ftincrem.h +1 -1
  44. package/include/freetype2/freetype/ftlcdfil.h +1 -1
  45. package/include/freetype2/freetype/ftlist.h +1 -1
  46. package/include/freetype2/freetype/ftlzw.h +1 -1
  47. package/include/freetype2/freetype/ftmac.h +1 -1
  48. package/include/freetype2/freetype/ftmm.h +31 -2
  49. package/include/freetype2/freetype/ftmodapi.h +1 -1
  50. package/include/freetype2/freetype/ftmoderr.h +1 -1
  51. package/include/freetype2/freetype/ftotval.h +1 -1
  52. package/include/freetype2/freetype/ftoutln.h +2 -2
  53. package/include/freetype2/freetype/ftparams.h +1 -1
  54. package/include/freetype2/freetype/ftpfr.h +1 -1
  55. package/include/freetype2/freetype/ftrender.h +1 -1
  56. package/include/freetype2/freetype/ftsizes.h +1 -1
  57. package/include/freetype2/freetype/ftsnames.h +1 -1
  58. package/include/freetype2/freetype/ftstroke.h +1 -1
  59. package/include/freetype2/freetype/ftsynth.h +1 -1
  60. package/include/freetype2/freetype/ftsystem.h +1 -1
  61. package/include/freetype2/freetype/fttrigon.h +1 -1
  62. package/include/freetype2/freetype/fttypes.h +1 -1
  63. package/include/freetype2/freetype/ftwinfnt.h +1 -1
  64. package/include/freetype2/freetype/otsvg.h +1 -1
  65. package/include/freetype2/freetype/t1tables.h +1 -59
  66. package/include/freetype2/freetype/ttnameid.h +1 -1
  67. package/include/freetype2/freetype/tttables.h +4 -3
  68. package/include/freetype2/freetype/tttags.h +1 -1
  69. package/include/freetype2/ft2build.h +1 -1
  70. package/include/fribidi/fribidi-config.h +2 -2
  71. package/include/fribidi/fribidi-unicode-version.h +3 -3
  72. package/include/gio-unix-2.0/gio/gunixmounts.h +97 -23
  73. package/include/glib-2.0/gio/gappinfo.h +40 -25
  74. package/include/glib-2.0/gio/gasyncresult.h +1 -1
  75. package/include/glib-2.0/gio/gfile.h +4 -0
  76. package/include/glib-2.0/gio/gio-visibility.h +34 -0
  77. package/include/glib-2.0/gio/gioenums.h +2 -2
  78. package/include/glib-2.0/gio/gresource.h +6 -0
  79. package/include/glib-2.0/girepository/gi-visibility.h +34 -0
  80. package/include/glib-2.0/girepository/gicallableinfo.h +12 -0
  81. package/include/glib-2.0/girepository/gitypes.h +1 -0
  82. package/include/glib-2.0/glib/garray.h +1 -1
  83. package/include/glib-2.0/glib/glib-visibility.h +34 -0
  84. package/include/glib-2.0/glib/gmacros.h +8 -2
  85. package/include/glib-2.0/glib/gmain.h +223 -54
  86. package/include/glib-2.0/glib/gmem.h +3 -0
  87. package/include/glib-2.0/glib/gqsort.h +8 -1
  88. package/include/glib-2.0/glib/grefstring.h +4 -0
  89. package/include/glib-2.0/glib/gstdio.h +65 -0
  90. package/include/glib-2.0/glib/gstrfuncs.h +4 -0
  91. package/include/glib-2.0/glib/gstring.h +4 -0
  92. package/include/glib-2.0/glib/gunicode.h +17 -1
  93. package/include/glib-2.0/glib/gvariant.h +50 -13
  94. package/include/glib-2.0/glib/gvarianttype.h +62 -46
  95. package/include/glib-2.0/glib/gversionmacros.h +9 -0
  96. package/include/glib-2.0/glib-unix.h +21 -0
  97. package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
  98. package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
  99. package/include/glib-2.0/gobject/gobjectnotifyqueue.c +3 -3
  100. package/include/glib-2.0/gobject/gtype.h +5 -5
  101. package/include/harfbuzz/hb-buffer.h +7 -0
  102. package/include/harfbuzz/hb-common.h +18 -0
  103. package/include/harfbuzz/hb-draw.h +1 -1
  104. package/include/harfbuzz/hb-face.h +36 -0
  105. package/include/harfbuzz/hb-ft.h +3 -0
  106. package/include/harfbuzz/hb-version.h +3 -3
  107. package/include/libheif/heif.h +485 -34
  108. package/include/libheif/heif_items.h +237 -0
  109. package/include/libheif/heif_properties.h +58 -2
  110. package/include/libheif/heif_regions.h +1 -1
  111. package/include/libheif/heif_version.h +2 -2
  112. package/include/libpng16/png.h +13 -13
  113. package/include/libpng16/pngconf.h +4 -4
  114. package/include/libpng16/pnglibconf.h +1 -1
  115. package/include/librsvg-2.0/librsvg/rsvg-version.h +3 -3
  116. package/include/librsvg-2.0/librsvg/rsvg.h +32 -1
  117. package/include/libxml2/libxml/parser.h +1 -1
  118. package/include/libxml2/libxml/xmlexports.h +2 -2
  119. package/include/libxml2/libxml/xmlversion.h +13 -13
  120. package/include/pixman-1/pixman-version.h +3 -3
  121. package/include/png.h +13 -13
  122. package/include/pngconf.h +4 -4
  123. package/include/pnglibconf.h +1 -1
  124. package/include/tiffio.h +11 -11
  125. package/include/tiffvers.h +4 -4
  126. package/include/vips/VImage8.h +170 -60
  127. package/include/vips/arithmetic.h +9 -0
  128. package/include/vips/basic.h +8 -4
  129. package/include/vips/buf.h +0 -2
  130. package/include/vips/connection.h +0 -2
  131. package/include/vips/conversion.h +0 -3
  132. package/include/vips/create.h +11 -0
  133. package/include/vips/enumtypes.h +3 -3
  134. package/include/vips/foreign.h +4 -18
  135. package/include/vips/header.h +7 -0
  136. package/include/vips/image.h +7 -2
  137. package/include/vips/interpolate.h +2 -3
  138. package/include/vips/memory.h +19 -1
  139. package/include/vips/operation.h +2 -7
  140. package/include/vips/private.h +7 -0
  141. package/include/vips/util.h +7 -17
  142. package/include/vips/version.h +8 -8
  143. package/include/vips/vips.h +11 -5
  144. package/include/vips/vips8 +19 -12
  145. package/include/zlib.h +3 -3
  146. package/package.json +1 -1
  147. package/versions.json +16 -16
@@ -0,0 +1,237 @@
1
+ /*
2
+ * HEIF codec.
3
+ * Copyright (c) 2023 Dirk Farin <dirk.farin@gmail.com>
4
+ *
5
+ * This file is part of libheif.
6
+ *
7
+ * libheif is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Lesser General Public License as
9
+ * published by the Free Software Foundation, either version 3 of
10
+ * the License, or (at your option) any later version.
11
+ *
12
+ * libheif is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General Public License
18
+ * along with libheif. If not, see <http://www.gnu.org/licenses/>.
19
+ */
20
+
21
+ #ifndef LIBHEIF_HEIF_ITEMS_H
22
+ #define LIBHEIF_HEIF_ITEMS_H
23
+
24
+ #include "libheif/heif.h"
25
+
26
+ #ifdef __cplusplus
27
+ extern "C" {
28
+ #endif
29
+
30
+
31
+ /**
32
+ * Gets the number of items.
33
+ *
34
+ * This is not the same as the number of images, since there can be other types of items,
35
+ * such as metadata.
36
+ *
37
+ * @param ctx the file context
38
+ * @return the number of items
39
+ */
40
+ LIBHEIF_API
41
+ int heif_context_get_number_of_items(const struct heif_context* ctx);
42
+
43
+ /**
44
+ * Get the item identifiers.
45
+ *
46
+ * Fills in the item IDs into the user-supplied array {@code ID_array}, preallocated with {@code count} entries.
47
+ *
48
+ * @param ctx the file context
49
+ * @param ID_array the output array.
50
+ * @param count the number of items allocated within {@code ID_array}.
51
+ * @return the total number of IDs filled into the array, which may be less than {@code count}.
52
+ */
53
+ LIBHEIF_API
54
+ int heif_context_get_list_of_item_IDs(const struct heif_context* ctx,
55
+ heif_item_id* ID_array,
56
+ int count);
57
+
58
+ /**
59
+ * Gets the item type.
60
+ *
61
+ * Usually, this is a four character code (e.g. `mime` or `uri `), but it can theoretically be
62
+ * any 4-byte number. Thus, the type is returned as an integer. You can use {@link heif_fourcc} to map
63
+ * between the two representations.
64
+ *
65
+ * @param ctx the file context
66
+ * @param item_id the item identifier for the item
67
+ * @return the item type
68
+ */
69
+ LIBHEIF_API
70
+ uint32_t heif_item_get_item_type(const struct heif_context* ctx, heif_item_id item_id);
71
+
72
+ #define heif_item_type_mime heif_fourcc('m','i','m','e')
73
+ #define heif_item_type_uri heif_fourcc('u','r','i',' ')
74
+
75
+ LIBHEIF_API
76
+ int heif_item_is_item_hidden(const struct heif_context* ctx, heif_item_id item_id);
77
+
78
+
79
+ /**
80
+ * Gets the MIME content_type for an item.
81
+ *
82
+ * Only valid if the item type is `mime`.
83
+ * If the item does not exist, or if it is not a `mime` item, NULL is returned.
84
+ *
85
+ * @param ctx the file context
86
+ * @param item_id the item identifier for the item
87
+ * @return the item content_type
88
+ */
89
+ LIBHEIF_API
90
+ const char* heif_item_get_mime_item_content_type(const struct heif_context* ctx, heif_item_id item_id);
91
+
92
+ /**
93
+ * Gets the content_encoding for a MIME item.
94
+ *
95
+ * Only valid if the item type is `mime`.
96
+ * If the item does not exist, or if it is not a `mime` item, NULL is returned.
97
+ *
98
+ * If the item is not encoded, the returned value will be an empty string (not null).
99
+ *
100
+ * @param ctx the file context
101
+ * @param item_id the item identifier for the item
102
+ * @return the item content_type
103
+ */
104
+ LIBHEIF_API
105
+ const char* heif_item_get_mime_item_content_encoding(const struct heif_context* ctx, heif_item_id item_id);
106
+
107
+ /**
108
+ * Gets the item_uri_type for an item.
109
+ *
110
+ * Only valid if the item type is `uri `.
111
+ * If the item does not exist, or if it is not a `uri ` item, NULL is returned.
112
+ *
113
+ * @param ctx the file context
114
+ * @param item_id the item identifier for the item
115
+ * @return the item item_uri_type
116
+ */
117
+ LIBHEIF_API
118
+ const char* heif_item_get_uri_item_uri_type(const struct heif_context* ctx, heif_item_id item_id);
119
+
120
+ LIBHEIF_API
121
+ const char* heif_item_get_item_name(const struct heif_context* ctx, heif_item_id item_id);
122
+
123
+ LIBHEIF_API
124
+ struct heif_error heif_item_set_item_name(struct heif_context* ctx,
125
+ heif_item_id item,
126
+ const char* item_name);
127
+
128
+
129
+ /**
130
+ * Gets the raw metadata, as stored in the HEIF file.
131
+ *
132
+ * Data in a "mime" item with "content_encoding" can be compressed.
133
+ * When `out_compression_format` is NULL, the decompressed data will be returned.
134
+ * Otherwise, the compressed data is returned and `out_compression_format` will be filled with the
135
+ * compression format.
136
+ * If the compression method is not supported, an error will be returned.
137
+ *
138
+ * It is valid to set `out_data` to NULL. In that case, only the `out_data_size` is filled.
139
+ * Note that it is inefficient to use `out_data=NULL` just to get the size of compressed data.
140
+ * In general, this should be avoided.
141
+ *
142
+ * If there is no data assigned to the item or there is an error, `out_data_size` is set to zero.
143
+ *
144
+ * @param ctx the file context
145
+ * @param item_id the item identifier for the item
146
+ * @param out_compression_format how the data is compressed. If the pointer is NULL, the decompressed data will be returned.
147
+ * @param out_data the corresponding raw metadata
148
+ * @param out_data_size the size of the metadata in bytes
149
+ * @return whether the call succeeded, or there was an error
150
+ */
151
+ LIBHEIF_API
152
+ struct heif_error heif_item_get_item_data(const struct heif_context* ctx,
153
+ heif_item_id item_id,
154
+ heif_metadata_compression* out_compression_format,
155
+ uint8_t** out_data, size_t* out_data_size);
156
+
157
+ /**
158
+ * Free the item data.
159
+ *
160
+ * This is used to free memory associated with the data returned by
161
+ * {@link heif_item_get_item_data} in 'out_data' and set the pointer to NULL.
162
+ *
163
+ * @param ctx the file context
164
+ * @param item_data the data to free
165
+ */
166
+ LIBHEIF_API
167
+ void heif_release_item_data(const struct heif_context* ctx, uint8_t** item_data);
168
+
169
+
170
+ // ------------------------- item references -------------------------
171
+
172
+ /**
173
+ * Get the item ids that reference the given item.
174
+ *
175
+ * @param ctx the file context.
176
+ * @param from_item_id the item identifier for the item.
177
+ * @param index the index of the reference to get.
178
+ * @param out_reference_type_4cc The 4cc of the reference. (e.g dimg, thmb, cdsc, or auxl)
179
+ * @param out_references_to the item references. Use {@link heif_release_item_references} to free the memory.
180
+ * @return the number of items that reference the given item. Returns 0 if the index exceeds the number of references.
181
+ */
182
+ LIBHEIF_API
183
+ size_t heif_context_get_item_references(const struct heif_context* ctx,
184
+ heif_item_id from_item_id,
185
+ int index,
186
+ uint32_t* out_reference_type_4cc,
187
+ heif_item_id** out_references_to);
188
+
189
+ LIBHEIF_API
190
+ void heif_release_item_references(const struct heif_context* ctx, heif_item_id** references);
191
+
192
+ LIBHEIF_API
193
+ struct heif_error heif_context_add_item_reference(struct heif_context* ctx,
194
+ uint32_t reference_type,
195
+ heif_item_id from_item,
196
+ heif_item_id to_item);
197
+
198
+ LIBHEIF_API
199
+ struct heif_error heif_context_add_item_references(struct heif_context* ctx,
200
+ uint32_t reference_type,
201
+ heif_item_id from_item,
202
+ const heif_item_id* to_item,
203
+ int num_to_items);
204
+
205
+ // ------------------------- adding new items -------------------------
206
+
207
+ LIBHEIF_API
208
+ struct heif_error heif_context_add_item(struct heif_context* ctx,
209
+ const char* item_type,
210
+ const void* data, int size,
211
+ heif_item_id* out_item_id);
212
+
213
+ LIBHEIF_API
214
+ struct heif_error heif_context_add_mime_item(struct heif_context* ctx,
215
+ const char* content_type,
216
+ heif_metadata_compression content_encoding,
217
+ const void* data, int size,
218
+ heif_item_id* out_item_id);
219
+
220
+ LIBHEIF_API
221
+ struct heif_error heif_context_add_precompressed_mime_item(struct heif_context* ctx,
222
+ const char* content_type,
223
+ const char* content_encoding,
224
+ const void* data, int size,
225
+ heif_item_id* out_item_id);
226
+
227
+ LIBHEIF_API
228
+ struct heif_error heif_context_add_uri_item(struct heif_context* ctx,
229
+ const char* item_uri_type,
230
+ const void* data, int size,
231
+ heif_item_id* out_item_id);
232
+
233
+ #ifdef __cplusplus
234
+ }
235
+ #endif
236
+
237
+ #endif
@@ -21,7 +21,7 @@
21
21
  #ifndef LIBHEIF_HEIF_PROPERTIES_H
22
22
  #define LIBHEIF_HEIF_PROPERTIES_H
23
23
 
24
- #include "libheif/heif.h"
24
+ #include "heif.h"
25
25
 
26
26
  #ifdef __cplusplus
27
27
  extern "C" {
@@ -37,7 +37,10 @@ enum heif_item_property_type
37
37
  heif_item_property_type_transform_mirror = heif_fourcc('i', 'm', 'i', 'r'),
38
38
  heif_item_property_type_transform_rotation = heif_fourcc('i', 'r', 'o', 't'),
39
39
  heif_item_property_type_transform_crop = heif_fourcc('c', 'l', 'a', 'p'),
40
- heif_item_property_type_image_size = heif_fourcc('i', 's', 'p', 'e')
40
+ heif_item_property_type_image_size = heif_fourcc('i', 's', 'p', 'e'),
41
+ heif_item_property_type_uuid = heif_fourcc('u', 'u', 'i', 'd'),
42
+ heif_item_property_type_tai_clock_info = heif_fourcc('t', 'a', 'i', 'c'),
43
+ heif_item_property_type_tai_timestamp = heif_fourcc('i', 't', 'a', 'i')
41
44
  };
42
45
 
43
46
  // Get the heif_property_id for a heif_item_id.
@@ -131,6 +134,59 @@ void heif_item_get_property_transform_crop_borders(const struct heif_context* co
131
134
  int image_width, int image_height,
132
135
  int* left, int* top, int* right, int* bottom);
133
136
 
137
+ /**
138
+ * @param context The heif_context for the file
139
+ * @param itemId The image item id to which this property belongs.
140
+ * @param fourcc_type The short four-cc type of the property to add.
141
+ * @param uuid_type If fourcc_type=='uuid', this should point to a 16-byte UUID type. It is ignored otherwise and can be NULL.
142
+ * @param data Data to insert for this property (including a full-box header, if required for this box).
143
+ * @param size Length of data in bytes.
144
+ * @param is_essential Whether this property is essential (boolean).
145
+ * @param out_propertyId Outputs the id of the inserted property. Can be NULL.
146
+ */
147
+ LIBHEIF_API
148
+ struct heif_error heif_item_add_raw_property(const struct heif_context* context,
149
+ heif_item_id itemId,
150
+ uint32_t fourcc_type,
151
+ const uint8_t* uuid_type,
152
+ const uint8_t* data, size_t size,
153
+ int is_essential,
154
+ heif_property_id* out_propertyId);
155
+
156
+ LIBHEIF_API
157
+ struct heif_error heif_item_get_property_raw_size(const struct heif_context* context,
158
+ heif_item_id itemId,
159
+ heif_property_id propertyId,
160
+ size_t* out_size);
161
+
162
+ /**
163
+ * @param out_data User-supplied array to write the property data to. The required size of the output array is given by heif_item_get_property_raw_size().
164
+ */
165
+ LIBHEIF_API
166
+ struct heif_error heif_item_get_property_raw_data(const struct heif_context* context,
167
+ heif_item_id itemId,
168
+ heif_property_id propertyId,
169
+ uint8_t* out_data);
170
+
171
+ /**
172
+ * Get the extended type for an extended "uuid" box.
173
+ *
174
+ * This provides the UUID for the extended box.
175
+ *
176
+ * This method should only be called on properties of type `heif_item_property_type_uuid`.
177
+ *
178
+ * @param context the heif_context containing the HEIF file
179
+ * @param itemId the image item id to which this property belongs.
180
+ * @param propertyId the property index (1-based) to get the extended type for
181
+ * @param out_extended_type output of the call, must be a pointer to at least 16-bytes.
182
+ * @return heif_error_success or an error indicating the failure
183
+ */
184
+ LIBHEIF_API
185
+ struct heif_error heif_item_get_property_uuid_type(const struct heif_context* context,
186
+ heif_item_id itemId,
187
+ heif_property_id propertyId,
188
+ uint8_t out_extended_type[16]);
189
+
134
190
  #ifdef __cplusplus
135
191
  }
136
192
  #endif
@@ -22,7 +22,7 @@
22
22
  #ifndef LIBHEIF_HEIF_REGIONS_H
23
23
  #define LIBHEIF_HEIF_REGIONS_H
24
24
 
25
- #include "libheif/heif.h"
25
+ #include "heif.h"
26
26
 
27
27
  #ifdef __cplusplus
28
28
  extern "C" {
@@ -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) | (17<<16) | (6<<8) | 0)
31
+ #define LIBHEIF_NUMERIC_VERSION ((1<<24) | (19<<16) | (5<<8) | 0)
32
32
 
33
33
  /* Version string */
34
- #define LIBHEIF_VERSION "1.17.6"
34
+ #define LIBHEIF_VERSION "1.19.5"
35
35
 
36
36
  #define LIBHEIF_PLUGIN_DIRECTORY "/target/lib/libheif"
37
37
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  /* png.h - header file for PNG reference library
3
3
  *
4
- * libpng version 1.6.43
4
+ * libpng version 1.6.44
5
5
  *
6
6
  * Copyright (c) 2018-2024 Cosmin Truta
7
7
  * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson
@@ -15,7 +15,7 @@
15
15
  * libpng versions 0.89, June 1996, through 0.96, May 1997: Andreas Dilger
16
16
  * libpng versions 0.97, January 1998, through 1.6.35, July 2018:
17
17
  * Glenn Randers-Pehrson
18
- * libpng versions 1.6.36, December 2018, through 1.6.43, February 2024:
18
+ * libpng versions 1.6.36, December 2018, through 1.6.44, September 2024:
19
19
  * Cosmin Truta
20
20
  * See also "Contributing Authors", below.
21
21
  */
@@ -239,7 +239,7 @@
239
239
  * ...
240
240
  * 1.5.30 15 10530 15.so.15.30[.0]
241
241
  * ...
242
- * 1.6.43 16 10643 16.so.16.43[.0]
242
+ * 1.6.44 16 10644 16.so.16.44[.0]
243
243
  *
244
244
  * Henceforth the source version will match the shared-library major and
245
245
  * minor numbers; the shared-library major version number will be used for
@@ -275,7 +275,7 @@
275
275
  */
276
276
 
277
277
  /* Version information for png.h - this should match the version in png.c */
278
- #define PNG_LIBPNG_VER_STRING "1.6.43"
278
+ #define PNG_LIBPNG_VER_STRING "1.6.44"
279
279
  #define PNG_HEADER_VERSION_STRING " libpng version " PNG_LIBPNG_VER_STRING "\n"
280
280
 
281
281
  /* The versions of shared library builds should stay in sync, going forward */
@@ -286,18 +286,18 @@
286
286
  /* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */
287
287
  #define PNG_LIBPNG_VER_MAJOR 1
288
288
  #define PNG_LIBPNG_VER_MINOR 6
289
- #define PNG_LIBPNG_VER_RELEASE 43
289
+ #define PNG_LIBPNG_VER_RELEASE 44
290
290
 
291
291
  /* This should be zero for a public release, or non-zero for a
292
292
  * development version.
293
293
  */
294
- #define PNG_LIBPNG_VER_BUILD 0
294
+ #define PNG_LIBPNG_VER_BUILD 0
295
295
 
296
296
  /* 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
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
301
301
  #define PNG_LIBPNG_BUILD_RELEASE_STATUS_MASK 7
302
302
 
303
303
  /* Release-Specific Flags */
@@ -317,7 +317,7 @@
317
317
  * From version 1.0.1 it is:
318
318
  * XXYYZZ, where XX=major, YY=minor, ZZ=release
319
319
  */
320
- #define PNG_LIBPNG_VER 10643 /* 1.6.43 */
320
+ #define PNG_LIBPNG_VER 10644 /* 1.6.44 */
321
321
 
322
322
  /* Library configuration: these options cannot be changed after
323
323
  * the library has been built.
@@ -427,7 +427,7 @@ extern "C" {
427
427
  /* This triggers a compiler error in png.c, if png.c and png.h
428
428
  * do not agree upon the version number.
429
429
  */
430
- typedef char* png_libpng_version_1_6_43;
430
+ typedef char* png_libpng_version_1_6_44;
431
431
 
432
432
  /* Basic control structions. Read libpng-manual.txt or libpng.3 for more info.
433
433
  *
@@ -824,7 +824,7 @@ typedef PNG_CALLBACK(int, *png_user_chunk_ptr, (png_structp,
824
824
  * your compiler. This may be very difficult - try using a different compiler
825
825
  * to build the library!
826
826
  */
827
- PNG_FUNCTION(void, (PNGCAPI *png_longjmp_ptr), PNGARG((jmp_buf, int)), typedef);
827
+ PNG_FUNCTION(void, (PNGCAPI *png_longjmp_ptr), (jmp_buf, int), typedef);
828
828
  #endif
829
829
 
830
830
  /* Transform masks for the high-level interface */
@@ -1,7 +1,7 @@
1
1
 
2
2
  /* pngconf.h - machine-configurable file for libpng
3
3
  *
4
- * libpng version 1.6.43
4
+ * libpng version 1.6.44
5
5
  *
6
6
  * Copyright (c) 2018-2024 Cosmin Truta
7
7
  * Copyright (c) 1998-2002,2004,2006-2016,2018 Glenn Randers-Pehrson
@@ -88,7 +88,7 @@
88
88
 
89
89
  /* The PNGARG macro was used in versions of libpng prior to 1.6.0 to protect
90
90
  * against legacy (pre ISOC90) compilers that did not understand function
91
- * prototypes. It is not required for modern C compilers.
91
+ * prototypes. [Deprecated.]
92
92
  */
93
93
  #ifndef PNGARG
94
94
  # define PNGARG(arglist) arglist
@@ -298,7 +298,7 @@
298
298
 
299
299
  #ifndef PNG_EXPORTA
300
300
  # define PNG_EXPORTA(ordinal, type, name, args, attributes) \
301
- PNG_FUNCTION(PNG_EXPORT_TYPE(type), (PNGAPI name), PNGARG(args), \
301
+ PNG_FUNCTION(PNG_EXPORT_TYPE(type), (PNGAPI name), args, \
302
302
  PNG_LINKAGE_API attributes)
303
303
  #endif
304
304
 
@@ -316,7 +316,7 @@
316
316
  #endif
317
317
 
318
318
  #ifndef PNG_CALLBACK
319
- # define PNG_CALLBACK(type, name, args) type (PNGCBAPI name) PNGARG(args)
319
+ # define PNG_CALLBACK(type, name, args) type (PNGCBAPI name) args
320
320
  #endif
321
321
 
322
322
  /* Support for compiler specific function attributes. These are used
@@ -1,6 +1,6 @@
1
1
  /* pnglibconf.h - library build configuration */
2
2
 
3
- /* libpng version 1.6.43 */
3
+ /* libpng version 1.6.44 */
4
4
 
5
5
  /* Copyright (c) 2018-2024 Cosmin Truta */
6
6
  /* Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson */
@@ -6,8 +6,8 @@
6
6
  #define RSVG_VERSION_H
7
7
 
8
8
  #define LIBRSVG_MAJOR_VERSION (2)
9
- #define LIBRSVG_MINOR_VERSION (58)
10
- #define LIBRSVG_MICRO_VERSION (91)
11
- #define LIBRSVG_VERSION "2.58.91"
9
+ #define LIBRSVG_MINOR_VERSION (59)
10
+ #define LIBRSVG_MICRO_VERSION (2)
11
+ #define LIBRSVG_VERSION "2.59.2"
12
12
 
13
13
  #endif
@@ -751,7 +751,7 @@ gboolean rsvg_handle_has_sub (RsvgHandle *handle, const char *id);
751
751
  * @RSVG_UNIT_MM: millimeters
752
752
  * @RSVG_UNIT_PT: points, or 1/72 inch
753
753
  * @RSVG_UNIT_PC: picas, or 1/6 inch (12 points)
754
- * @RSVG_UNIT_CH: advance measure of a '0' character (depends on the text orientation)
754
+ * @RSVG_UNIT_CH:
755
755
  *
756
756
  * Units for the `RsvgLength` struct. These have the same meaning as [CSS length
757
757
  * units](https://www.w3.org/TR/CSS21/syndata.html#length-units).
@@ -759,6 +759,14 @@ gboolean rsvg_handle_has_sub (RsvgHandle *handle, const char *id);
759
759
  * If you test for the values of this enum, please note that librsvg may add other units in the future
760
760
  * as its support for CSS improves. Please make your code handle unknown units gracefully (e.g. with
761
761
  * a `default` case in a `switch()` statement).
762
+ *
763
+ */
764
+ /**
765
+ * RSVG_UNIT_CH:
766
+ *
767
+ * advance measure of a '0' character (depends on the text orientation)
768
+ *
769
+ * Since: 2.58
762
770
  */
763
771
  typedef enum {
764
772
  RSVG_UNIT_PERCENT,
@@ -1149,6 +1157,29 @@ gboolean rsvg_handle_set_stylesheet (RsvgHandle *handle,
1149
1157
  gsize css_len,
1150
1158
  GError **error);
1151
1159
 
1160
+ /**
1161
+ * rsvg_handle_set_cancellable_for_rendering:
1162
+ * @handle: A [class@Rsvg.Handle].
1163
+ * @cancellable: A [class@Gio.Cancellable] or `NULL`.
1164
+ *
1165
+ * Sets a cancellable object that can be used to interrupt rendering
1166
+ * while the handle is being rendered in another thread. For example,
1167
+ * you can set a cancellable from your main thread, spawn a thread to
1168
+ * do the rendering, and interrupt the rendering from the main thread
1169
+ * by calling g_cancellable_cancel().
1170
+ *
1171
+ * If rendering is interrupted, the corresponding call to
1172
+ * rsvg_handle_render_document() (or any of the other rendering
1173
+ * functions) will return an error with domain `G_IO_ERROR`, and code
1174
+ * `G_IO_ERROR_CANCELLED`.
1175
+ *
1176
+ * Since: 2.59.0
1177
+ */
1178
+ RSVG_API
1179
+ void rsvg_handle_set_cancellable_for_rendering (RsvgHandle *handle,
1180
+ GCancellable *cancellable);
1181
+
1182
+
1152
1183
  #ifndef __GTK_DOC_IGNORE__
1153
1184
  /**
1154
1185
  * rsvg_handle_internal_set_testing:
@@ -948,7 +948,7 @@ XML_DEPRECATED XMLPUBFUN int
948
948
  xmlSubstituteEntitiesDefault(int val);
949
949
  XML_DEPRECATED XMLPUBFUN int
950
950
  xmlThrDefSubstituteEntitiesDefaultValue(int v);
951
- XML_DEPRECATED XMLPUBFUN int
951
+ XMLPUBFUN int
952
952
  xmlKeepBlanksDefault (int val);
953
953
  XML_DEPRECATED XMLPUBFUN int
954
954
  xmlThrDefKeepBlanksDefaultValue(int v);
@@ -67,7 +67,7 @@
67
67
  #define XML_DEPRECATED
68
68
  #elif __GNUC__ * 100 + __GNUC_MINOR__ >= 301
69
69
  #define XML_DEPRECATED __attribute__((deprecated))
70
- #elif _MSC_VER >= 1400
70
+ #elif defined(_MSC_VER) && _MSC_VER >= 1400
71
71
  /* Available since Visual Studio 2005 */
72
72
  #define XML_DEPRECATED __declspec(deprecated)
73
73
  #else
@@ -100,7 +100,7 @@
100
100
  #define XML_POP_WARNINGS \
101
101
  _Pragma("GCC diagnostic pop")
102
102
 
103
- #elif _MSC_VER >= 1400
103
+ #elif defined(_MSC_VER) && _MSC_VER >= 1400
104
104
 
105
105
  #define XML_IGNORE_FPTR_CAST_WARNINGS __pragma(warning(push))
106
106
  #define XML_POP_WARNINGS __pragma(warning(pop))
@@ -15,21 +15,21 @@
15
15
  *
16
16
  * the version string like "1.2.3"
17
17
  */
18
- #define LIBXML_DOTTED_VERSION "2.13.2"
18
+ #define LIBXML_DOTTED_VERSION "2.13.5"
19
19
 
20
20
  /**
21
21
  * LIBXML_VERSION:
22
22
  *
23
23
  * the version number: 1.2.3 value is 10203
24
24
  */
25
- #define LIBXML_VERSION 21302
25
+ #define LIBXML_VERSION 21305
26
26
 
27
27
  /**
28
28
  * LIBXML_VERSION_STRING:
29
29
  *
30
30
  * the version number string, 1.2.3 value is "10203"
31
31
  */
32
- #define LIBXML_VERSION_STRING "21302"
32
+ #define LIBXML_VERSION_STRING "21305"
33
33
 
34
34
  /**
35
35
  * LIBXML_VERSION_EXTRA:
@@ -44,7 +44,7 @@
44
44
  * Macro to check that the libxml version in use is compatible with
45
45
  * the version the software has been compiled against
46
46
  */
47
- #define LIBXML_TEST_VERSION xmlCheckVersion(21302);
47
+ #define LIBXML_TEST_VERSION xmlCheckVersion(21305);
48
48
 
49
49
  /**
50
50
  * LIBXML_THREAD_ENABLED:
@@ -69,7 +69,7 @@
69
69
  *
70
70
  * Whether the DOM like tree manipulation API support is configured in
71
71
  */
72
- #if 1
72
+ #if 0
73
73
  #define LIBXML_TREE_ENABLED
74
74
  #endif
75
75
 
@@ -78,7 +78,7 @@
78
78
  *
79
79
  * Whether the serialization/saving support is configured in
80
80
  */
81
- #if 1
81
+ #if 0
82
82
  #define LIBXML_OUTPUT_ENABLED
83
83
  #endif
84
84
 
@@ -87,7 +87,7 @@
87
87
  *
88
88
  * Whether the push parsing interfaces are configured in
89
89
  */
90
- #if 1
90
+ #if 0
91
91
  #define LIBXML_PUSH_ENABLED
92
92
  #endif
93
93
 
@@ -96,7 +96,7 @@
96
96
  *
97
97
  * Whether the xmlReader parsing interface is configured in
98
98
  */
99
- #if 1
99
+ #if 0
100
100
  #define LIBXML_READER_ENABLED
101
101
  #endif
102
102
 
@@ -114,7 +114,7 @@
114
114
  *
115
115
  * Whether the xmlWriter saving interface is configured in
116
116
  */
117
- #if 1
117
+ #if 0
118
118
  #define LIBXML_WRITER_ENABLED
119
119
  #endif
120
120
 
@@ -141,7 +141,7 @@
141
141
  *
142
142
  * Whether the HTTP support is configured in
143
143
  */
144
- #if 1
144
+ #if 0
145
145
  #define LIBXML_HTTP_ENABLED
146
146
  #endif
147
147
 
@@ -150,7 +150,7 @@
150
150
  *
151
151
  * Whether the DTD validation support is configured in
152
152
  */
153
- #if 1
153
+ #if 0
154
154
  #define LIBXML_VALID_ENABLED
155
155
  #endif
156
156
 
@@ -319,7 +319,7 @@
319
319
  *
320
320
  * the string suffix used by dynamic modules (usually shared libraries)
321
321
  */
322
- #define LIBXML_MODULE_EXTENSION ""
322
+ #define LIBXML_MODULE_EXTENSION ".so"
323
323
  #endif
324
324
 
325
325
  /**
@@ -327,7 +327,7 @@
327
327
  *
328
328
  * Whether the Zlib support is compiled in
329
329
  */
330
- #if 1
330
+ #if 0
331
331
  #define LIBXML_ZLIB_ENABLED
332
332
  #endif
333
333