@revizly/sharp-libvips-dev 1.0.32 → 1.0.34

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 (59) hide show
  1. package/README.md +15 -15
  2. package/include/aom/aom_codec.h +1 -1
  3. package/include/aom/aom_decoder.h +4 -0
  4. package/include/aom/aom_encoder.h +19 -8
  5. package/include/aom/aom_ext_ratectrl.h +664 -0
  6. package/include/aom/aom_image.h +93 -30
  7. package/include/aom/aom_tpl.h +99 -0
  8. package/include/aom/aomcx.h +89 -16
  9. package/include/aom/aomdx.h +12 -0
  10. package/include/expat.h +1 -1
  11. package/include/expat_config.h +3 -3
  12. package/include/fontconfig/fcfreetype.h +14 -0
  13. package/include/fontconfig/fcprivate.h +8 -1
  14. package/include/fontconfig/fontconfig.h +45 -17
  15. package/include/glib-2.0/gio/gdbusconnection.h +2 -8
  16. package/include/glib-2.0/gio/gio-visibility.h +34 -0
  17. package/include/glib-2.0/gio/gioenums.h +5 -4
  18. package/include/glib-2.0/girepository/gi-visibility.h +34 -0
  19. package/include/glib-2.0/glib/glib-visibility.h +34 -0
  20. package/include/glib-2.0/glib/gmacros.h +3 -3
  21. package/include/glib-2.0/glib/gmarkup.h +10 -0
  22. package/include/glib-2.0/glib/gmem.h +4 -4
  23. package/include/glib-2.0/glib/gmessages.h +6 -8
  24. package/include/glib-2.0/glib/gsequence.h +2 -2
  25. package/include/glib-2.0/glib/gstrfuncs.h +190 -0
  26. package/include/glib-2.0/glib/gutils.h +9 -0
  27. package/include/glib-2.0/glib/gversionmacros.h +9 -0
  28. package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
  29. package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
  30. package/include/glib-2.0/gobject/gsignal.h +5 -5
  31. package/include/glib-2.0/gobject/gtype.h +14 -14
  32. package/include/libde265/de265-version.h +2 -2
  33. package/include/libde265/de265.h +13 -1
  34. package/include/libheif/heif.h +2 -0
  35. package/include/libheif/heif_color.h +8 -8
  36. package/include/libheif/heif_components.h +264 -0
  37. package/include/libheif/heif_context.h +2 -1
  38. package/include/libheif/heif_cxx.h +10 -10
  39. package/include/libheif/heif_decoding.h +21 -7
  40. package/include/libheif/heif_encoding.h +15 -9
  41. package/include/libheif/heif_error.h +7 -2
  42. package/include/libheif/heif_image.h +81 -66
  43. package/include/libheif/heif_image_handle.h +2 -2
  44. package/include/libheif/heif_items.h +1 -1
  45. package/include/libheif/heif_omaf.h +104 -0
  46. package/include/libheif/heif_plugin.h +16 -9
  47. package/include/libheif/heif_properties.h +247 -12
  48. package/include/libheif/heif_security.h +16 -4
  49. package/include/libheif/heif_sequences.h +74 -2
  50. package/include/libheif/heif_tiling.h +2 -2
  51. package/include/libheif/heif_uncompressed.h +44 -324
  52. package/include/libheif/heif_version.h +2 -2
  53. package/include/librsvg-2.0/librsvg/rsvg-version.h +2 -2
  54. package/include/tiffio.h +1 -0
  55. package/include/ultrahdr_api.h +5 -11
  56. package/package.json +2 -2
  57. package/versions.json +10 -10
  58. package/include/libheif/heif_uncompressed_types.h +0 -143
  59. package/include/librsvg-2.0/librsvg/rsvg-pixbuf.h +0 -235
@@ -21,7 +21,8 @@
21
21
  #ifndef LIBHEIF_HEIF_UNCOMPRESSED_H
22
22
  #define LIBHEIF_HEIF_UNCOMPRESSED_H
23
23
 
24
- #include "libheif/heif_uncompressed_types.h"
24
+ #include "libheif/heif_components.h"
25
+ #include "libheif/heif_properties.h"
25
26
  #include "libheif/heif.h"
