@revizly/sharp-libvips-dev 1.0.48 → 1.0.50

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.
package/README.md CHANGED
@@ -10,7 +10,7 @@ used under the terms of the following licenses:
10
10
  | Library | Used under the terms of |
11
11
  |---------------|-----------------------------------------------------------------------------------------------------------|
12
12
  | aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/) |
13
- | cairo | Mozilla Public License 2.0 |
13
+ | cairo | Mozilla Public License 1.1 |
14
14
  | cgif | MIT License |
15
15
  | expat | MIT License |
16
16
  | fontconfig | [fontconfig License](https://gitlab.freedesktop.org/fontconfig/fontconfig/blob/main/COPYING) (BSD-like) |
@@ -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
@@ -1096,7 +1096,7 @@ XML_SetReparseDeferralEnabled(XML_Parser parser, XML_Bool enabled);
1096
1096
  */
1097
1097
  # define XML_MAJOR_VERSION 2
1098
1098
  # define XML_MINOR_VERSION 8
1099
- # define XML_MICRO_VERSION 3
1099
+ # define XML_MICRO_VERSION 4
1100
1100
 
1101
1101
  # ifdef __cplusplus
1102
1102
  }
@@ -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.4"
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.4"
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.4"
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). */
@@ -131,6 +131,10 @@ HB_EXTERN hb_bool_t
131
131
  hb_set_is_equal (const hb_set_t *set,
132
132
  const hb_set_t *other);
133
133
 
134
+ HB_EXTERN hb_bool_t
135
+ hb_set_intersects (const hb_set_t *set,
136
+ const hb_set_t *other);
137
+
134
138
  HB_EXTERN unsigned int
135
139
  hb_set_hash (const hb_set_t *set);
136
140
 
@@ -47,20 +47,20 @@ HB_BEGIN_DECLS
47
47
  *
48
48
  * The minor component of the library version available at compile-time.
49
49
  */
50
- #define HB_VERSION_MINOR 3
50
+ #define HB_VERSION_MINOR 4
51
51
  /**
52
52
  * HB_VERSION_MICRO:
53
53
  *
54
54
  * The micro component of the library version available at compile-time.
55
55
  */
56
- #define HB_VERSION_MICRO 1
56
+ #define HB_VERSION_MICRO 0
57
57
 
58
58
  /**
59
59
  * HB_VERSION_STRING:
60
60
  *
61
61
  * A string literal containing the library version available at compile-time.
62
62
  */
63
- #define HB_VERSION_STRING "14.3.1"
63
+ #define HB_VERSION_STRING "14.4.0"
64
64
 
65
65
  /**
66
66
  * HB_VERSION_ATLEAST:
@@ -28,9 +28,9 @@
28
28
  #define LIBDE265_VERSION_H
29
29
 
30
30
  /* Numeric representation of the version */
31
- #define LIBDE265_NUMERIC_VERSION 0x1010100
31
+ #define LIBDE265_NUMERIC_VERSION 0x1010200
32
32
 
33
33
  /* Version string */
34
- #define LIBDE265_VERSION "1.1.1"
34
+ #define LIBDE265_VERSION "1.1.2"
35
35
 
36
36
  #endif
