@img/sharp-libvips-dev 1.0.1 → 1.0.3

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 (169) hide show
  1. package/README.md +1 -2
  2. package/include/aom/aom_decoder.h +1 -1
  3. package/include/aom/aom_encoder.h +7 -1
  4. package/include/aom/aom_image.h +24 -12
  5. package/include/aom/aom_integer.h +3 -3
  6. package/include/aom/aomcx.h +15 -0
  7. package/include/aom/aomdx.h +5 -2
  8. package/include/archive.h +7 -5
  9. package/include/archive_entry.h +5 -3
  10. package/include/cgif.h +3 -0
  11. package/include/expat.h +21 -10
  12. package/include/expat_config.h +11 -5
  13. package/include/ffi.h +12 -25
  14. package/include/freetype2/freetype/config/ftoption.h +2 -2
  15. package/include/fribidi/fribidi-config.h +2 -2
  16. package/include/fribidi/fribidi-unicode-version.h +3 -3
  17. package/include/gio-unix-2.0/gio/gfiledescriptorbased.h +3 -2
  18. package/include/glib-2.0/gio/gappinfo.h +40 -25
  19. package/include/glib-2.0/gio/gapplication.h +6 -0
  20. package/include/glib-2.0/gio/gasyncresult.h +1 -1
  21. package/include/glib-2.0/gio/gconverter.h +5 -0
  22. package/include/glib-2.0/gio/gdbusintrospection.h +1 -1
  23. package/include/glib-2.0/gio/gfile.h +16 -0
  24. package/include/glib-2.0/gio/gio-visibility.h +34 -0
  25. package/include/glib-2.0/gio/giotypes.h +0 -1
  26. package/include/glib-2.0/gio/gsettings.h +8 -0
  27. package/include/glib-2.0/gio/gvfs.h +2 -2
  28. package/include/glib-2.0/girepository/gi-visibility.h +34 -0
  29. package/include/glib-2.0/girepository/giarginfo.h +23 -6
  30. package/include/glib-2.0/girepository/gibaseinfo.h +44 -18
  31. package/include/glib-2.0/girepository/gicallableinfo.h +26 -16
  32. package/include/glib-2.0/girepository/gicallbackinfo.h +17 -2
  33. package/include/glib-2.0/girepository/giconstantinfo.h +19 -4
  34. package/include/glib-2.0/girepository/gienuminfo.h +20 -21
  35. package/include/glib-2.0/girepository/gifieldinfo.h +22 -7
  36. package/include/glib-2.0/girepository/giflagsinfo.h +60 -0
  37. package/include/glib-2.0/girepository/gifunctioninfo.h +22 -7
  38. package/include/glib-2.0/girepository/giinterfaceinfo.h +33 -18
  39. package/include/glib-2.0/girepository/giobjectinfo.h +41 -26
  40. package/include/glib-2.0/girepository/gipropertyinfo.h +18 -3
  41. package/include/glib-2.0/girepository/giregisteredtypeinfo.h +22 -11
  42. package/include/glib-2.0/girepository/girepository-autocleanups.h +56 -0
  43. package/include/glib-2.0/girepository/girepository.h +53 -62
  44. package/include/glib-2.0/girepository/girffi.h +8 -7
  45. package/include/glib-2.0/girepository/gisignalinfo.h +18 -3
  46. package/include/glib-2.0/girepository/gistructinfo.h +26 -11
  47. package/include/glib-2.0/girepository/gitypeinfo.h +29 -16
  48. package/include/glib-2.0/girepository/gitypelib.h +9 -13
  49. package/include/glib-2.0/girepository/gitypes.h +52 -104
  50. package/include/glib-2.0/girepository/giunioninfo.h +28 -12
  51. package/include/glib-2.0/girepository/giunresolvedinfo.h +17 -2
  52. package/include/glib-2.0/girepository/givalueinfo.h +65 -0
  53. package/include/glib-2.0/girepository/givfuncinfo.h +23 -8
  54. package/include/glib-2.0/glib/deprecated/gthread.h +9 -5
  55. package/include/glib-2.0/glib/gbitlock.h +31 -0
  56. package/include/glib-2.0/glib/gbookmarkfile.h +1 -1
  57. package/include/glib-2.0/glib/giochannel.h +2 -2
  58. package/include/glib-2.0/glib/glib-visibility.h +34 -0
  59. package/include/glib-2.0/glib/gmacros.h +12 -5
  60. package/include/glib-2.0/glib/gmain.h +93 -7
  61. package/include/glib-2.0/glib/gmessages.h +8 -0
  62. package/include/glib-2.0/glib/gqsort.h +8 -1
  63. package/include/glib-2.0/glib/gslice.h +2 -0
  64. package/include/glib-2.0/glib/gstrfuncs.h +24 -30
  65. package/include/glib-2.0/glib/gstrvbuilder.h +3 -0
  66. package/include/glib-2.0/glib/gthread.h +191 -3
  67. package/include/glib-2.0/glib/gunicode.h +1 -1
  68. package/include/glib-2.0/glib/gversionmacros.h +9 -0
  69. package/include/glib-2.0/glib-unix.h +7 -1
  70. package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
  71. package/include/glib-2.0/gobject/genums.h +6 -6
  72. package/include/glib-2.0/gobject/glib-types.h +11 -0
  73. package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
  74. package/include/glib-2.0/gobject/gsignal.h +16 -6
  75. package/include/glib-2.0/gobject/gtype.h +6 -6
  76. package/include/harfbuzz/hb-buffer.h +6 -0
  77. package/include/harfbuzz/hb-common.h +6 -9
  78. package/include/harfbuzz/hb-cplusplus.hh +8 -11
  79. package/include/harfbuzz/hb-subset.h +17 -4
  80. package/include/harfbuzz/hb-version.h +3 -3
  81. package/include/hwy/abort.h +28 -0
  82. package/include/hwy/aligned_allocator.h +218 -6
  83. package/include/hwy/base.h +1935 -512
  84. package/include/hwy/cache_control.h +24 -6
  85. package/include/hwy/detect_compiler_arch.h +105 -10
  86. package/include/hwy/detect_targets.h +146 -37
  87. package/include/hwy/foreach_target.h +36 -1
  88. package/include/hwy/highway.h +222 -50
  89. package/include/hwy/ops/arm_neon-inl.h +2055 -894
  90. package/include/hwy/ops/arm_sve-inl.h +1476 -348
  91. package/include/hwy/ops/emu128-inl.h +711 -623
  92. package/include/hwy/ops/generic_ops-inl.h +4431 -2157
  93. package/include/hwy/ops/inside-inl.h +691 -0
  94. package/include/hwy/ops/ppc_vsx-inl.h +2186 -673
  95. package/include/hwy/ops/rvv-inl.h +1556 -536
  96. package/include/hwy/ops/scalar-inl.h +353 -233
  97. package/include/hwy/ops/set_macros-inl.h +171 -23
  98. package/include/hwy/ops/shared-inl.h +198 -56
  99. package/include/hwy/ops/wasm_128-inl.h +283 -244
  100. package/include/hwy/ops/x86_128-inl.h +3673 -1357
  101. package/include/hwy/ops/x86_256-inl.h +1737 -663
  102. package/include/hwy/ops/x86_512-inl.h +1697 -500
  103. package/include/hwy/per_target.h +4 -0
  104. package/include/hwy/profiler.h +648 -0
  105. package/include/hwy/robust_statistics.h +2 -2
  106. package/include/hwy/targets.h +40 -32
  107. package/include/hwy/timer-inl.h +3 -3
  108. package/include/hwy/timer.h +16 -1
  109. package/include/libheif/heif.h +170 -15
  110. package/include/libheif/heif_items.h +237 -0
  111. package/include/libheif/heif_properties.h +38 -2
  112. package/include/libheif/heif_regions.h +1 -1
  113. package/include/libheif/heif_version.h +2 -2
  114. package/include/libpng16/png.h +32 -29
  115. package/include/libpng16/pngconf.h +2 -2
  116. package/include/libpng16/pnglibconf.h +8 -3
  117. package/include/librsvg-2.0/librsvg/rsvg-cairo.h +1 -1
  118. package/include/librsvg-2.0/librsvg/rsvg-features.h +3 -4
  119. package/include/librsvg-2.0/librsvg/rsvg-pixbuf.h +235 -0
  120. package/include/librsvg-2.0/librsvg/rsvg-version.h +3 -3
  121. package/include/librsvg-2.0/librsvg/rsvg.h +55 -176
  122. package/include/libxml2/libxml/HTMLparser.h +12 -19
  123. package/include/libxml2/libxml/c14n.h +1 -12
  124. package/include/libxml2/libxml/debugXML.h +1 -1
  125. package/include/libxml2/libxml/encoding.h +9 -0
  126. package/include/libxml2/libxml/entities.h +12 -1
  127. package/include/libxml2/libxml/hash.h +19 -0
  128. package/include/libxml2/libxml/list.h +2 -2
  129. package/include/libxml2/libxml/nanohttp.h +17 -0
  130. package/include/libxml2/libxml/parser.h +73 -58
  131. package/include/libxml2/libxml/parserInternals.h +9 -1
  132. package/include/libxml2/libxml/pattern.h +6 -0
  133. package/include/libxml2/libxml/tree.h +32 -12
  134. package/include/libxml2/libxml/uri.h +11 -0
  135. package/include/libxml2/libxml/valid.h +29 -2
  136. package/include/libxml2/libxml/xinclude.h +7 -0
  137. package/include/libxml2/libxml/xmlIO.h +21 -5
  138. package/include/libxml2/libxml/xmlerror.h +14 -0
  139. package/include/libxml2/libxml/xmlexports.h +111 -15
  140. package/include/libxml2/libxml/xmlmemory.h +8 -45
  141. package/include/libxml2/libxml/xmlreader.h +2 -0
  142. package/include/libxml2/libxml/xmlsave.h +5 -0
  143. package/include/libxml2/libxml/xmlunicode.h +165 -1
  144. package/include/libxml2/libxml/xmlversion.h +15 -179
  145. package/include/libxml2/libxml/xmlwriter.h +1 -0
  146. package/include/libxml2/libxml/xpath.h +4 -0
  147. package/include/pango-1.0/pango/pango-features.h +2 -2
  148. package/include/pango-1.0/pango/pango-fontmap.h +7 -0
  149. package/include/pango-1.0/pango/pango-item.h +4 -2
  150. package/include/pango-1.0/pango/pango-version-macros.h +25 -0
  151. package/include/pango-1.0/pango/pangofc-font.h +2 -1
  152. package/include/pixman-1/pixman-version.h +2 -2
  153. package/include/png.h +32 -29
  154. package/include/pngconf.h +2 -2
  155. package/include/pnglibconf.h +8 -3
  156. package/include/vips/connection.h +9 -3
  157. package/include/vips/util.h +1 -11
  158. package/include/vips/version.h +4 -4
  159. package/include/webp/decode.h +58 -56
  160. package/include/webp/demux.h +25 -21
  161. package/include/webp/encode.h +44 -39
  162. package/include/webp/mux.h +76 -15
  163. package/include/webp/mux_types.h +2 -1
  164. package/include/webp/sharpyuv/sharpyuv.h +77 -8
  165. package/include/webp/types.h +29 -8
  166. package/include/zconf.h +1 -1
  167. package/include/zlib.h +12 -12
  168. package/package.json +1 -1
  169. package/versions.json +18 -19
