@img/sharp-libvips-dev-wasm32 1.3.3 → 1.3.4-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 (60) hide show
  1. package/include/aom/aom_ext_ratectrl.h +2 -2
  2. package/include/aom/aom_image.h +49 -7
  3. package/include/aom/aomcx.h +16 -3
  4. package/include/expat.h +7 -1
  5. package/include/expat_config.h +3 -3
  6. package/include/expat_external.h +12 -0
  7. package/include/glib-2.0/gio/giotypes.h +0 -1
  8. package/include/glib-2.0/gobject/gtype.h +1 -1
  9. package/include/libheif/heif_entity_groups.h +162 -1
  10. package/include/libheif/heif_image.h +9 -0
  11. package/include/libheif/heif_items.h +68 -0
  12. package/include/libheif/heif_properties.h +2 -0
  13. package/include/libheif/heif_regions.h +12 -0
  14. package/include/libheif/heif_version.h +2 -2
  15. package/include/vips/version.h +4 -4
  16. package/lib/glib-2.0/include/glibconfig.h +2 -2
  17. package/lib/libaom.a +0 -0
  18. package/lib/libcgif.a +0 -0
  19. package/lib/libexif.a +0 -0
  20. package/lib/libexpat.a +0 -0
  21. package/lib/libexpat.la +2 -2
  22. package/lib/libffi.a +0 -0
  23. package/lib/libgio-2.0.a +0 -0
  24. package/lib/libglib-2.0.a +0 -0
  25. package/lib/libgmodule-2.0.a +0 -0
  26. package/lib/libgobject-2.0.a +0 -0
  27. package/lib/libgthread-2.0.a +0 -0
  28. package/lib/libheif.a +0 -0
  29. package/lib/libhwy.a +0 -0
  30. package/lib/libimagequant.a +0 -0
  31. package/lib/libjpeg.a +0 -0
  32. package/lib/liblcms2.a +0 -0
  33. package/lib/libpng.a +0 -0
  34. package/lib/libpng16.a +0 -0
  35. package/lib/libresvg.a +0 -0
  36. package/lib/libsharpyuv.a +0 -0
  37. package/lib/libtiff.a +0 -0
  38. package/lib/libuhdr.a +0 -0
  39. package/lib/libvips-cpp.a +0 -0
  40. package/lib/libvips.a +0 -0
  41. package/lib/libwebp.a +0 -0
  42. package/lib/libwebpdecoder.a +0 -0
  43. package/lib/libwebpdemux.a +0 -0
  44. package/lib/libwebpmux.a +0 -0
  45. package/lib/libz.a +0 -0
  46. package/lib/pkgconfig/aom.pc +2 -2
  47. package/lib/pkgconfig/cgif.pc +1 -1
  48. package/lib/pkgconfig/expat.pc +1 -1
  49. package/lib/pkgconfig/gio-2.0.pc +1 -1
  50. package/lib/pkgconfig/glib-2.0.pc +1 -1
  51. package/lib/pkgconfig/gmodule-2.0.pc +1 -1
  52. package/lib/pkgconfig/gmodule-export-2.0.pc +1 -1
  53. package/lib/pkgconfig/gmodule-no-export-2.0.pc +1 -1
  54. package/lib/pkgconfig/gobject-2.0.pc +1 -1
  55. package/lib/pkgconfig/gthread-2.0.pc +1 -1
  56. package/lib/pkgconfig/libheif.pc +1 -1
  57. package/lib/pkgconfig/vips-cpp.pc +1 -1
  58. package/lib/pkgconfig/vips.pc +1 -1
  59. package/package.json +1 -1
  60. package/versions.json +7 -7
@@ -145,7 +145,7 @@ typedef void *aom_rc_model_t;
145
145
  #define AOM_DEFAULT_RDMULT -1
146
146
 
147
147
  /*!\brief Superblock quantization parameters
148
- * Store the superblock quantiztaion parameters
148
+ * Store the superblock quantization parameters
149
149
  */