26
27
 
27
28
  #ifdef __cplusplus
@@ -33,219 +34,48 @@ extern "C" {
33
34
  * Despite its name, this is not limited to uncompressed images.
34
35
  * It is also possible to add images with lossless compression methods.
35
36
  * See heif_metadata_compression for more information.
37
+ *
38
+ * ISO/IEC 23001-17 metadata properties (Bayer / polarization / sensor bad
39
+ * pixels / NUC / chroma sample location) live in heif_properties.h, which is
40
+ * included above for back-compat.
36
41
  */
37
42
 
38
- // heif_uncompressed_component_type and heif_bayer_pattern_pixel are defined in heif_uncompressed_types.h.
39
-
40
- // Set a Bayer / filter array pattern on an image.
41
- // The pattern is a 2D array of component indices with dimensions pattern_width x pattern_height.
42
- // The number of entries in patternPixels must be pattern_width * pattern_height.
43
- // The component_index values are indices into the cmpd component definition table.
44
- // On the encoder path, these indices are generated by heif_image_add_component() and the
45
- // encoder adds reference components to cmpd for pattern entries that don't have image planes.
46
- // On the decoder path, they come directly from the cpat box.
47
- LIBHEIF_API
48
- heif_error heif_image_set_bayer_pattern(heif_image*,
49
- uint32_t bayer_component_id,
50
- uint16_t pattern_width,
51
- uint16_t pattern_height,
52
- const heif_bayer_pattern_pixel* patternPixels);
53
-
54
- LIBHEIF_API
55
- heif_error heif_image_add_bayer_component(heif_image*,
56
- uint16_t component_type,
57
- uint32_t* out_component_id);
58
-
59
- // Returns whether the image has a Bayer / filter array pattern.
60
- // If the image has a pattern, out_pattern_width and out_pattern_height are set.
61
- // Either output pointer may be NULL if the caller does not need that value.
62
- LIBHEIF_API
63
- int heif_image_get_bayer_pattern_size(const heif_image*,
64
- uint32_t bayer_component_id,
65
- uint16_t* out_pattern_width,
66
- uint16_t* out_pattern_height);
67
-
68
- // Get the Bayer / filter array pattern pixels.
69
- // The caller must provide an array large enough for pattern_width * pattern_height entries
70
- // (use heif_image_get_bayer_pattern_size() to query the dimensions first).
71
- // Returns heif_error_Ok on success, or an error if no pattern is set.
72
- LIBHEIF_API
73
- heif_error heif_image_get_bayer_pattern(const heif_image*,
74
- uint32_t bayer_component_id,
75
- heif_bayer_pattern_pixel* out_patternPixels);
76
-
77
- // --- Polarization pattern (ISO 23001-17, Section 6.1.5)
78
-
79
- // Special float value indicating "no polarization filter" at a pattern position.
80
- // On the wire this is the IEEE 754 bit pattern 0xFFFFFFFF (a signaling NaN).
81
- // Test with heif_polarization_angle_is_no_filter() below, or with isnan()/std::isnan().
82
-
83
- // Returns a float with the 0xFFFFFFFF bit pattern (NaN) representing "no polarization filter".
84
- LIBHEIF_API
85
- float heif_polarization_angle_no_filter(void);
86
-
87
- // Returns non-zero if the given angle has the "no filter" bit pattern (0xFFFFFFFF).
88
- LIBHEIF_API
89
- int heif_polarization_angle_is_no_filter(float angle);
90
-
91
- // Add a polarization pattern to an image.
92
- // component_indices: array of component indices this pattern applies to (may be NULL if num_component_indices == 0,
93
- // meaning the pattern applies to all components).
94
- // polarization_angles: array of pattern_width * pattern_height float values.
95
- // Each is an angle in degrees [0.0, 360.0), or heif_polarization_angle_no_filter() for "no filter".
96
- // Multiple patterns can be added (one per distinct component group).
97
- LIBHEIF_API
98
- heif_error heif_image_add_polarization_pattern(heif_image*,
99
- uint32_t num_component_indices,
100
- const uint32_t* component_indices,
101
- uint16_t pattern_width,
102
- uint16_t pattern_height,
103
- const float* polarization_angles);
104
-
105
- // Returns the number of polarization patterns on this image (0 if none).
106
- LIBHEIF_API
107
- int heif_image_get_number_of_polarization_patterns(const heif_image*);
108
-
109
- // Get the sizes/dimensions of a polarization pattern (to allocate arrays for the data query).
110
- LIBHEIF_API
111
- heif_error heif_image_get_polarization_pattern_info(const heif_image*,
112
- int pattern_index,
113
- uint32_t* out_num_component_indices,
114
- uint16_t* out_pattern_width,
115
- uint16_t* out_pattern_height);
116
-
117
- // Get the actual data of a polarization pattern.
118
- // Caller must provide pre-allocated arrays:
119
- // out_component_indices: num_component_indices entries (may be NULL if num_component_indices == 0)
120
- // out_polarization_angles: pattern_width * pattern_height entries
121
- LIBHEIF_API
122
- heif_error heif_image_get_polarization_pattern_data(const heif_image*,
123
- int pattern_index,
124
- uint32_t* out_component_indices,
125
- float* out_polarization_angles);
126
-
127
- // Find the polarization pattern index that applies to a given component index.
128
- // Returns the pattern index (>= 0), or -1 if no pattern matches.
129
- // A pattern with an empty component list (component_count == 0) matches all components.
130
- LIBHEIF_API
131
- int heif_image_get_polarization_pattern_index_for_component(const heif_image*,
132
- uint32_t component_index);
133
-
134
-
135
- // --- Sensor bad pixels map (ISO 23001-17, Section 6.1.7)
136
-
137
- // struct heif_bad_pixel is defined in heif_uncompressed_types.h.
138
-
139
- // Add a sensor bad pixels map to an image.
140
- // component_indices: array of component indices this map applies to (may be NULL if num_component_indices == 0,
141
- // meaning the map applies to all components).
142
- // Multiple maps can be added (one per distinct component group with different defects).
143
- LIBHEIF_API
144
- heif_error heif_image_add_sensor_bad_pixels_map(heif_image*,
145
- uint32_t num_component_indices,
146
- const uint32_t* component_indices,
147
- int correction_applied,
148
- uint32_t num_bad_rows,
149
- const uint32_t* bad_rows,
150
- uint32_t num_bad_columns,
151
- const uint32_t* bad_columns,
152
- uint32_t num_bad_pixels,
153
- const heif_bad_pixel* bad_pixels);
154
-
155
- // Returns the number of sensor bad pixels maps on this image (0 if none).
156
- LIBHEIF_API
157
- int heif_image_get_number_of_sensor_bad_pixels_maps(const heif_image*);
158
-
159
- // Get the sizes of a sensor bad pixels map (to allocate arrays for the data query).
160
- LIBHEIF_API
161
- heif_error heif_image_get_sensor_bad_pixels_map_info(const heif_image*,
162
- int map_index,
163
- uint32_t* out_num_component_indices,
164
- int* out_correction_applied,
165
- uint32_t* out_num_bad_rows,
166
- uint32_t* out_num_bad_columns,
167
- uint32_t* out_num_bad_pixels);
168
-
169
- // Get the actual data of a sensor bad pixels map.
170
- // Caller must provide pre-allocated arrays:
171
- // out_component_indices: num_component_indices entries (may be NULL if num_component_indices == 0)
172
- // out_bad_rows: num_bad_rows entries (may be NULL if num_bad_rows == 0)
173
- // out_bad_columns: num_bad_columns entries (may be NULL if num_bad_columns == 0)
174
- // out_bad_pixels: num_bad_pixels entries (may be NULL if num_bad_pixels == 0)
175
- LIBHEIF_API
176
- heif_error heif_image_get_sensor_bad_pixels_map_data(const heif_image*,
177
- int map_index,
178
- uint32_t* out_component_indices,
179
- uint32_t* out_bad_rows,
180
- uint32_t* out_bad_columns,
181
- struct heif_bad_pixel* out_bad_pixels);
182
-
183
-
184
- // --- Sensor non-uniformity correction (ISO 23001-17, Section 6.1.6)
185
43
 
186
- // Add a sensor non-uniformity correction table to an image.
187
- // component_indices: array of component indices this NUC applies to (may be NULL if num_component_indices == 0,
188
- // meaning it applies to all components).
189
- // nuc_gains and nuc_offsets: arrays of image_width * image_height float values.
190
- // Correction equation: y = nuc_gain * x + nuc_offset.
191
- // Multiple NUC tables can be added (one per distinct component group).
192
- LIBHEIF_API
193
- heif_error heif_image_add_sensor_nuc(heif_image*,
194
- uint32_t num_component_indices,
195
- const uint32_t* component_indices,
196
- int nuc_is_applied,
197
- uint32_t image_width,
198
- uint32_t image_height,
199
- const float* nuc_gains,
200
- const float* nuc_offsets);
201
-
202
- // Returns the number of sensor NUC tables on this image (0 if none).
203
- LIBHEIF_API
204
- int heif_image_get_number_of_sensor_nucs(const heif_image*);
205
-
206
- // Get the sizes of a sensor NUC table (to allocate arrays for the data query).
207
- LIBHEIF_API
208
- heif_error heif_image_get_sensor_nuc_info(const heif_image*,
209
- int nuc_index,
210
- uint32_t* out_num_component_indices,
211
- int* out_nuc_is_applied,
212
- uint32_t* out_image_width,
213
- uint32_t* out_image_height);
44
+ // --- 'unci' images
214
45
 
215
- // Get the actual data of a sensor NUC table.
216
- // Caller must provide pre-allocated arrays:
217
- // out_component_indices: num_component_indices entries (may be NULL if num_component_indices == 0)
218
- // out_nuc_gains: image_width * image_height entries
219
- // out_nuc_offsets: image_width * image_height entries
220
- LIBHEIF_API
221
- heif_error heif_image_get_sensor_nuc_data(const heif_image*,
222
- int nuc_index,
223
- uint32_t* out_component_indices,
224
- float* out_nuc_gains,
225
- float* out_nuc_offsets);
46
+ // Compression methods for 'unci' (ISO 23001-17) images.
47
+ // This is similar to heif_metadata_compression. We should try to keep the integers compatible, but each enum will just
48
+ // contain the allowed values.
49
+ typedef enum heif_unci_compression
50
+ {
51
+ heif_unci_compression_off = 0,
52
+ //heif_unci_compression_auto = 1,
53
+ //heif_unci_compression_unknown = 2, // only used when reading unknown method from input file
54
+ heif_unci_compression_deflate = 3,
55
+ heif_unci_compression_zlib = 4,
56
+ heif_unci_compression_brotli = 5
57
+ } heif_unci_compression;
226
58
 
227
59
 
228
- // heif_chroma420_sample_location is defined in heif_uncompressed_types.h.
60
+ // --- 'unci' image parameters
229
61
 
230
- // --- Chroma sample location (ISO 23001-17, Section 6.1.4)
62
+ typedef struct heif_unci_image_parameters
63
+ {
64
+ int version;
231
65
 
232
- // Set the chroma sample location on an image.
233
- // chroma_location must be in the range 0-6 (see heif_chroma420_sample_location).
234
- LIBHEIF_API
235
- heif_error heif_image_set_chroma_location(heif_image*, uint8_t chroma_location);
66
+ // --- version 1
236
67
 
237
- // Returns non-zero if the image has a chroma sample location set.
238
- LIBHEIF_API
239
- int heif_image_has_chroma_location(const heif_image*);
68
+ uint32_t image_width;
69
+ uint32_t image_height;
240
70
 
241
- // Returns the chroma sample location (0-6), or 0 if none is set.
242
- LIBHEIF_API
243
- uint8_t heif_image_get_chroma_location(const heif_image*);
71
+ uint32_t tile_width;
72
+ uint32_t tile_height;
244
73
 
74
+ heif_unci_compression compression;
245
75
 
246
- // --- 'unci' images
76
+ // TODO: interleave type, padding
77
+ } heif_unci_image_parameters;
247
78
 
248
- // heif_unci_compression and heif_unci_image_parameters are defined in heif_uncompressed_types.h.
249
79
 
250
80
  LIBHEIF_API
251
81
  heif_unci_image_parameters* heif_unci_image_parameters_alloc(void);
@@ -265,9 +95,17 @@ void heif_unci_image_parameters_release(heif_unci_image_parameters*);
265
95
  * However, this will by default disable any compression and any control about
266
96
  * the data layout.
267
97
  *
98
+ * The function also accepts a direct heif_unci_image_parameters argument and
99
+ * indirectly through encoding_options. At least one of the two must be non-null.
100
+ * If both are non-null and differ, the direct argument takes precedence.
101
+ *
268
102
  * @param ctx The file context
269
- * @param parameters The parameters for the image, must not be NULL.
270
- * @param encoding_options Optional, may be NULL.
103
+ * @param parameters The parameters for the image. May be NULL if
104
+ * heif_encoding_options::unci_parameters is set instead. If both this
105
+ * argument and encoding_options->unci_parameters are non-null and
106
+ * differ, this argument takes precedence.
107
+ * @param encoding_options Optional, may be NULL. If non-null and unci_parameters is set,
108
+ * it may carry the unci parameters in place of the direct argument.
271
109
  * @param prototype An image with the same channel configuration as the image data
272
110
  * that will be later inserted. The image size need not match this.
273
111
  * Must not be NULL.
@@ -283,128 +121,10 @@ heif_error heif_context_add_empty_unci_image(heif_context* ctx,
283
121
  const heif_image* prototype,
284
122
  heif_image_handle** out_unci_image_handle);
285
123
 
286
- // heif_channel_datatype, heif_complex32, heif_complex64 are defined in heif_uncompressed_types.h.
287
-
288
- // --- index-based component access (for ISO 23001-17 multi-component images)
289
-
290
- // Returns the number of components that have pixel data (planes) in this image.
291
- LIBHEIF_API
292
- uint32_t heif_image_get_number_of_used_components(const heif_image*);
124
+ // Multi-component access functions (heif_image_get/add_component_*,
125
+ // heif_image_handle_get_component_*, heif_image_set_gimi_component_content_id)
126
+ // live in heif_components.h, which is included above.
293
127
 
294
- // Fills `out_component_indices` with the valid component indices.
295
- // The caller must allocate an array of at least heif_image_get_number_of_used_components() elements.
296
- LIBHEIF_API
297
- void heif_image_get_used_component_ids(const heif_image*, uint32_t* out_component_ids);
298
-
299
- LIBHEIF_API
300
- enum heif_channel heif_image_get_component_channel(const heif_image*, uint32_t component_idx);
301
-
302
- LIBHEIF_API
303
- uint32_t heif_image_get_component_width(const heif_image*, uint32_t component_idx);
304
-
305
- LIBHEIF_API
306
- uint32_t heif_image_get_component_height(const heif_image*, uint32_t component_idx);
307
-
308
- LIBHEIF_API
309
- int heif_image_get_component_bits_per_pixel(const heif_image*, uint32_t component_idx);
310
-
311
- LIBHEIF_API
312
- uint16_t heif_image_get_component_type(const heif_image*, uint32_t component_idx);
313
-
314
- // TODO
315
- //LIBHEIF_API
316
- //heif_error heif_image_get_component_indices_of_interleaved_channel(const heif_image* image, uint32_t* component_indices, uint8_t* nComponents_in_out);
317
-
318
- LIBHEIF_API
319
- heif_error heif_image_add_component(heif_image* image,
320
- int width, int height,
321
- uint16_t component_type,
322
- heif_component_datatype datatype,
323
- int bit_depth,
324
- uint32_t* out_component_idx);
325
-
326
- LIBHEIF_API
327
- const uint8_t* heif_image_get_component_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
328
-
329
- LIBHEIF_API
330
- uint8_t* heif_image_get_component(heif_image*, uint32_t component_idx, size_t* out_stride);
331
-
332
- LIBHEIF_API
333
- const uint16_t* heif_image_get_component_uint16_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
334
-
335
- LIBHEIF_API
336
- uint16_t* heif_image_get_component_uint16(heif_image*, uint32_t component_idx, size_t* out_stride);
337
-
338
- LIBHEIF_API
339
- const uint32_t* heif_image_get_component_uint32_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
340
-
341
- LIBHEIF_API
342
- uint32_t* heif_image_get_component_uint32(heif_image*, uint32_t component_idx, size_t* out_stride);
343
-
344
- LIBHEIF_API
345
- const uint64_t* heif_image_get_component_uint64_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
346
-
347
- LIBHEIF_API
348
- uint64_t* heif_image_get_component_uint64(heif_image*, uint32_t component_idx, size_t* out_stride);
349
-
350
- LIBHEIF_API
351
- const int8_t* heif_image_get_component_int8_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
352
-
353
- LIBHEIF_API
354
- int8_t* heif_image_get_component_int8(heif_image*, uint32_t component_idx, size_t* out_stride);
355
-
356
- LIBHEIF_API
357
- const int16_t* heif_image_get_component_int16_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
358
-
359
- LIBHEIF_API
360
- int16_t* heif_image_get_component_int16(heif_image*, uint32_t component_idx, size_t* out_stride);
361
-
362
- LIBHEIF_API
363
- const int32_t* heif_image_get_component_int32_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
364
-
365
- LIBHEIF_API
366
- int32_t* heif_image_get_component_int32(heif_image*, uint32_t component_idx, size_t* out_stride);
367
-
368
- LIBHEIF_API
369
- const int64_t* heif_image_get_component_int64_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
370
-
371
- LIBHEIF_API
372
- int64_t* heif_image_get_component_int64(heif_image*, uint32_t component_idx, size_t* out_stride);
373
-
374
- LIBHEIF_API
375
- const float* heif_image_get_component_float32_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
376
-
377
- LIBHEIF_API
378
- float* heif_image_get_component_float32(heif_image*, uint32_t component_idx, size_t* out_stride);
379
-
380
- LIBHEIF_API
381
- const double* heif_image_get_component_float64_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
382
-
383
- LIBHEIF_API
384
- double* heif_image_get_component_float64(heif_image*, uint32_t component_idx, size_t* out_stride);
385
-
386
- LIBHEIF_API
387
- const heif_complex32* heif_image_get_component_complex32_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
388
-
389
- LIBHEIF_API
390
- heif_complex32* heif_image_get_component_complex32(heif_image*, uint32_t component_idx, size_t* out_stride);
391
-
392
- LIBHEIF_API
393
- const heif_complex64* heif_image_get_component_complex64_readonly(const heif_image*, uint32_t component_idx, size_t* out_stride);
394
-
395
- LIBHEIF_API
396
- heif_complex64* heif_image_get_component_complex64(heif_image*, uint32_t component_idx, size_t* out_stride);
397
-
398
-
399
- // --- GIMI component content IDs (set before encoding)
400
-
401
- // Set a GIMI component content ID for a single cmpd component.
402
- // If the internal array is too small, it will be resized (new entries default to empty strings).
403
- // These are written into an ItemComponentContentIDProperty box during encoding.
404
- LIBHEIF_API
405
- void heif_image_set_gimi_component_content_id(heif_image*,
406
- uint32_t component_idx,
407
- const char* content_id);
408
128
 
409
129
  #ifdef __cplusplus
410
130
  }