@@ -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,8 @@ 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')
41
42
  };
42
43
 
43
44
  // Get the heif_property_id for a heif_item_id.
@@ -131,6 +132,41 @@ void heif_item_get_property_transform_crop_borders(const struct heif_context* co
131
132
  int image_width, int image_height,
132
133
  int* left, int* top, int* right, int* bottom);
133
134
 
135
+
136
+ /**
137
+ * @param context
138
+ * @param itemId The image item id to which this property belongs.
139
+ * @param fourcc_type The short four-cc type of the property to add.
140
+ * @param uuid_type If fourcc_type=='uuid', this should point to a 16-byte UUID type. It is ignored otherwise and can be NULL.
141
+ * @param data Data to insert for this property (including a full-box header, if required for this box).
142
+ * @param size Length of data in bytes.
143
+ * @param is_essential Whether this property is essential (boolean).
144
+ * @param out_propertyId Outputs the id of the inserted property. Can be NULL.
145
+ */
146
+ LIBHEIF_API
147
+ struct heif_error heif_item_add_raw_property(const struct heif_context* context,
148
+ heif_item_id itemId,
149
+ uint32_t fourcc_type,
150
+ const uint8_t* uuid_type,
151
+ const uint8_t* data, size_t size,
152
+ int is_essential,
153
+ heif_property_id* out_propertyId);
154
+
155
+ LIBHEIF_API
156
+ struct heif_error heif_item_get_property_raw_size(const struct heif_context* context,
157
+ heif_item_id itemId,
158
+ heif_property_id propertyId,
159
+ size_t* out_size);
160
+
161
+ /**
162
+ * @param data_out 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().
163
+ */
164
+ LIBHEIF_API
165
+ struct heif_error heif_item_get_property_raw_data(const struct heif_context* context,
166
+ heif_item_id itemId,
167
+ heif_property_id propertyId,
168
+ uint8_t* out_data);
169
+
134
170
  #ifdef __cplusplus