150
150
  typedef struct aom_sb_parameters {
151
151
  int q_index; /**< Quantizer step index [0..255]*/
@@ -241,7 +241,7 @@ typedef struct aom_rc_frame_stats {
241
241
  /*!
242
242
  * Weight assigned to this frame (or total weight for the collection of
243
243
  * frames) currently based on intra factor and brightness factor. This is used
244
- * to distribute bits betweeen easier and harder frames.
244
+ * to distribute bits between easier and harder frames.
245
245
  */
246
246
  double weight;
247
247
  /*!
@@ -209,13 +209,55 @@ typedef struct aom_metadata {
209
209
 
210
210
  /**\brief Image Descriptor */
211
211
  typedef struct aom_image {
212
- aom_img_fmt_t fmt; /**< Image Format */
213
- aom_color_primaries_t cp; /**< CICP Color Primaries */
214
- aom_transfer_characteristics_t tc; /**< CICP Transfer Characteristics */
215
- aom_matrix_coefficients_t mc; /**< CICP Matrix Coefficients */
216
- int monochrome; /**< Whether image is monochrome */
217
- aom_chroma_sample_position_t csp; /**< chroma sample position */
218
- aom_color_range_t range; /**< Color Range */
212
+ aom_img_fmt_t fmt; /**< Image Format */
213
+ /*!\brief CICP Color Primaries
214
+ *
215
+ * \if av1_encoder
216
+ * \attention Only set by the decoder. To control the value used by the
217
+ * encoder, use the \ref AV1E_SET_COLOR_PRIMARIES codec control.
218
+ * \endif
219
+ */
220
+ aom_color_primaries_t cp;
221
+ /*!\brief CICP Transfer Characteristics
222
+ *
223
+ * \if av1_encoder
224
+ * \attention Only set by the decoder. To control the value used by the
225
+ * encoder, use the \ref AV1E_SET_TRANSFER_CHARACTERISTICS codec control.
226
+ * \endif
227
+ */
228
+ aom_transfer_characteristics_t tc;
229
+ /*!\brief CICP Matrix Coefficients
230
+ *
231
+ * \if av1_encoder
232
+ * \attention Only set by the decoder. To control the value used by the
233
+ * encoder, use the \ref AV1E_SET_MATRIX_COEFFICIENTS codec control.
234
+ * \endif
235
+ */
236
+ aom_matrix_coefficients_t mc;
237
+ /*!\brief Whether image is monochrome
238
+ *
239
+ * \if av1_encoder
240
+ * \attention Only set by the decoder. To control the encoder behavior, set
241
+ * aom_codec_enc_cfg_t::monochrome.
242
+ * \endif
243
+ */
244
+ int monochrome;
245
+ /*!\brief Chroma sample position
246
+ *
247
+ * \if av1_encoder
248
+ * \attention Only set by the decoder. To control the value used by the
249
+ * encoder, use the \ref AV1E_SET_CHROMA_SAMPLE_POSITION codec control.
250
+ * \endif
251
+ */
252
+ aom_chroma_sample_position_t csp;
253
+ /*!\brief Color Range
254
+ *
255
+ * \if av1_encoder
256
+ * \attention Only set by the decoder. To control the value used by the
257
+ * encoder, use the \ref AV1E_SET_COLOR_RANGE codec control.
258
+ * \endif
259
+ */
260
+ aom_color_range_t range;
219
261
 
220
262
  /* Image storage dimensions */
221
263
  unsigned int w; /**< Stored image width */
@@ -1637,15 +1637,25 @@ enum aome_enc_control_id {
1637
1637
  *
1638
1638
  * \attention Experimental. Not part of the stable API.
1639
1639
  */
1640
- AV1E_GET_GOP_INFO,
1640
+ AV1E_GET_GOP_INFO = 174,
1641
1641
 
1642
- /*!\brief Codec control function to validate HBD input.
1642
+ /*!\brief Codec control function to validate HBD input, int parameter.
1643
1643
  *
1644
1644
  * AV1 allows the encoder to validate the high bitdepth (HBD) input and
1645
1645
  * ensure that every pixel is within the valid range. To disable/enable,
1646
1646
  * set this parameter to 0/1. The default value is set to be 1.
1647
1647
  */
1648
- AOME_SET_VALIDATE_HBD_INPUT,
1648
+ AOME_SET_VALIDATE_HBD_INPUT = 175,
1649
+
1650
+ /*!\brief Codec control function to toggle loopfilter mode_ref_delta_enabled,
1651
+ * int parameter.
1652
+ *
1653
+ * - 0 = disable
1654
+ * - 1 = enable (default)
1655
+ *
1656
+ * \note This is only used in loopfilter control unit test.
1657
+ */
1658
+ AV1E_SET_MODE_REF_DELTA_ENABLED = 176,
1649
1659
 
1650
1660
  // Any new encoder control IDs should be added above.
1651
1661
  // Maximum allowed encoder control ID is 229.
@@ -2433,6 +2443,9 @@ AOM_CTRL_USE_TYPE(AV1E_SET_EXTERNAL_RATE_CONTROL, aom_rc_funcs_t *)
2433
2443
  AOM_CTRL_USE_TYPE(AV1E_GET_GOP_INFO, aom_gop_info_t *)
2434
2444
  #define AOM_CTRL_AV1E_GET_GOP_INFO
2435
2445
 
2446
+ AOM_CTRL_USE_TYPE(AV1E_SET_MODE_REF_DELTA_ENABLED, int)
2447
+ #define AOM_CTRL_AV1E_SET_MODE_REF_DELTA_ENABLED
2448
+
2436
2449
  /*!\endcond */
2437
2450
  /*! @} - end defgroup aom_encoder */
2438
2451
  #ifdef __cplusplus
package/include/expat.h CHANGED
@@ -20,6 +20,7 @@
20
20
  Copyright (c) 2023 Sony Corporation / Snild Dolkow <snild@sony.com>
21
21
  Copyright (c) 2024 Taichi Haradaguchi <20001722@ymail.ne.jp>
22
22
  Copyright (c) 2025 Matthew Fernandez <matthew.fernandez@gmail.com>
23
+ Copyright (c) 2026 Braian Plaku <braianplaku@gmail.com>
23
24
  Licensed under the MIT license:
24
25
 
25
26
  Permission is hereby granted, free of charge, to any person obtaining
@@ -921,7 +922,9 @@ XML_SetParamEntityParsing(XML_Parser parser,
921
922
  Returns 1 if successful, 0 when called after parsing has started.
922
923
  Note: If parser == NULL, the function will do nothing and return 0.
923
924
  DEPRECATED since Expat 2.8.0.
925
+ Please use XML_SetHashSalt16Bytes instead.
924
926
  */
927
+ XML_ATTR_DEPRECATED("please use XML_SetHashSalt16Bytes instead")
925
928
  XMLPARSEAPI(int)
926
929
  XML_SetHashSalt(XML_Parser parser, unsigned long hash_salt);
927
930
 
@@ -1040,8 +1043,11 @@ enum XML_FeatureEnum {
1040
1043
  XML_FEATURE_MIN_SIZE,
1041
1044
  XML_FEATURE_SIZEOF_XML_CHAR,
1042
1045
  XML_FEATURE_SIZEOF_XML_LCHAR,
1046
+ /* Added in Expat 2.0.0. */
1043
1047
  XML_FEATURE_NS,
1048
+ /* Added in Expat 2.0.1. */
1044
1049
  XML_FEATURE_LARGE_SIZE,
1050
+ /* Added in Expat 2.1.0. */
1045
1051
  XML_FEATURE_ATTR_INFO,
1046
1052
  /* Added in Expat 2.4.0. */
1047
1053
  XML_FEATURE_BILLION_LAUGHS_ATTACK_PROTECTION_MAXIMUM_AMPLIFICATION_DEFAULT,
@@ -1096,7 +1102,7 @@ XML_SetReparseDeferralEnabled(XML_Parser parser, XML_Bool enabled);
1096
1102
  */
1097
1103
  # define XML_MAJOR_VERSION 2
1098
1104
  # define XML_MINOR_VERSION 8
1099
- # define XML_MICRO_VERSION 3
1105
+ # define XML_MICRO_VERSION 5
1100
1106
 
1101
1107
  # ifdef __cplusplus
1102
1108
  }
@@ -83,7 +83,7 @@
83
83
  #define PACKAGE_NAME "expat"
84
84
 
85
85
  /* Define to the full name and version of this package. */
86
- #define PACKAGE_STRING "expat 2.8.3"
86
+ #define PACKAGE_STRING "expat 2.8.5"
87
87
 
88
88
  /* Define to the one symbol short name of this package. */
89
89
  #define PACKAGE_TARNAME "expat"
@@ -92,7 +92,7 @@
92
92
  #define PACKAGE_URL ""
93
93
 
94
94
  /* Define to the version of this package. */
95
- #define PACKAGE_VERSION "2.8.3"
95
+ #define PACKAGE_VERSION "2.8.5"
96
96
 
97
97
  /* Define to 1 if all of the C89 standard headers exist (not just the ones
98
98
  required in a freestanding environment). This macro is provided for
@@ -100,7 +100,7 @@
100
100
  #define STDC_HEADERS 1
101
101
 
102
102
  /* Version number of package */
103
- #define VERSION "2.8.3"
103
+ #define VERSION "2.8.5"
104
104
 
105
105
  /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
106
106
  significant byte first (like Motorola and SPARC, unlike Intel). */
@@ -16,6 +16,7 @@
16
16
  Copyright (c) 2017 Rhodri James <rhodri@wildebeest.org.uk>
17
17
  Copyright (c) 2018 Yury Gribov <tetra2005@gmail.com>
18
18
  Copyright (c) 2026 Matthew Fernandez <matthew.fernandez@gmail.com>
19
+ Copyright (c) 2026 Braian Plaku <braianplaku@gmail.com>
19
20
  Licensed under the MIT license:
20
21
 
21
22
  Permission is hereby granted, free of charge, to any person obtaining
@@ -125,6 +126,17 @@
125
126
  # define XML_ATTR_ALLOC_SIZE(x)
126
127
  # endif
127
128
 
129
+ /* Marks a function that Expat still provides but that callers should move off
130
+ of. */
131
+ # if defined(__clang__) || defined(__GNUC__)
132
+ # define XML_ATTR_DEPRECATED(message) \
133
+ __attribute__((__deprecated__(message)))
134
+ # elif defined(_MSC_VER)
135
+ # define XML_ATTR_DEPRECATED(message) __declspec(deprecated(message))
136
+ # else
137
+ # define XML_ATTR_DEPRECATED(message) // empty i.e. no deprecation
138
+ # endif
139
+
128
140
  # define XMLPARSEAPI(type) XMLIMPORT type XMLCALL
129
141
 
130
142
  # ifdef __cplusplus
@@ -50,7 +50,6 @@ typedef struct _GZlibDecompressor GZlibDecompressor;
50
50
 
51
51
  typedef struct _GSimpleActionGroup GSimpleActionGroup;
52
52
  typedef struct _GRemoteActionGroup GRemoteActionGroup;
53
- typedef struct _GDBusActionGroup GDBusActionGroup;
54
53
  typedef struct _GActionMap GActionMap;
55
54
  typedef struct _GActionGroup GActionGroup;
56
55
  typedef struct _GPropertyAction GPropertyAction;
@@ -2302,7 +2302,7 @@ static void type_name##_init_adapter (TypeName *self, \
2302
2302
  type_name##_init (self); \
2303
2303
  } \
2304
2304
  static GType type_name##_get_type_once (void); \
2305
- static gpointer type_name##_parent_class = NULL; \
2305
+ G_GNUC_UNUSED static gpointer type_name##_parent_class = NULL; \
2306
2306
  static gint TypeName##_private_offset; \
2307
2307
  \
2308
2308
  _G_DEFINE_TYPE_EXTENDED_CLASS_INIT(TypeName, type_name) \
@@ -27,6 +27,165 @@ extern "C" {
27
27
 
28
28
  #include "libheif/heif_library.h"
29
29
 
30
+ // Entity group type FourCCs.
31
+ // For the complete list of registered entity group types, see https://mp4ra.org/registered-types/entity-groups
32
+
33
+ /**
34
+ * Alternatives.
35
+ *
36
+ * Alternative versions of the same content, listed in order of preference.
37
+ * Only one of them should be displayed.
38
+ *
39
+ * See ISO/IEC 14496-12:2026 Section 8.15.3.1.
40
+ */
41
+ #define heif_entity_group_altr heif_fourcc('a','l','t','r')
42
+
43
+ /**
44
+ * Multi-resolution pyramid.
45
+ *
46
+ * The same image at different resolutions, listed from lowest to highest resolution.
47
+ *
48
+ * See ISO/IEC 23008-12:2025/Amd. 1:2025 Section 6.8.12.
49
+ */
50
+ #define heif_entity_group_pymd heif_fourcc('p','y','m','d')
51
+
52
+ /**
53
+ * Timeline equivalence.
54
+ *
55
+ * Relates untimed image items to an equivalent position in the timeline of a track.
56
+ *
57
+ * See ISO/IEC 23008-12:2025 Section 6.8.1.
58
+ */
59
+ #define heif_entity_group_eqiv heif_fourcc('e','q','i','v')
60
+
61
+ /**
62
+ * Image burst.
63
+ *
64
+ * A series of burst-captured images in temporally increasing order.
65
+ * The images can be stored as image items or as a single image sequence track (the group's only entity).
66
+ *
67
+ * See ISO/IEC 23008-12:2025 Section 6.8.2.
68
+ */
69
+ #define heif_entity_group_brst heif_fourcc('b','r','s','t')
70
+
71
+ /**
72
+ * Time-synchronized capture.
73
+ *
74
+ * Images captured simultaneously, stored either as image items or as image sequence tracks, but not a mixture of both.
75
+ *
76
+ * See ISO/IEC 23008-12:2025 Section 6.8.3.
77
+ */
78
+ #define heif_entity_group_tsyn heif_fourcc('t','s','y','n')
79
+
80
+ /**
81
+ * Stereo pair.
82
+ *
83
+ * A stereoscopic pair of two image items: first the left view, then the right view.
84
+ *
85
+ * See ISO/IEC 23008-12:2025 Section 6.8.5.
86
+ */
87
+ #define heif_entity_group_ster heif_fourcc('s','t','e','r')
88
+
89
+ /**
90
+ * Stereo pair with monoscopic fallback.
91
+ *
92
+ * Three image items: left view, right view, and a monoscopic fallback,
93
+ * which may be the same as the left or right view.
94
+ *
95
+ * See ISO/IEC 23008-12:2025/Amd. 1:2025 Section 6.8.11.
96
+ */
97
+ #define heif_entity_group_stem heif_fourcc('s','t','e','m')
98
+
99
+ /**
100
+ * Auto-exposure bracketing.
101
+ *
102
+ * Images of the same scene taken with varying exposure settings.
103
+ *
104
+ * See ISO/IEC 23008-12:2025 Section 6.8.6.2.
105
+ */
106
+ #define heif_entity_group_aebr heif_fourcc('a','e','b','r')
107
+
108
+ /**
109
+ * White balance bracketing.
110
+ *
111
+ * Images of the same scene taken with varying white balance settings.
112
+ *
113
+ * See ISO/IEC 23008-12:2025 Section 6.8.6.3.
114
+ */
115
+ #define heif_entity_group_wbbr heif_fourcc('w','b','b','r')
116
+
117
+ /**
118
+ * Focus bracketing.
119
+ *
120
+ * Images of the same scene taken with varying focus settings.
121
+ *
122
+ * See ISO/IEC 23008-12:2025 Section 6.8.6.4.
123
+ */
124
+ #define heif_entity_group_fobr heif_fourcc('f','o','b','r')
125
+
126
+ /**
127
+ * Flash exposure bracketing.
128
+ *
129
+ * Images of the same scene taken with varying flash exposure settings.
130
+ *
131
+ * See ISO/IEC 23008-12:2025 Section 6.8.6.5.
132
+ */
133
+ #define heif_entity_group_afbr heif_fourcc('a','f','b','r')
134
+
135
+ /**
136
+ * Depth of field bracketing.
137
+ *
138
+ * Images of the same scene taken with varying aperture settings.
139
+ *
140
+ * See ISO/IEC 23008-12:2025 Section 6.8.6.6.
141
+ */
142
+ #define heif_entity_group_dobr heif_fourcc('d','o','b','r')
143
+
144
+ /**
145
+ * Album collection.
146
+ *
147
+ * A user-defined album of images.
148
+ *
149
+ * See ISO/IEC 23008-12:2025 Section 6.8.7.1.
150
+ */
151
+ #define heif_entity_group_albc heif_fourcc('a','l','b','c')
152
+
153
+ /**
154
+ * Favorites collection.
155
+ *
156
+ * A user-defined collection of favorite images.
157
+ *
158
+ * See ISO/IEC 23008-12:2025 Section 6.8.7.2.
159
+ */
160
+ #define heif_entity_group_favc heif_fourcc('f','a','v','c')
161
+
162
+ /**
163
+ * Panorama.
164
+ *
165
+ * Images captured to be composed into a panorama, listed in panorama order.
166
+ *
167
+ * See ISO/IEC 23008-12:2025 Section 6.8.8.
168
+ */
169
+ #define heif_entity_group_pano heif_fourcc('p','a','n','o')
170
+
171
+ /**
172
+ * Slideshow.
173
+ *
174
+ * Images intended to form a slideshow, listed in display order.
175
+ *
176
+ * See ISO/IEC 23008-12:2025 Section 6.8.9.
177
+ */
178
+ #define heif_entity_group_slid heif_fourcc('s','l','i','d')
179
+
180
+ /**
181
+ * Progressive rendering.
182
+ *
183
+ * The same image at different quality levels, listed from lowest to highest quality.
184
+ * These images should also be members of an 'altr' entity group.
185
+ *
186
+ * See ISO/IEC 23008-12:2025 Section 6.8.10.
187
+ */
188
+ #define heif_entity_group_prgr heif_fourcc('p','r','g','r')
30
189
 
31
190
  // ------------------------- entity groups ------------------------
32
191
 
@@ -35,11 +194,13 @@ typedef uint32_t heif_entity_group_id;
35
194
  typedef struct heif_entity_group
36
195
  {
37
196
  heif_entity_group_id entity_group_id;
38
- uint32_t entity_group_type; // this is a FourCC constant
197
+ // one of the heif_entity_group_* FourCC constants defined above
198
+ uint32_t entity_group_type;
39
199
  heif_item_id* entities;
40
200
  uint32_t num_entities;
41
201
  } heif_entity_group;
42
202
 
203
+ // `type_filter` is the wanted FourCC of the entity group type.
43
204
  // Use 0 for `type_filter` or `item_filter` to disable the filter.
44
205
  // Returns an array of heif_entity_group structs with *out_num_groups entries.
45
206
  LIBHEIF_API
@@ -298,6 +298,10 @@ heif_error heif_image_scale_image(const heif_image* input,
298
298
 
299
299
  // Extends the image size to match the given size by extending the right and bottom borders.
300
300
  // The border areas are filled with zero.
301
+ // The target 'width' and 'height' must each be at least the image's current size; this
302
+ // function only grows the image and cannot shrink it. If a smaller size is requested,
303
+ // 'heif_error_Usage_error' / 'heif_suberror_Invalid_parameter_value' is returned and the
304
+ // image is left unchanged.
301
305
  LIBHEIF_API
302
306
  heif_error heif_image_extend_to_size_fill_with_zero(heif_image* image,
303
307
  uint32_t width, uint32_t height);
@@ -367,6 +371,11 @@ heif_error heif_image_create(int width, int height,
367
371
  * <p>For backward compatibility, one can also specify 24bits for RGB and 32bits for RGBA,
368
372
  * instead of the preferred 8 bits. However, this use is deprecated.
369
373
  *
374
+ * <p>An image with an interleaved chroma format carries its alpha inside the interleaved
375
+ * plane. Adding a separate {@code heif_channel_Alpha} plane to such an image is rejected
376
+ * with an error. Use one of the interleaved formats with alpha
377
+ * (e.g. {@code heif_chroma_interleaved_RGBA}) instead.
378
+ *
370
379
  * @param image the parent image to add the channel plane to
371
380
  * @param channel the channel of the plane to add
372
381
  * @param width the width of the plane
@@ -73,6 +73,12 @@ uint32_t heif_item_get_item_type(const heif_context* ctx, heif_item_id item_id);
73
73
 
74
74
  #define heif_item_type_mime heif_fourcc('m','i','m','e')
75
75
  #define heif_item_type_uri heif_fourcc('u','r','i',' ')
76
+ #define heif_item_type_exif heif_fourcc('E','x','i','f')
77
+ #define heif_item_type_grid heif_fourcc('g','r','i','d')
78
+ #define heif_item_type_hvc1 heif_fourcc('h','v','c','1')
79
+ #define heif_item_type_unci heif_fourcc('u','n','c','i')
80
+ #define heif_item_type_av01 heif_fourcc('a','v','0','1')
81
+ #define heif_item_type_avc1 heif_fourcc('a','v','c','1')
76
82
 
77
83
  LIBHEIF_API
78
84
  int heif_item_is_item_hidden(const heif_context* ctx, heif_item_id item_id);
@@ -227,12 +233,50 @@ heif_error heif_context_add_item_references(heif_context* ctx,
227
233
 
228
234
  // ------------------------- adding new items -------------------------
229
235
 
236
+ /*
237
+ * All functions in this section add a new item to the context and return its ID in
238
+ * 'out_item_id'. The item ID is freshly allocated and does not collide with any item that
239
+ * already exists in the context, including items read from an input file.
240
+ *
241
+ * 'data' is copied into the context, the caller may release it afterwards. 'size' is the
242
+ * number of bytes in 'data'. A NULL 'data' is only allowed together with size 0.
243
+ * 'out_item_id' may be NULL, in which case the item is added but its ID is not reported.
244
+ *
245
+ * The new item is marked as hidden. Use heif_context_add_item_reference() to link it to an
246
+ * image (e.g. with a 'cdsc' reference for metadata that describes the image).
247
+ *
248
+ * Note that a file must contain at least one image or image sequence to be written;
249
+ * a context holding only items added with these functions cannot be written.
250
+ */
251
+
252
+ /**
253
+ * Add an item with an arbitrary four-character item type (e.g. "Exif").
254
+ *
255
+ * @param ctx the file context
256
+ * @param item_type four-character item type
257
+ * @param data the item payload
258
+ * @param size number of bytes in 'data'
259
+ * @param out_item_id receives the ID of the new item (may be NULL)
260
+ */
230
261
  LIBHEIF_API
231
262
  heif_error heif_context_add_item(heif_context* ctx,
232
263
  const char* item_type,
233
264
  const void* data, int size,
234
265
  heif_item_id* out_item_id);
235
266
 
267
+ /**
268
+ * Add a 'mime' item, optionally compressing the payload.
269
+ *
270
+ * @param ctx the file context
271
+ * @param content_type MIME content type of the payload (e.g. "application/rdf+xml")
272
+ * @param content_encoding compression to apply to the payload before storing it.
273
+ * Use heif_metadata_compression_method_supported() to check which methods this
274
+ * build of libheif can compress. An unsupported method returns an error and no
275
+ * item is added.
276
+ * @param data the (uncompressed) item payload
277
+ * @param size number of bytes in 'data'
278
+ * @param out_item_id receives the ID of the new item (may be NULL)
279
+ */
236
280
  LIBHEIF_API
237
281
  heif_error heif_context_add_mime_item(heif_context* ctx,
238
282
  const char* content_type,
@@ -240,6 +284,21 @@ heif_error heif_context_add_mime_item(heif_context* ctx,
240
284
  const void* data, int size,
241
285
  heif_item_id* out_item_id);
242
286
 
287
+ /**
288
+ * Add a 'mime' item whose payload has already been compressed by the caller.
289
+ *
290
+ * @param ctx the file context
291
+ * @param content_type MIME content type of the (uncompressed) payload
292
+ * @param content_encoding the HTTP content-coding name that was applied to 'data', stored
293
+ * verbatim as the item's content_encoding. Use "" for uncompressed data.
294
+ * libheif itself can decode "deflate", "compress_zlib" and "br" (when built with
295
+ * zlib / Brotli support) and treats "identity" as uncompressed; items with any other
296
+ * content_encoding are kept, but their data can only be retrieved in compressed form
297
+ * with heif_item_get_item_data().
298
+ * @param data the compressed item payload
299
+ * @param size number of bytes in 'data'
300
+ * @param out_item_id receives the ID of the new item (may be NULL)
301
+ */
243
302
  LIBHEIF_API
244
303
  heif_error heif_context_add_precompressed_mime_item(heif_context* ctx,
245
304
  const char* content_type,
@@ -247,6 +306,15 @@ heif_error heif_context_add_precompressed_mime_item(heif_context* ctx,
247
306
  const void* data, int size,
248
307
  heif_item_id* out_item_id);
249
308
 
309
+ /**
310
+ * Add a 'uri ' item.
311
+ *
312
+ * @param ctx the file context
313
+ * @param item_uri_type the URI that identifies the type of the item payload
314
+ * @param data the item payload
315
+ * @param size number of bytes in 'data'
316
+ * @param out_item_id receives the ID of the new item (may be NULL)
317
+ */
250
318
  LIBHEIF_API
251
319
  heif_error heif_context_add_uri_item(heif_context* ctx,
252
320
  const char* item_uri_type,
@@ -131,6 +131,8 @@ int heif_item_get_property_transform_rotation_ccw(const heif_context* context,
131
131
  // Because of the way this data is stored, you have to pass the image size at the moment of the crop operation
132
132
  // to compute the cropped border sizes.
133
133
  // If 'propertyId==0', it returns the first clap property found.
134
+ // If the clap cannot be applied to the given image size (zero size or a size beyond the
135
+ // supported coordinate range), all four borders are set to 0.
134
136
  LIBHEIF_API
135
137
  void heif_item_get_property_transform_crop_borders(const heif_context* context,
136
138
  heif_item_id itemId,
@@ -722,6 +722,12 @@ heif_error heif_region_item_add_region_ellipse(heif_region_item* region_item,
722
722
  * The points are provided as pairs of X,Y coordinates, in the order X<sub>1</sub>,
723
723
  * Y<sub>1</sub>, X<sub>2</sub>, Y<sub>2</sub>, ..., X<sub>n</sub>, Y<sub>n</sub>.
724
724
  *
725
+ * @c pts_array must point to at least `2 * nPoints` values. The library cannot
726
+ * verify the size of the array, so passing a shorter array reads beyond its end.
727
+ * @c nPoints must not be negative and @c pts_array must not be `NULL` when
728
+ * @c nPoints is greater than zero. Otherwise the function fails without
729
+ * modifying the region item.
730
+ *
725
731
  * @param region_item the region item that holds this polygon region
726
732
  * @param pts_array the array of points in X,Y order (see above)
727
733
  * @param nPoints the number of points
@@ -745,6 +751,12 @@ heif_error heif_region_item_add_region_polygon(heif_region_item* region_item,
745
751
  * The points are provided as pairs of X,Y coordinates, in the order X<sub>1</sub>,
746
752
  * Y<sub>1</sub>, X<sub>2</sub>, Y<sub>2</sub>, ..., X<sub>n</sub>, Y<sub>n</sub>.
747
753
  *
754
+ * @c pts_array must point to at least `2 * nPoints` values. The library cannot
755
+ * verify the size of the array, so passing a shorter array reads beyond its end.
756
+ * @c nPoints must not be negative and @c pts_array must not be `NULL` when
757
+ * @c nPoints is greater than zero. Otherwise the function fails without
758
+ * modifying the region item.
759
+ *
748
760
  * @param region_item the region item that holds this polyline region
749
761
  * @param pts_array the array of points in X,Y order (see above)
750
762
  * @param nPoints the number of points
@@ -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) | (23<<16) | (2<<8) | 0)
31
+ #define LIBHEIF_NUMERIC_VERSION ((1<<24) | (23<<16) | (5<<8) | 0)
32
32
 
33
33
  /* Version string */
34
- #define LIBHEIF_VERSION "1.23.2"
34
+ #define LIBHEIF_VERSION "1.23.5"
35
35
 
36
36
  #define LIBHEIF_PLUGIN_DIRECTORY "/src/build/target/lib/libheif"
37
37
 
@@ -4,16 +4,16 @@
4
4
  #ifndef VIPS_VERSION_H
5
5
  #define VIPS_VERSION_H
6
6
 
7
- #define VIPS_VERSION "8.18.6"
8
- #define VIPS_VERSION_STRING "8.18.6"
7
+ #define VIPS_VERSION "8.18.7"
8
+ #define VIPS_VERSION_STRING "8.18.7"
9
9
  #define VIPS_MAJOR_VERSION (8)
10
10
  #define VIPS_MINOR_VERSION (18)
11
- #define VIPS_MICRO_VERSION (6)
11
+ #define VIPS_MICRO_VERSION (7)
12
12
 
13
13
  /* The ABI version, as used for library versioning.
14
14
  */
15
15
  #define VIPS_LIBRARY_CURRENT (62)
16
- #define VIPS_LIBRARY_REVISION (6)
16
+ #define VIPS_LIBRARY_REVISION (7)
17
17
  #define VIPS_LIBRARY_AGE (20)
18
18
 
19
19
  #define VIPS_CONFIG "enable debug: false\nenable deprecated: false\nenable modules: false\nenable C++ binding: true\nenable RAD load/save: true\nenable Analyze7 load: true\nenable PPM load/save: true\nenable GIF load: true\nFFTs with fftw: false\nSIMD support with libhwy: true\nICC profile support with lcms2: true\ndeflate compression with zlib: true\ntext rendering with pangocairo: false\nfont file support with fontconfig: false\nEXIF metadata support with libexif: true\nJPEG load/save with libjpeg: true\nUHDR load/save with libuhdr: true\nJXL load/save with libjxl: false (dynamic module: false)\nJPEG2000 load/save with OpenJPEG: false\nPNG load/save with libpng: true\nimage quantisation with imagequant: true\nTIFF load/save with libtiff-4: true\nimage pyramid save with libarchive: false\nHEIC/AVIF load/save with libheif: true (dynamic module: false)\nWebP load/save with libwebp: true\nPDF load with PDFium or Poppler: false (dynamic module: false)\nSVG load with librsvg or resvg: true (dynamic module: false)\nEXR load with OpenEXR: false\nWSI load with OpenSlide: false (dynamic module: false)\nMatlab load with Matio: false\nNIfTI load/save with libnifti: false\nFITS load/save with cfitsio: false\nGIF save with cgif: true\nRAW load with libraw: false\nMagick load/save with MagickCore: false (dynamic module: false)"
@@ -112,8 +112,8 @@ typedef unsigned int guintptr;
112
112
  #define G_GUINTPTR_FORMAT "u"
113
113
 
114
114
  #define GLIB_MAJOR_VERSION 2
115
- #define GLIB_MINOR_VERSION 89
116
- #define GLIB_MICRO_VERSION 4
115
+ #define GLIB_MINOR_VERSION 90
116
+ #define GLIB_MICRO_VERSION 0
117
117
 
118
118
  #define G_OS_UNIX
119
119
  #define G_PLATFORM_WASM
package/lib/libaom.a CHANGED
Binary file
package/lib/libcgif.a CHANGED
Binary file
package/lib/libexif.a CHANGED
Binary file
package/lib/libexpat.a CHANGED
Binary file
package/lib/libexpat.la CHANGED
@@ -1,5 +1,5 @@
1
1
  # libexpat.la - a libtool library file
2
- # Generated by libtool (GNU libtool) 2.5.4
2
+ # Generated by libtool (GNU libtool) 2.6.2
3
3
  #
4
4
  # Please DO NOT delete this file!
5
5
  # It is necessary for linking the library.
@@ -25,7 +25,7 @@ weak_library_names=''
25
25
  # Version information for libexpat.
26
26
  current=13
27
27
  age=12
28
- revision=3
28
+ revision=5
29
29
 
30
30
  # Is this an already installed library?
31
31
  installed=yes
package/lib/libffi.a CHANGED
Binary file
package/lib/libgio-2.0.a CHANGED
Binary file
package/lib/libglib-2.0.a CHANGED
Binary file
Binary file
Binary file
Binary file
package/lib/libheif.a CHANGED
Binary file
package/lib/libhwy.a CHANGED
Binary file
Binary file
package/lib/libjpeg.a CHANGED
Binary file
package/lib/liblcms2.a CHANGED
Binary file
package/lib/libpng.a CHANGED
Binary file
package/lib/libpng16.a CHANGED
Binary file
package/lib/libresvg.a CHANGED
Binary file
package/lib/libsharpyuv.a CHANGED
Binary file
package/lib/libtiff.a CHANGED
Binary file
package/lib/libuhdr.a CHANGED
Binary file
package/lib/libvips-cpp.a CHANGED
Binary file
package/lib/libvips.a CHANGED
Binary file
package/lib/libwebp.a CHANGED
Binary file
Binary file
Binary file
package/lib/libwebpmux.a CHANGED
Binary file
package/lib/libz.a CHANGED
Binary file
@@ -5,8 +5,8 @@ includedir=${prefix}/include
5
5
  libdir=${exec_prefix}/lib
6
6
 
7
7
  Name: aom
8
- Description: Alliance for Open Media AV1 codec library v3.14.1.
9
- Version: 3.14.1
8
+ Description: Alliance for Open Media AV1 codec library v3.15.1.
9
+ Version: 3.15.1
10
10
  Requires:
11
11
  Conflicts:
12
12
  Libs: -L${libdir} -laom
@@ -4,6 +4,6 @@ libdir=${prefix}/lib
4
4
 
5
5
  Name: cgif
6
6
  Description: A fast and lightweight GIF encoder
7
- Version: 0.5.3
7
+ Version: 0.5.4
8
8
  Libs: -L${libdir} -lcgif
9
9
  Cflags: -I${includedir}
@@ -4,7 +4,7 @@ libdir=${exec_prefix}/lib
4
4
  includedir=${prefix}/include
5
5
 
6
6
  Name: expat
7
- Version: 2.8.3
7
+ Version: 2.8.5
8
8
  Description: expat XML parser
9
9
  URL: https://libexpat.github.io/
10
10
  Libs: -L${libdir} -lexpat
@@ -18,7 +18,7 @@ gsettings=${bindir}/gsettings
18
18
 
19
19
  Name: GIO
20
20
  Description: glib I/O library
21
- Version: 2.89.4
21
+ Version: 2.90.0
22
22
  Requires: glib-2.0, gobject-2.0, gmodule-no-export-2.0, zlib
23
23
  Libs: -L${libdir} -lgio-2.0
24
24
  Cflags: -I${includedir}
@@ -11,6 +11,6 @@ glib_valgrind_suppressions=${datadir}/glib-2.0/valgrind/glib.supp
11
11
 
12
12
  Name: GLib
13
13
  Description: C Utility Library
14
- Version: 2.89.4
14
+ Version: 2.90.0
15
15
  Libs: -L${libdir} -lglib-2.0 -lm -pthread
16
16
  Cflags: -I${includedir}/glib-2.0 -pthread -I${libdir}/glib-2.0/include
@@ -6,7 +6,7 @@ gmodule_supported=true
6
6
 
7
7
  Name: GModule
8
8
  Description: Dynamic module loader for GLib
9
- Version: 2.89.4
9
+ Version: 2.90.0
10
10
  Requires: gmodule-no-export-2.0, glib-2.0
11
11
  Libs: -Wl,--export-dynamic
12
12
  Cflags: -I${includedir}
@@ -6,7 +6,7 @@ gmodule_supported=true
6
6
 
7
7
  Name: GModule
8
8
  Description: Dynamic module loader for GLib
9
- Version: 2.89.4
9
+ Version: 2.90.0
10
10
  Requires: gmodule-no-export-2.0, glib-2.0
11
11
  Libs: -Wl,--export-dynamic
12
12
  Cflags: -I${includedir}
@@ -6,7 +6,7 @@ gmodule_supported=true
6
6
 
7
7
  Name: GModule
8
8
  Description: Dynamic module loader for GLib
9
- Version: 2.89.4
9
+ Version: 2.90.0
10
10
  Requires: glib-2.0
11
11
  Libs: -L${libdir} -lgmodule-2.0 -pthread
12
12
  Cflags: -I${includedir} -pthread
@@ -4,7 +4,7 @@ libdir=${prefix}/lib
4
4
 
5
5
  Name: GObject
6
6
  Description: GLib Type, Object, Parameter and Signal Library
7
- Version: 2.89.4
7
+ Version: 2.90.0
8
8
  Requires: glib-2.0, libffi >= 3.0.0
9
9
  Libs: -L${libdir} -lgobject-2.0
10
10
  Cflags: -I${includedir}
@@ -4,7 +4,7 @@ libdir=${prefix}/lib
4
4
 
5
5
  Name: GThread
6
6
  Description: Thread support for GLib
7
- Version: 2.89.4
7
+ Version: 2.90.0
8
8
  Requires: glib-2.0
9
9
  Libs: -L${libdir} -lgthread-2.0 -pthread
10
10
  Cflags: -I${includedir} -pthread
@@ -6,7 +6,7 @@ includedir=${prefix}/include
6
6
  Name: libheif
7
7
  Description: HEIF image codec.
8
8
  URL: https://github.com/strukturag/libheif
9
- Version: 1.23.2
9
+ Version: 1.23.5
10
10
  Requires:
11
11
  Requires.private: aom libsharpyuv
12
12
  Libs: -L${libdir} -lheif
@@ -4,7 +4,7 @@ libdir=${prefix}/lib
4
4
 
5
5
  Name: vips-cpp
6
6
  Description: C++ API for vips8 image processing library
7
- Version: 8.18.6
7
+ Version: 8.18.7
8
8
  Requires: vips, glib-2.0 >= 2.52, gio-2.0, gobject-2.0, expat, zlib >= 0.4, imagequant, cgif >= 0.2.0, libexif >= 0.6, libjpeg, libuhdr, libpng >= 1.2.9, libwebp >= 0.6, libwebpmux >= 0.6, libwebpdemux >= 0.6, libtiff-4, lcms2, libhwy >= 1.0.5, libheif >= 1.7.0
9
9
  Libs: -L${libdir} -lvips-cpp -lresvg -pthread -lm
10
10
  Cflags: -I${includedir} -DHAVE_CONFIG_H -pthread
@@ -4,7 +4,7 @@ libdir=${prefix}/lib
4
4
 
5
5
  Name: vips
6
6
  Description: Image processing library
7
- Version: 8.18.6
7
+ Version: 8.18.7
8
8
  Requires: glib-2.0 >= 2.52, gio-2.0, gobject-2.0, expat, zlib >= 0.4, imagequant, cgif >= 0.2.0, libexif >= 0.6, libjpeg, libuhdr, libpng >= 1.2.9, libwebp >= 0.6, libwebpmux >= 0.6, libwebpdemux >= 0.6, libtiff-4, lcms2, libhwy >= 1.0.5, libheif >= 1.7.0
9
9
  Libs: -L${libdir} -lvips -lresvg -pthread -lm
10
10
  Cflags: -I${includedir} -DHAVE_CONFIG_H -pthread
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@img/sharp-libvips-dev-wasm32",
3
- "version": "1.3.3",
3
+ "version": "1.3.4-rc.1",
4
4
  "description": "Header files and static wasm32 libraries for libvips and dependencies to build sharp as wasm32",
5
5
  "author": "Lovell Fuller <npm@lovell.info>",
6
6
  "homepage": "https://sharp.pixelplumbing.com",
package/versions.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
- "aom": "3.14.1",
3
- "cgif": "0.5.3",
4
- "emscripten": "6.0.8",
2
+ "aom": "3.15.1",
3
+ "cgif": "0.5.4",
4
+ "emscripten": "6.0.10",
5
5
  "exif": "0.6.26",
6
- "expat": "2.8.3",
6
+ "expat": "2.8.5",
7
7
  "ffi": "3.8.0",
8
- "glib": "2.89.4",
9
- "heif": "1.23.2",
8
+ "glib": "2.90.0",
9
+ "heif": "1.23.5",
10
10
  "highway": "1.4.0",
11
11
  "imagequant": "2.4.1",
12
12
  "lcms": "2.19.1",
@@ -15,7 +15,7 @@
15
15
  "resvg": "0.48.1",
16
16
  "tiff": "4.7.2",
17
17
  "uhdr": "2.0.2",
18
- "vips": "8.18.6",
18
+ "vips": "8.18.7",
19
19
  "webp": "1.6.0",
20
20
  "zlib-ng": "2.3.3"
21
21
  }