@@ -40,7 +40,8 @@ extern "C" {
40
40
  #else
41
41
  #define LIBDE265_API __declspec(dllimport)
42
42
  #endif
43
- #elif HAVE_VISIBILITY
43
+ #elif (defined(__GNUC__) || defined(__clang__)) && HAVE_VISIBILITY
44
+ // GCC-style visibility attributes
44
45
  #ifdef LIBDE265_EXPORTS
45
46
  #define LIBDE265_API __attribute__((__visibility__("default")))
46
47
  #else
@@ -97,6 +98,7 @@ typedef enum {
97
98
  DE265_ERROR_UNSPECIFIED_DECODING_ERROR=18,
98
99
  DE265_ERROR_IMAGE_SIZE_EXCEEDS_SECURITY_LIMIT=19,
99
100
  DE265_ERROR_NAL_SIZE_EXCEEDS_SECURITY_LIMIT=20,
101
+ DE265_ERROR_INVALID_ARGUMENT=21,
100
102
 
101
103
  // --- errors that should become obsolete in later libde265 versions ---
102
104
 
@@ -143,7 +145,8 @@ typedef enum {
143
145
  DE265_WARNING_INVALID_SLICE_HEADER_INDEX_ACCESS=1033,
144
146
  DE265_WARNING_INVALID_TU_BLOCK_SPLIT=1034,
145
147
  DE265_WARNING_RICE_PARAMETER_OUT_OF_RANGE=1035,
146
- DE265_WARNING_MAX_NUMBER_OF_SEI_MESSAGES_EXCEEDED=1036
148
+ DE265_WARNING_MAX_NUMBER_OF_SEI_MESSAGES_EXCEEDED=1036,
149
+ DE265_WARNING_SLICE_SEGMENT_ADDRESS_NOT_INCREASING=1037
147
150
  } de265_error;
148
151
 
149
152
  LIBDE265_API const char* de265_get_error_text(de265_error err);
@@ -265,6 +268,9 @@ LIBDE265_API void de265_push_end_of_frame(de265_decoder_context*);
265
268
  /* Push a complete NAL unit without startcode into the decoder. The data must still
266
269
  contain all stuffing-bytes.
267
270
  This function only pushes data into the decoder, nothing will be decoded.
271
+ The NAL unit must at least contain the two-byte NAL unit header. A shorter
272
+ (or negative) length is rejected with DE265_ERROR_INVALID_ARGUMENT and nothing
273
+ is pushed.
268
274
  */
269
275
  LIBDE265_API de265_error de265_push_NAL(de265_decoder_context*, const void* data, int length,
270
276
  de265_PTS pts, void* user_data);
@@ -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
@@ -269,6 +269,13 @@ uint8_t* heif_image_get_plane(heif_image*,
269
269
  // The 'stride' parameter is often multiplied by the image height in the client application.
270
270
  // For very large images, this can lead to integer overflows and, consequently, illegal memory accesses.
271
271
  // The changed 'stride' parameter type eliminates this common error.
272
+ //
273
+ // Size any copy loop that reads or writes this plane from *this* channel's own
274
+ // heif_image_get_width()/heif_image_get_height() and this 'out_stride' -- never from
275
+ // heif_image_handle_get_width()/heif_image_handle_get_height() (the signalled item size, which
276
+ // is not guaranteed to match the decoded plane) and never by assuming stride equals
277
+ // width * bytes_per_pixel: the row may be padded, so require stride >= bytes_per_pixel * width
278
+ // and use the returned stride for row-to-row offsets.
272
279
  LIBHEIF_API
273
280
  const uint8_t* heif_image_get_plane_readonly2(const heif_image*,
274
281
  heif_channel channel,
@@ -54,6 +54,14 @@ LIBHEIF_API
54
54
  heif_item_id heif_image_handle_get_item_id(const heif_image_handle* handle);
55
55
 
56
56
  /** Get the image width.
57
+ *
58
+ * This is the *signalled* size declared for the item, available without decoding. It is not
59
+ * guaranteed to match the size of the image you get back from heif_decode_image(): do not use
60
+ * this value to allocate or bound access to a decoded pixel buffer. Once you have decoded the
61
+ * image, use heif_image_get_width(heif_image*, heif_channel) (or heif_image_get_primary_width())
62
+ * for the actual plane size, and size any copy loop from that together with the stride returned
63
+ * by heif_image_get_plane_readonly2() / heif_image_get_plane2() -- never from this handle value
64
+ * or from width * bytes_per_pixel.
57
65
  *
58
66
  * If 'handle' is invalid (NULL) or if the image size exceeds the range of `int`, 0 is returned.
59
67
  */
@@ -61,6 +69,14 @@ LIBHEIF_API
61
69
  int heif_image_handle_get_width(const heif_image_handle* handle);
62
70
 
63
71
  /** Get the image height.
72
+ *
73
+ * This is the *signalled* size declared for the item, available without decoding. It is not
74
+ * guaranteed to match the size of the image you get back from heif_decode_image(): do not use
75
+ * this value to allocate or bound access to a decoded pixel buffer. Once you have decoded the
76
+ * image, use heif_image_get_height(heif_image*, heif_channel) (or heif_image_get_primary_height())
77
+ * for the actual plane size, and size any copy loop from that together with the stride returned
78
+ * by heif_image_get_plane_readonly2() / heif_image_get_plane2() -- never from this handle value
79
+ * or from height * stride.
64
80
  *
65
81
  * If 'handle' is invalid (NULL) or if the image size exceeds the range of `int`, 0 is returned.
66
82
  */
@@ -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
@@ -814,12 +826,16 @@ heif_error heif_region_item_add_region_referenced_mask(heif_region_item* region_
814
826
  * part of the region. If the bit value is `0`, the corresponding pixel is not part of the
815
827
  * region.
816
828
  *
829
+ * @c width and @c height must both be non-zero and @c mask_data_len must be exactly
830
+ * `(width * height + 7) / 8`, the number of bytes needed to hold one bit per pixel.
831
+ * Otherwise the function fails without modifying the region item.
832
+ *
817
833
  * @param region_item the region item that holds this mask region
818
834
  * @param x the x value for the top-left corner of this mask region
819
835
  * @param y the y value for the top-left corner of this mask region
820
836
  * @param width the width of this mask region
821
837
  * @param height the height of this mask region
822
- * @param mask_data the location to return the mask data
838
+ * @param mask_data the mask data to store
823
839
  * @param mask_data_len the length of the mask data, in bytes
824
840
  * @param out_region pointer to pointer to the returned region (optional, see below)
825
841
  * @return heif_error_ok on success, or an error value indicating the problem on failure
@@ -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) | (1<<8) | 0)
31
+ #define LIBHEIF_NUMERIC_VERSION ((1<<24) | (23<<16) | (4<<8) | 0)
32
32
 
33
33
  /* Version string */
34
- #define LIBHEIF_VERSION "1.23.1"
34
+ #define LIBHEIF_VERSION "1.23.4"
35
35
 
36
36
  #define LIBHEIF_PLUGIN_DIRECTORY "/target/lib/libheif"
37
37
 
@@ -16,17 +16,17 @@
16
16
  /**
17
17
  * the version string like "1.2.3"
18
18
  */
19
- #define LIBXML_DOTTED_VERSION "2.15.3"
19
+ #define LIBXML_DOTTED_VERSION "2.15.4"
20
20
 
21
21
  /**
22
22
  * the version number: 1.2.3 value is 10203
23
23
  */
24
- #define LIBXML_VERSION 21503
24
+ #define LIBXML_VERSION 21504
25
25
 
26
26
  /**
27
27
  * the version number string, 1.2.3 value is "10203"
28
28
  */
29
- #define LIBXML_VERSION_STRING "21503"
29
+ #define LIBXML_VERSION_STRING "21504"
30
30
 
31
31
  /**
32
32
  * extra version information, used to show a git commit description
@@ -37,7 +37,7 @@
37
37
  * Macro to check that the libxml version in use is compatible with
38
38
  * the version the software has been compiled against
39
39
  */
40
- #define LIBXML_TEST_VERSION xmlCheckVersion(21503);
40
+ #define LIBXML_TEST_VERSION xmlCheckVersion(21504);
41
41
 
42
42
  #if 0
43
43
  /**
@@ -4,16 +4,16 @@
4
4
  #ifndef VIPS_VERSION_H
5
5
  #define VIPS_VERSION_H
6
6
 
7
- #define VIPS_VERSION "8.18.5"
8
- #define VIPS_VERSION_STRING "8.18.5"
7
+ #define VIPS_VERSION "8.18.6"
8
+ #define VIPS_VERSION_STRING "8.18.6"
9
9
  #define VIPS_MAJOR_VERSION (8)
10
10
  #define VIPS_MINOR_VERSION (18)
11
- #define VIPS_MICRO_VERSION (5)
11
+ #define VIPS_MICRO_VERSION (6)
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 (5)
16
+ #define VIPS_LIBRARY_REVISION (6)
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: false\nenable Analyze7 load: false\nenable PPM load/save: false\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: true\nfont file support with fontconfig: true\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: true\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-2.0: true\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)"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revizly/sharp-libvips-dev",
3
- "version": "1.0.48",
3
+ "version": "1.0.50",
4
4
  "description": "Header files and C++ sources for libvips and dependencies required when compiling sharp from source",
5
5
  "author": "Lovell Fuller <npm@lovell.info>",
6
6
  "homepage": "https://sharp.pixelplumbing.com",
package/versions.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
- "aom": "3.14.1",
2
+ "aom": "3.15.0",
3
3
  "archive": "3.8.9",
4
4
  "cairo": "1.18.4",
5
- "cgif": "0.5.3",
6
- "de265": "1.1.1",
5
+ "cgif": "0.5.4",
6
+ "de265": "1.1.2",
7
7
  "exif": "0.6.26",
8
- "expat": "2.8.3",
8
+ "expat": "2.8.4",
9
9
  "ffi": "3.8.0",
10
10
  "fontconfig": "2.18.3",
11
11
  "freetype": "2.14.3",
12
12
  "fribidi": "1.0.16",
13
- "glib": "2.89.3",
14
- "harfbuzz": "14.3.1",
15
- "heif": "1.23.1",
13
+ "glib": "2.89.4",
14
+ "harfbuzz": "14.4.0",
15
+ "heif": "1.23.4",
16
16
  "highway": "1.4.0",
17
17
  "imagequant": "2.4.1",
18
18
  "lcms": "2.19.1",
@@ -22,11 +22,11 @@
22
22
  "png": "1.6.58",
23
23
  "proxy-libintl": "0.5",
24
24
  "rsvg": "2.62.91",
25
- "svt-av1": "pgo-build-2026-07-15-8b4b9f5",
25
+ "svt-av1": "pgo-build-2026-09-01-0033340",
26
26
  "tiff": "4.7.2",
27
27
  "uhdr": "2.0.2",
28
- "vips": "8.18.5",
28
+ "vips": "8.18.6",
29
29
  "webp": "1.6.0",
30
- "xml2": "2.15.3",
30
+ "xml2": "2.15.4",
31
31
  "zlib-ng": "2.3.3"
32
32
  }