@@ -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) | (21<<16) | (2<<8) | 0)
31
+ #define LIBHEIF_NUMERIC_VERSION ((1<<24) | (22<<16) | (0<<8) | 0)
32
32
 
33
33
  /* Version string */
34
- #define LIBHEIF_VERSION "1.21.2"
34
+ #define LIBHEIF_VERSION "1.22.0"
35
35
 
36
36
  #define LIBHEIF_PLUGIN_DIRECTORY "/target/lib/libheif"
37
37
 
@@ -7,7 +7,7 @@
7
7
 
8
8
  #define LIBRSVG_MAJOR_VERSION (2)
9
9
  #define LIBRSVG_MINOR_VERSION (62)
10
- #define LIBRSVG_MICRO_VERSION (1)
11
- #define LIBRSVG_VERSION "2.62.1"
10
+ #define LIBRSVG_MICRO_VERSION (2)
11
+ #define LIBRSVG_VERSION "2.62.2"
12
12
 
13
13
  #endif
package/include/tiffio.h CHANGED
@@ -584,6 +584,7 @@ extern int TIFFReadRGBAImageOriented(TIFF *, uint32_t, uint32_t, uint32_t *,
584
584
  tmsize_t cc);
585
585
  extern tmsize_t TIFFWriteRawTile(TIFF *tif, uint32_t tile, void *data,
586
586
  tmsize_t cc);