135
171
  }
136
172
  #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) | (18<<16) | (2<<8) | 0)
32
32
 
33
33
  /* Version string */
34
- #define LIBHEIF_VERSION "1.17.6"
34
+ #define LIBHEIF_VERSION "1.18.2"
35
35
 
36
36
  #define LIBHEIF_PLUGIN_DIRECTORY "/target/lib/libheif"
37
37
 
@@ -1,9 +1,9 @@
1
1
 
2
2
  /* png.h - header file for PNG reference library
3
3
  *
4
- * libpng version 1.6.40
4
+ * libpng version 1.6.43
5
5
  *
6
- * Copyright (c) 2018-2023 Cosmin Truta
6
+ * Copyright (c) 2018-2024 Cosmin Truta
7
7
  * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson
8
8
  * Copyright (c) 1996-1997 Andreas Dilger
9
9
  * Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
@@ -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.40, June 2023:
18
+ * libpng versions 1.6.36, December 2018, through 1.6.43, February 2024:
19
19
  * Cosmin Truta
20
20
  * See also "Contributing Authors", below.
21
21
  */
@@ -27,8 +27,8 @@
27
27
  * PNG Reference Library License version 2
28
28
  * ---------------------------------------
29
29
  *
30
- * * Copyright (c) 1995-2023 The PNG Reference Library Authors.
31
- * * Copyright (c) 2018-2023 Cosmin Truta.
30
+ * * Copyright (c) 1995-2024 The PNG Reference Library Authors.
31
+ * * Copyright (c) 2018-2024 Cosmin Truta.
32
32
  * * Copyright (c) 2000-2002, 2004, 2006-2018 Glenn Randers-Pehrson.
33
33
  * * Copyright (c) 1996-1997 Andreas Dilger.
34
34
  * * Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
@@ -239,7 +239,7 @@
239
239
  * ...
240
240
  * 1.5.30 15 10530 15.so.15.30[.0]
241
241
  * ...
242
- * 1.6.40 16 10640 16.so.16.40[.0]
242
+ * 1.6.43 16 10643 16.so.16.43[.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
@@ -255,9 +255,6 @@
255
255
  * to the info_ptr or png_ptr members through png.h, and the compiled
256
256
  * application is loaded with a different version of the library.
257
257
  *
258
- * DLLNUM will change each time there are forward or backward changes
259
- * in binary compatibility (e.g., when a new feature is added).
260
- *
261
258
  * See libpng.txt or libpng.3 for more information. The PNG specification
262
259
  * is available as a W3C Recommendation and as an ISO/IEC Standard; see
263
260
  * <https://www.w3.org/TR/2003/REC-PNG-20031110/>
@@ -278,19 +275,21 @@
278
275
  */
279
276
 
280
277
  /* Version information for png.h - this should match the version in png.c */
281
- #define PNG_LIBPNG_VER_STRING "1.6.40"
282
- #define PNG_HEADER_VERSION_STRING " libpng version 1.6.40 - June 21, 2023\n"
278
+ #define PNG_LIBPNG_VER_STRING "1.6.43"
279
+ #define PNG_HEADER_VERSION_STRING " libpng version " PNG_LIBPNG_VER_STRING "\n"
283
280
 
284
- #define PNG_LIBPNG_VER_SONUM 16
285
- #define PNG_LIBPNG_VER_DLLNUM 16
281
+ /* The versions of shared library builds should stay in sync, going forward */
282
+ #define PNG_LIBPNG_VER_SHAREDLIB 16
283
+ #define PNG_LIBPNG_VER_SONUM PNG_LIBPNG_VER_SHAREDLIB /* [Deprecated] */
284
+ #define PNG_LIBPNG_VER_DLLNUM PNG_LIBPNG_VER_SHAREDLIB /* [Deprecated] */
286
285
 
287
286
  /* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */
288
287
  #define PNG_LIBPNG_VER_MAJOR 1
289
288
  #define PNG_LIBPNG_VER_MINOR 6
290
- #define PNG_LIBPNG_VER_RELEASE 40
289
+ #define PNG_LIBPNG_VER_RELEASE 43
291
290
 
292
291
  /* This should be zero for a public release, or non-zero for a
293
- * development version. [Deprecated]
292
+ * development version.
294
293
  */
295
294
  #define PNG_LIBPNG_VER_BUILD 0
296
295
 
@@ -318,7 +317,7 @@
318
317
  * From version 1.0.1 it is:
319
318
  * XXYYZZ, where XX=major, YY=minor, ZZ=release
320
319
  */
321
- #define PNG_LIBPNG_VER 10640 /* 1.6.40 */
320
+ #define PNG_LIBPNG_VER 10643 /* 1.6.43 */
322
321
 
323
322
  /* Library configuration: these options cannot be changed after
324
323
  * the library has been built.
@@ -428,7 +427,7 @@ extern "C" {
428
427
  /* This triggers a compiler error in png.c, if png.c and png.h
429
428
  * do not agree upon the version number.
430
429
  */
431
- typedef char* png_libpng_version_1_6_40;
430
+ typedef char* png_libpng_version_1_6_43;
432
431
 
433
432
  /* Basic control structions. Read libpng-manual.txt or libpng.3 for more info.
434
433
  *
@@ -849,7 +848,7 @@ PNG_FUNCTION(void, (PNGCAPI *png_longjmp_ptr), PNGARG((jmp_buf, int)), typedef);
849
848
  #define PNG_TRANSFORM_GRAY_TO_RGB 0x2000 /* read only */
850
849
  /* Added to libpng-1.5.4 */
851
850
  #define PNG_TRANSFORM_EXPAND_16 0x4000 /* read only */
852
- #if INT_MAX >= 0x8000 /* else this might break */
851
+ #if ~0U > 0xffffU /* or else this might break on a 16-bit machine */
853
852
  #define PNG_TRANSFORM_SCALE_16 0x8000 /* read only */
854
853
  #endif
855
854
 
@@ -908,15 +907,15 @@ PNG_EXPORT(2, void, png_set_sig_bytes, (png_structrp png_ptr, int num_bytes));
908
907
  /* Check sig[start] through sig[start + num_to_check - 1] to see if it's a
909
908
  * PNG file. Returns zero if the supplied bytes match the 8-byte PNG
910
909
  * signature, and non-zero otherwise. Having num_to_check == 0 or
911
- * start > 7 will always fail (ie return non-zero).
910
+ * start > 7 will always fail (i.e. return non-zero).
912
911
  */
913
912
  PNG_EXPORT(3, int, png_sig_cmp, (png_const_bytep sig, size_t start,
914
913
  size_t num_to_check));
915
914
 
916
915
  /* Simple signature checking function. This is the same as calling
917
- * png_check_sig(sig, n) := !png_sig_cmp(sig, 0, n).
916
+ * png_check_sig(sig, n) := (png_sig_cmp(sig, 0, n) == 0).
918
917
  */
919
- #define png_check_sig(sig, n) !png_sig_cmp((sig), 0, (n))
918
+ #define png_check_sig(sig, n) (png_sig_cmp((sig), 0, (n)) == 0) /* DEPRECATED */
920
919
 
921
920
  /* Allocate and initialize png_ptr struct for reading, and any other memory. */
922
921
  PNG_EXPORTA(4, png_structp, png_create_read_struct,
@@ -1730,12 +1729,9 @@ PNG_EXPORT(97, void, png_free, (png_const_structrp png_ptr, png_voidp ptr));
1730
1729
  PNG_EXPORT(98, void, png_free_data, (png_const_structrp png_ptr,
1731
1730
  png_inforp info_ptr, png_uint_32 free_me, int num));
1732
1731
 
1733
- /* Reassign responsibility for freeing existing data, whether allocated
1732
+ /* Reassign the responsibility for freeing existing data, whether allocated
1734
1733
  * by libpng or by the application; this works on the png_info structure passed
1735
- * in, it does not change the state for other png_info structures.
1736
- *
1737
- * It is unlikely that this function works correctly as of 1.6.0 and using it
1738
- * may result either in memory leaks or double free of allocated data.
1734
+ * in, without changing the state for other png_info structures.
1739
1735
  */
1740
1736
  PNG_EXPORT(99, void, png_data_freer, (png_const_structrp png_ptr,
1741
1737
  png_inforp info_ptr, int freer, png_uint_32 mask));
@@ -3207,11 +3203,18 @@ PNG_EXPORT(245, int, png_image_write_to_memory, (png_imagep image, void *memory,
3207
3203
  #ifdef PNG_MIPS_MSA_API_SUPPORTED
3208
3204
  # define PNG_MIPS_MSA 6 /* HARDWARE: MIPS Msa SIMD instructions supported */
3209
3205
  #endif
3210
- #define PNG_IGNORE_ADLER32 8
3206
+ #ifdef PNG_DISABLE_ADLER32_CHECK_SUPPORTED
3207
+ # define PNG_IGNORE_ADLER32 8 /* SOFTWARE: disable Adler32 check on IDAT */
3208
+ #endif
3211
3209
  #ifdef PNG_POWERPC_VSX_API_SUPPORTED
3212
- # define PNG_POWERPC_VSX 10 /* HARDWARE: PowerPC VSX SIMD instructions supported */
3210
+ # define PNG_POWERPC_VSX 10 /* HARDWARE: PowerPC VSX SIMD instructions
3211
+ * supported */
3213
3212
  #endif
3214
- #define PNG_OPTION_NEXT 12 /* Next option - numbers must be even */
3213
+ #ifdef PNG_MIPS_MMI_API_SUPPORTED
3214
+ # define PNG_MIPS_MMI 12 /* HARDWARE: MIPS MMI SIMD instructions supported */
3215
+ #endif
3216
+
3217
+ #define PNG_OPTION_NEXT 14 /* Next option - numbers must be even */
3215
3218
 
3216
3219
  /* Return values: NOTE: there are four values and 'off' is *not* zero */
3217
3220
  #define PNG_OPTION_UNSET 0 /* Unset - defaults to off */
@@ -1,9 +1,9 @@
1
1
 
2
2
  /* pngconf.h - machine-configurable file for libpng
3
3
  *
4
- * libpng version 1.6.40
4
+ * libpng version 1.6.43
5
5
  *
6
- * Copyright (c) 2018-2022 Cosmin Truta
6
+ * Copyright (c) 2018-2024 Cosmin Truta
7
7
  * Copyright (c) 1998-2002,2004,2006-2016,2018 Glenn Randers-Pehrson
8
8
  * Copyright (c) 1996-1997 Andreas Dilger
9
9
  * Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc.
@@ -1,8 +1,8 @@
1
1
  /* pnglibconf.h - library build configuration */
2
2
 
3
- /* libpng version 1.6.40 */
3
+ /* libpng version 1.6.43 */
4
4
 
5
- /* Copyright (c) 2018-2023 Cosmin Truta */
5
+ /* Copyright (c) 2018-2024 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. */
@@ -27,6 +27,7 @@
27
27
  #define PNG_COLORSPACE_SUPPORTED
28
28
  #define PNG_CONSOLE_IO_SUPPORTED
29
29
  #define PNG_CONVERT_tIME_SUPPORTED
30
+ /*#undef PNG_DISABLE_ADLER32_CHECK_SUPPORTED*/
30
31
  #define PNG_EASY_ACCESS_SUPPORTED
31
32
  /*#undef PNG_ERROR_NUMBERS_SUPPORTED*/
32
33
  #define PNG_ERROR_TEXT_SUPPORTED
@@ -41,6 +42,10 @@
41
42
  #define PNG_INCH_CONVERSIONS_SUPPORTED
42
43
  #define PNG_INFO_IMAGE_SUPPORTED
43
44
  #define PNG_IO_STATE_SUPPORTED
45
+ /*#undef PNG_MIPS_MMI_API_SUPPORTED*/
46
+ /*#undef PNG_MIPS_MMI_CHECK_SUPPORTED*/
47
+ /*#undef PNG_MIPS_MSA_API_SUPPORTED*/
48
+ /*#undef PNG_MIPS_MSA_CHECK_SUPPORTED*/
44
49
  #define PNG_MNG_FEATURES_SUPPORTED
45
50
  #define PNG_POINTER_INDEXING_SUPPORTED
46
51
  /*#undef PNG_POWERPC_VSX_API_SUPPORTED*/
@@ -209,7 +214,7 @@
209
214
  #define PNG_USER_HEIGHT_MAX 1000000
210
215
  #define PNG_USER_WIDTH_MAX 1000000
211
216
  #define PNG_ZBUF_SIZE 8192
212
- #define PNG_ZLIB_VERNUM 0x130f
217
+ #define PNG_ZLIB_VERNUM 0x131f
213
218
  #define PNG_Z_DEFAULT_COMPRESSION (-1)
214
219
  #define PNG_Z_DEFAULT_NOFILTER_STRATEGY 0
215
220
  #define PNG_Z_DEFAULT_STRATEGY 1
@@ -1,7 +1,7 @@
1
1
  /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
2
  /* vim: set sw=4 sts=4 expandtab: */
3
3
  /*
4
- rsvg-cairo.h: SAX-based renderer for SVG files using cairo
4
+ rsvg-cairo.h: SAX-based renderer for SVG files using Cairo
5
5
 
6
6
  Copyright (C) 2005 Red Hat, Inc.
7
7
 
@@ -120,12 +120,11 @@
120
120
  (LIBRSVG_MAJOR_VERSION == (major) && LIBRSVG_MINOR_VERSION > (minor)) || \
121
121
  (LIBRSVG_MAJOR_VERSION == (major) && LIBRSVG_MINOR_VERSION == (minor) && LIBRSVG_MICRO_VERSION >= (micro)))
122
122
 
123
- #ifndef __GI_SCANNER__
124
- #define LIBRSVG_HAVE_SVGZ (TRUE)
125
- #define LIBRSVG_HAVE_CSS (TRUE)
123
+ #define LIBRSVG_HAVE_SVGZ (TRUE)
124
+ #define LIBRSVG_HAVE_CSS (TRUE)
125
+ #define LIBRSVG_HAVE_PIXBUF (0)
126
126
 
127
127
  #define LIBRSVG_CHECK_FEATURE(FEATURE) (defined(LIBRSVG_HAVE_##FEATURE) && LIBRSVG_HAVE_##FEATURE)
128
- #endif
129
128
 
130
129
  #ifndef __GTK_DOC_IGNORE__
131
130