587
+ extern uint64_t TIFFGetMaxCompressionRatio(TIFF *tif);
587
588
  extern int TIFFDataWidth(
588
589
  TIFFDataType); /* table of tag datatype widths within TIFF file. */
589
590
  extern void TIFFSetWriteOffset(TIFF *tif, toff_t off);
@@ -1,17 +1,11 @@
1
1
  /*
2
2
  * Copyright 2024 The Android Open Source Project
3
3
  *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
4
+ * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5
+ * https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6
+ * <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
7
+ * option. This file may not be copied, modified, or distributed
8
+ * except according to those terms.
15
9
  */
16
10
 
17
11
  /** \file ultrahdr_api.h
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@revizly/sharp-libvips-dev",
3
- "version": "1.0.32",
3
+ "version": "1.0.34",
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",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/lovell/sharp-libvips.git",
9
+ "url": "git+https://github.com/janaz/sharp-libvips.git",
10
10
  "directory": "npm/dev"
11
11
  },
12
12
  "license": "LGPL-3.0-or-later",
package/versions.json CHANGED
@@ -1,29 +1,29 @@
1
1
  {
2
- "aom": "3.13.3",
2
+ "aom": "3.14.1",
3
3
  "archive": "3.8.7",
4
4
  "cairo": "1.18.4",
5
5
  "cgif": "0.5.3",
6
- "de265": "1.0.18",
6
+ "de265": "1.0.19",
7
7
  "exif": "0.6.26",
8
- "expat": "2.8.0",
8
+ "expat": "2.8.1",
9
9
  "ffi": "3.5.2",
10
- "fontconfig": "2.17.1",
10
+ "fontconfig": "2.18.0",
11
11
  "freetype": "2.14.3",
12
12
  "fribidi": "1.0.16",
13
- "glib": "2.88.1",
13
+ "glib": "2.89.0",
14
14
  "harfbuzz": "14.2.0",
15
- "heif": "64b0662",
15
+ "heif": "1.22.0",
16
16
  "highway": "1.4.0",
17
17
  "imagequant": "2.4.1",
18
- "lcms": "2.19",
18
+ "lcms": "2.19.1",
19
19
  "mozjpeg": "0826579",
20
20
  "pango": "1.57.1",
21
21
  "pixman": "0.46.4",
22
22
  "png": "1.6.58",
23
23
  "proxy-libintl": "0.5",
24
- "rsvg": "2.62.1",
25
- "tiff": "c09bb26",
26
- "uhdr": "8cbc983",
24
+ "rsvg": "2.62.2",
25
+ "tiff": "1b17963",
26
+ "uhdr": "82b4f6d",
27
27
  "vips": "8.18.2",
28
28
  "webp": "1.6.0",
29
29
  "xml2": "2.15.3",
@@ -1,143 +0,0 @@
1
- /*6
2
- * HEIF codec.
3
- * Copyright (c) 2026 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_UNCOMPRESSED_TYPES_H
22
- #define LIBHEIF_HEIF_UNCOMPRESSED_TYPES_H
23
-
24
- #include <stdint.h>
25
-
26
- #ifdef __cplusplus
27
- extern "C" {
28
- #endif
29
-
30
- // --- ISO 23001-17 component types (Table 1)
31
-
32
- typedef enum heif_unci_component_type
33
- {
34
- heif_unci_component_type_monochrome = 0,
35
- heif_unci_component_type_Y = 1,
36
- heif_unci_component_type_Cb = 2,
37
- heif_unci_component_type_Cr = 3,
38
- heif_unci_component_type_red = 4,
39
- heif_unci_component_type_green = 5,
40
- heif_unci_component_type_blue = 6,
41
- heif_unci_component_type_alpha = 7,
42
- heif_unci_component_type_depth = 8,
43
- heif_unci_component_type_disparity = 9,
44
- heif_unci_component_type_palette = 10,
45
- heif_unci_component_type_filter_array = 11,
46
- heif_unci_component_type_padded = 12,
47
- heif_unci_component_type_cyan = 13,
48
- heif_unci_component_type_magenta = 14,
49
- heif_unci_component_type_yellow = 15,
50
- heif_unci_component_type_key_black = 16
51
- } heif_unci_component_type;
52
-
53
-
54
- // --- Bayer / filter array pattern
55
-
56
- typedef struct heif_bayer_pattern_pixel
57
- {
58
- uint32_t component_id;
59
- float component_gain;
60
- } heif_bayer_pattern_pixel;
61
-
62
-
63
- // --- Sensor bad pixels map (ISO 23001-17, Section 6.1.7)
64
-
65
- struct heif_bad_pixel { uint32_t row; uint32_t column; };
66
-
67
-
68
- // --- Chroma sample location (ISO 23091-2 / ITU-T H.273 + ISO 23001-17)
69
-
70
- typedef enum heif_chroma420_sample_location {
71
- // values 0-5 according to ISO 23091-2 / ITU-T H.273
72
- heif_chroma420_sample_location_00_05 = 0,
73
- heif_chroma420_sample_location_05_05 = 1,
74
- heif_chroma420_sample_location_00_00 = 2,
75
- heif_chroma420_sample_location_05_00 = 3,
76
- heif_chroma420_sample_location_00_10 = 4,
77
- heif_chroma420_sample_location_05_10 = 5,
78
-
79
- // value 6 according to ISO 23001-17
80
- heif_chroma420_sample_location_00_00_01_00 = 6
81
- } heif_chroma420_sample_location;
82
-
83
-
84
- // Compression methods for 'unci' (ISO 23001-17) images.
85
- // This is similar to heif_metadata_compression. We should try to keep the integers compatible, but each enum will just
86
- // contain the allowed values.
87
- typedef enum heif_unci_compression
88
- {
89
- heif_unci_compression_off = 0,
90
- //heif_unci_compression_auto = 1,
91
- //heif_unci_compression_unknown = 2, // only used when reading unknown method from input file
92
- heif_unci_compression_deflate = 3,
93
- heif_unci_compression_zlib = 4,
94
- heif_unci_compression_brotli = 5
95
- } heif_unci_compression;
96
-
97
-
98
- // --- 'unci' image parameters
99
-
100
- typedef struct heif_unci_image_parameters
101
- {
102
- int version;
103
-
104
- // --- version 1
105
-
106
- uint32_t image_width;
107
- uint32_t image_height;
108
-
109
- uint32_t tile_width;
110
- uint32_t tile_height;
111
-
112
- heif_unci_compression compression;
113
-
114
- // TODO: interleave type, padding
115
- } heif_unci_image_parameters;
116
-
117
-
118
- // --- pixel datatype support
119
-
120
- typedef enum heif_component_datatype
121
- {
122
- heif_component_datatype_undefined = 0,
123
- heif_component_datatype_unsigned_integer = 1,
124
- heif_component_datatype_signed_integer = 2,
125
- heif_component_datatype_floating_point = 3,
126
- heif_component_datatype_complex_number = 4
127
- } heif_component_datatype;
128
-
129
- typedef struct heif_complex32
130
- {
131
- float real, imaginary;
132
- } heif_complex32;
133
-
134
- typedef struct heif_complex64
135
- {
136
- double real, imaginary;
137
- } heif_complex64;
138
-
139
- #ifdef __cplusplus
140
- }
141
- #endif
142
-
143
- #endif