@revizly/sharp-libvips-dev 1.0.31 → 1.0.32

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 (54) hide show
  1. package/include/expat.h +14 -2
  2. package/include/expat_config.h +6 -3
  3. package/include/expat_external.h +3 -2
  4. package/include/glib-2.0/glib/gvarianttype.h +16 -16
  5. package/include/glib-2.0/glib/gversionmacros.h +13 -0
  6. package/include/harfbuzz/hb-cplusplus.hh +9 -1
  7. package/include/harfbuzz/hb-draw.h +52 -0
  8. package/include/harfbuzz/hb-paint.h +209 -2
  9. package/include/harfbuzz/hb-version.h +2 -2
  10. package/include/hwy/aligned_allocator.h +44 -2
  11. package/include/hwy/auto_tune.h +22 -6
  12. package/include/hwy/base.h +60 -90
  13. package/include/hwy/bit_set.h +410 -0
  14. package/include/hwy/cache_control.h +3 -2
  15. package/include/hwy/detect_compiler_arch.h +134 -14
  16. package/include/hwy/detect_targets.h +82 -36
  17. package/include/hwy/highway.h +15 -0
  18. package/include/hwy/nanobenchmark.h +12 -3
  19. package/include/hwy/ops/arm_neon-inl.h +96 -25
  20. package/include/hwy/ops/arm_sve-inl.h +250 -95
  21. package/include/hwy/ops/emu128-inl.h +12 -7
  22. package/include/hwy/ops/generic_ops-inl.h +271 -131
  23. package/include/hwy/ops/loongarch_lasx-inl.h +31 -9
  24. package/include/hwy/ops/loongarch_lsx-inl.h +33 -12
  25. package/include/hwy/ops/ppc_vsx-inl.h +99 -19
  26. package/include/hwy/ops/rvv-inl.h +239 -130
  27. package/include/hwy/ops/scalar-inl.h +22 -7
  28. package/include/hwy/ops/set_macros-inl.h +158 -107
  29. package/include/hwy/ops/wasm_128-inl.h +13 -22
  30. package/include/hwy/ops/x86_128-inl.h +223 -120
  31. package/include/hwy/ops/x86_256-inl.h +70 -134
  32. package/include/hwy/ops/x86_512-inl.h +130 -134
  33. package/include/hwy/print-inl.h +2 -0
  34. package/include/hwy/profiler.h +355 -264
  35. package/include/hwy/robust_statistics.h +3 -1
  36. package/include/hwy/timer.h +44 -0
  37. package/include/lcms2.h +34 -4
  38. package/include/libexif/exif-utils.h +1 -1
  39. package/include/libheif/heif_context.h +13 -0
  40. package/include/libheif/heif_sequences.h +12 -2
  41. package/include/libheif/heif_uncompressed.h +14 -10
  42. package/include/libheif/heif_uncompressed_types.h +27 -27
  43. package/include/libpng16/png.h +7 -7
  44. package/include/libpng16/pngconf.h +1 -1
  45. package/include/libpng16/pnglibconf.h +1 -1
  46. package/include/libxml2/libxml/xmlversion.h +4 -4
  47. package/include/png.h +7 -7
  48. package/include/pngconf.h +1 -1
  49. package/include/pnglibconf.h +1 -1
  50. package/include/tiffconf.h +9 -10
  51. package/include/tiffio.h +9 -9
  52. package/include/tiffvers.h +1 -1
  53. package/package.json +1 -1
  54. package/versions.json +10 -10
@@ -123,8 +123,10 @@ T Median(T* values, const size_t num_values) {
123
123
  if (num_values % 2) {
124
124
  return values[half];
125
125
  }
126
+ // For integers, round rather than truncate.
127
+ const T bias = hwy::IsInteger<T>() ? T{1} : T{0};
126
128
  // Even count: return average of middle two.
127
- return (values[half] + values[half - 1] + 1) / 2;
129
+ return (values[half] + values[half - 1] + bias) / 2;
128
130
  }
129
131
 
130
132
  // Returns a robust measure of variability.
@@ -232,6 +232,50 @@ static HWY_INLINE Ticks Stop() {
232
232
 
233
233
  } // namespace timer
234
234
 
235
+ // Wrapper around Start/Stop that checks whether the CPU supports Stop.
236
+ class Timer {
237
+ public:
238
+ Timer() {
239
+ char cpu100[100];
240
+ have_timer_stop_ = platform::HaveTimerStop(cpu100);
241
+ }
242
+
243
+ // Before/After have fences to prevent the measured code 'leaking out'.
244
+ timer::Ticks Before() const { return timer::Start(); }
245
+ timer::Ticks After() const {
246
+ return have_timer_stop_ ? timer::Stop() : timer::Start();
247
+ }
248
+
249
+ private:
250
+ bool have_timer_stop_;
251
+ };
252
+
253
+ static inline double Seconds(timer::Ticks ticks) {
254
+ return static_cast<double>(ticks) / platform::InvariantTicksPerSecond();
255
+ }
256
+
257
+ // Measures elapsed time since construction, with automatic reset.
258
+ class Stopwatch {
259
+ public:
260
+ explicit Stopwatch(const Timer& timestamps) : timer_(timestamps) { Reset(); }
261
+
262
+ timer::Ticks Origin() const { return t0_; }
263
+ void Reset() { t0_ = timer_.Before(); }
264
+
265
+ // Also resets the start time to the current time to enable reuse without a
266
+ // second call to the timer.
267
+ timer::Ticks Elapsed() {
268
+ const timer::Ticks t1 = timer_.After();
269
+ const timer::Ticks elapsed = t1 - t0_;
270
+ t0_ = t1;
271
+ return elapsed;
272
+ }
273
+
274
+ private:
275
+ const Timer& timer_;
276
+ timer::Ticks t0_;
277
+ };
278
+
235
279
  } // namespace hwy
236
280
 
237
281
  #endif // HIGHWAY_HWY_TIMER_H_
package/include/lcms2.h CHANGED
@@ -23,7 +23,7 @@
23
23
  //
24
24
  //---------------------------------------------------------------------------------
25
25
  //
26
- // Version 2.18
26
+ // Version 2.19
27
27
  //
28
28
 
29
29
  #ifndef _lcms2_H
@@ -37,6 +37,13 @@
37
37
  // "long long" type.
38
38
  // #define CMS_DONT_USE_INT64 1
39
39
 
40
+ // Uncomment this one to enable large file support on file/stream I/O.
41
+ // LittleCMS is still limited by ICC 32-bit offsets and sizes, so the
42
+ // practical maximum remains 4 GiB minus profile overhead. Be careful
43
+ // because such huge profiles have to be loaded into memory and that's
44
+ // usually a very bad idea.
45
+ // #define CMS_LARGE_FILE_SUPPORT 1
46
+
40
47
  // Uncomment this if your compiler doesn't work with fast floor function
41
48
  // #define CMS_DONT_USE_FAST_FLOOR 1
42
49
 
@@ -87,7 +94,7 @@ extern "C" {
87
94
  #endif
88
95
 
89
96
  // Version/release
90
- #define LCMS_VERSION 2180
97
+ #define LCMS_VERSION 2190
91
98
 
92
99
  // I will give the chance of redefining basic types for compilers that are not fully C99 compliant
93
100
  #ifndef CMS_BASIC_TYPES_ALREADY_DEFINED
@@ -168,6 +175,9 @@ typedef double cmsFloat64Number;
168
175
  #ifdef CMS_DONT_USE_INT64
169
176
  typedef cmsUInt32Number cmsUInt64Number[2];
170
177
  typedef cmsInt32Number cmsInt64Number[2];
178
+ # if defined(CMS_LARGE_FILE_SUPPORT)
179
+ # error "You need int64 for large file support"
180
+ # endif
171
181
  #endif
172
182
 
173
183
  // Derivative types
@@ -504,7 +514,13 @@ typedef enum {
504
514
  cmsSigLinkClass = 0x6C696E6B, // 'link'
505
515
  cmsSigAbstractClass = 0x61627374, // 'abst'
506
516
  cmsSigColorSpaceClass = 0x73706163, // 'spac'
507
- cmsSigNamedColorClass = 0x6e6d636c // 'nmcl'
517
+ cmsSigNamedColorClass = 0x6e6d636c, // 'nmcl'
518
+
519
+ // iccMAX only
520
+ cmsSigColorEncodingSpaceClass = 0x63656E63, // 'cenc'
521
+ cmsSigMultiplexIdentificationClass = 0x6D696420, // 'mid '
522
+ cmsSigMultiplexLinkClass = 0x6d6c6e6b, // 'mlnk'
523
+ cmsSigMultiplexVisualizationClass = 0x6d766973 // 'mvis'
508
524
 
509
525
  } cmsProfileClassSignature;
510
526
 
@@ -1078,8 +1094,12 @@ CMSAPI int CMSEXPORT cmsGetEncodedCMMversion(void);
1078
1094
  // Support of non-standard functions --------------------------------------------------------------------------------------
1079
1095
 
1080
1096
  CMSAPI int CMSEXPORT cmsstrcasecmp(const char* s1, const char* s2);
1081
- CMSAPI long int CMSEXPORT cmsfilelength(FILE* f);
1082
1097
 
1098
+ #ifdef CMS_LARGE_FILE_SUPPORT
1099
+ CMSAPI long long int CMSEXPORT cmsfilelength(FILE* f);
1100
+ #else
1101
+ CMSAPI long int CMSEXPORT cmsfilelength(FILE* f);
1102
+ #endif
1083
1103
 
1084
1104
  // Context handling --------------------------------------------------------------------------------------------------------
1085
1105
 
@@ -1502,6 +1522,7 @@ CMSAPI cmsHPROFILE CMSEXPORT cmsCreateProfilePlaceholder(cmsContext Contex
1502
1522
  CMSAPI cmsContext CMSEXPORT cmsGetProfileContextID(cmsHPROFILE hProfile);
1503
1523
  CMSAPI cmsInt32Number CMSEXPORT cmsGetTagCount(cmsHPROFILE hProfile);
1504
1524
  CMSAPI cmsTagSignature CMSEXPORT cmsGetTagSignature(cmsHPROFILE hProfile, cmsUInt32Number n);
1525
+ CMSAPI cmsBool CMSEXPORT cmsGetTagOffsetAndSize(cmsHPROFILE hProfile, cmsUInt32Number n, cmsUInt32Number* offset, cmsUInt32Number* size);
1505
1526
  CMSAPI cmsBool CMSEXPORT cmsIsTag(cmsHPROFILE hProfile, cmsTagSignature sig);
1506
1527
 
1507
1528
  // Read and write pre-formatted data
@@ -1525,6 +1546,8 @@ CMSAPI void CMSEXPORT cmsGetHeaderAttributes(cmsHPROFILE hProfile,
1525
1546
  CMSAPI void CMSEXPORT cmsGetHeaderProfileID(cmsHPROFILE hProfile, cmsUInt8Number* ProfileID);
1526
1547
  CMSAPI cmsBool CMSEXPORT cmsGetHeaderCreationDateTime(cmsHPROFILE hProfile, struct tm *Dest);
1527
1548
  CMSAPI cmsUInt32Number CMSEXPORT cmsGetHeaderRenderingIntent(cmsHPROFILE hProfile);
1549
+ CMSAPI cmsUInt32Number CMSEXPORT cmsGetHeaderCMM(cmsHPROFILE hProfile);
1550
+
1528
1551
 
1529
1552
  CMSAPI void CMSEXPORT cmsSetHeaderFlags(cmsHPROFILE hProfile, cmsUInt32Number Flags);
1530
1553
  CMSAPI cmsUInt32Number CMSEXPORT cmsGetHeaderManufacturer(cmsHPROFILE hProfile);
@@ -1867,6 +1890,13 @@ CMSAPI cmsContext CMSEXPORT cmsGetTransformContextID(cmsHTRANSFORM hTransf
1867
1890
  CMSAPI cmsUInt32Number CMSEXPORT cmsGetTransformInputFormat(cmsHTRANSFORM hTransform);
1868
1891
  CMSAPI cmsUInt32Number CMSEXPORT cmsGetTransformOutputFormat(cmsHTRANSFORM hTransform);
1869
1892
 
1893
+ // Access the optimized pipeline and gamut-check pipeline inside a transform.
1894
+ CMSAPI cmsPipeline* CMSEXPORT cmsGetTransformPipeline(cmsHTRANSFORM hTransform);
1895
+ CMSAPI cmsPipeline* CMSEXPORT cmsGetTransformGamutCheckPipeline(cmsHTRANSFORM hTransform);
1896
+ // Grab colorants
1897
+ CMSAPI cmsNAMEDCOLORLIST* CMSEXPORT cmsGetTransformInputColorants(cmsHTRANSFORM hTransform);
1898
+ CMSAPI cmsNAMEDCOLORLIST* CMSEXPORT cmsGetTransformOutputColorants(cmsHTRANSFORM hTransform);
1899
+
1870
1900
  // For backwards compatibility
1871
1901
  CMSAPI cmsBool CMSEXPORT cmsChangeBuffersFormat(cmsHTRANSFORM hTransform,
1872
1902
  cmsUInt32Number InputFormat,
@@ -170,7 +170,7 @@ void exif_set_srational (unsigned char *b, ExifByteOrder order,
170
170
  ExifSRational value);
171
171
 
172
172
  /*! \internal */
173
- void exif_convert_utf16_to_utf8 (char *out, const unsigned char *in, int maxlen);
173
+ void exif_convert_utf16_to_utf8 (char *out, unsigned int outlen, const unsigned char *in, unsigned int inlen);
174
174
 
175
175
  /* Please do not use this function outside of the library. */
176
176
 
@@ -295,6 +295,19 @@ heif_error heif_context_get_image_handle(heif_context* ctx,
295
295
  LIBHEIF_API
296
296
  void heif_context_debug_dump_boxes_to_file(heif_context* ctx, int fd);
297
297
 
298
+ // ====================================================================================================
299
+ // Mini format (experimental)
300
+
301
+ // Enable writing in the compact 'mini' box format (ISO/IEC 23008-12 DAmd2).
302
+ // When enabled, the output file will use a single 'mini' box instead of the standard
303
+ // meta+mdat box structure, if the file content is compatible with the mini format.
304
+ // If the content cannot be represented as a mini box, the standard format is used as fallback.
305
+ // Requires ENABLE_EXPERIMENTAL_MINI_FORMAT to be enabled at compile time.
306
+ // Default: disabled.
307
+ LIBHEIF_API
308
+ void heif_context_set_write_mini_format(heif_context*, int enable);
309
+
310
+
298
311
  // ====================================================================================================
299
312
  // Write the heif_context to a HEIF file
300
313
 
@@ -82,7 +82,12 @@ int heif_context_number_of_sequence_tracks(const heif_context*);
82
82
 
83
83
  /**
84
84
  * Returns the IDs for each of the tracks stored in the HEIF file.
85
- * The output array must have heif_context_number_of_sequence_tracks() entries.
85
+ *
86
+ * The caller MUST allocate `out_track_id_array` with exactly
87
+ * heif_context_number_of_sequence_tracks() entries. The function writes
88
+ * that many IDs unconditionally. Passing a smaller array results in a
89
+ * buffer overflow (undefined behavior); there is no capacity parameter
90
+ * and no truncation.
86
91
  */
87
92
  LIBHEIF_API
88
93
  void heif_context_get_track_ids(const heif_context* ctx, uint32_t out_track_id_array[]);
@@ -610,7 +615,12 @@ size_t heif_track_get_number_of_track_reference_types(const heif_track*);
610
615
 
611
616
  /**
612
617
  * List the reference types used in this track.
613
- * The passed array must have heif_track_get_number_of_track_reference_types() entries.
618
+ *
619
+ * The caller MUST allocate `out_reference_types` with exactly
620
+ * heif_track_get_number_of_track_reference_types() entries. The function
621
+ * writes that many values unconditionally. Passing a smaller array
622
+ * results in a buffer overflow (undefined behavior); there is no
623
+ * capacity parameter and no truncation.
614
624
  */
615
625
  LIBHEIF_API
616
626
  void heif_track_get_track_reference_types(const heif_track*, uint32_t out_reference_types[]);
@@ -46,24 +46,32 @@ extern "C" {
46
46
  // On the decoder path, they come directly from the cpat box.
47
47
  LIBHEIF_API
48
48
  heif_error heif_image_set_bayer_pattern(heif_image*,
49
+ uint32_t bayer_component_id,
49
50
  uint16_t pattern_width,
50
51
  uint16_t pattern_height,
51
52
  const heif_bayer_pattern_pixel* patternPixels);
52
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
+
53
59
  // Returns whether the image has a Bayer / filter array pattern.
54
60
  // If the image has a pattern, out_pattern_width and out_pattern_height are set.
55
61
  // Either output pointer may be NULL if the caller does not need that value.
56
62
  LIBHEIF_API
57
- int heif_image_has_bayer_pattern(const heif_image*,
58
- uint16_t* out_pattern_width,
59
- uint16_t* out_pattern_height);
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);
60
67
 
61
68
  // Get the Bayer / filter array pattern pixels.
62
69
  // The caller must provide an array large enough for pattern_width * pattern_height entries
63
- // (use heif_image_has_bayer_pattern() to query the dimensions first).
70
+ // (use heif_image_get_bayer_pattern_size() to query the dimensions first).
64
71
  // Returns heif_error_Ok on success, or an error if no pattern is set.
65
72
  LIBHEIF_API
66
73
  heif_error heif_image_get_bayer_pattern(const heif_image*,
74
+ uint32_t bayer_component_id,
67
75
  heif_bayer_pattern_pixel* out_patternPixels);
68
76
 
69
77
  // --- Polarization pattern (ISO 23001-17, Section 6.1.5)
@@ -283,14 +291,10 @@ heif_error heif_context_add_empty_unci_image(heif_context* ctx,
283
291
  LIBHEIF_API
284
292
  uint32_t heif_image_get_number_of_used_components(const heif_image*);
285
293
 
286
- // Returns the total number of components declared in the cmpd box.
287
- LIBHEIF_API
288
- uint32_t heif_image_get_total_number_of_cmpd_components(const heif_image*);
289
-
290
294
  // Fills `out_component_indices` with the valid component indices.
291
295
  // The caller must allocate an array of at least heif_image_get_number_of_used_components() elements.
292
296
  LIBHEIF_API
293
- void heif_image_get_used_component_indices(const heif_image*, uint32_t* out_component_indices);
297
+ void heif_image_get_used_component_ids(const heif_image*, uint32_t* out_component_ids);
294
298
 
295
299
  LIBHEIF_API
296
300
  enum heif_channel heif_image_get_component_channel(const heif_image*, uint32_t component_idx);
@@ -315,7 +319,7 @@ LIBHEIF_API
315
319
  heif_error heif_image_add_component(heif_image* image,
316
320
  int width, int height,
317
321
  uint16_t component_type,
318
- heif_channel_datatype datatype,
322
+ heif_component_datatype datatype,
319
323
  int bit_depth,
320
324
  uint32_t* out_component_idx);
321
325
 
@@ -29,33 +29,33 @@ extern "C" {
29
29
 
30
30
  // --- ISO 23001-17 component types (Table 1)
31
31
 
32
- typedef enum heif_uncompressed_component_type
32
+ typedef enum heif_unci_component_type
33
33
  {
34
- heif_uncompressed_component_type_monochrome = 0,
35
- heif_uncompressed_component_type_Y = 1,
36
- heif_uncompressed_component_type_Cb = 2,
37
- heif_uncompressed_component_type_Cr = 3,
38
- heif_uncompressed_component_type_red = 4,
39
- heif_uncompressed_component_type_green = 5,
40
- heif_uncompressed_component_type_blue = 6,
41
- heif_uncompressed_component_type_alpha = 7,
42
- heif_uncompressed_component_type_depth = 8,
43
- heif_uncompressed_component_type_disparity = 9,
44
- heif_uncompressed_component_type_palette = 10,
45
- heif_uncompressed_component_type_filter_array = 11,
46
- heif_uncompressed_component_type_padded = 12,
47
- heif_uncompressed_component_type_cyan = 13,
48
- heif_uncompressed_component_type_magenta = 14,
49
- heif_uncompressed_component_type_yellow = 15,
50
- heif_uncompressed_component_type_key_black = 16
51
- } heif_uncompressed_component_type;
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
52
 
53
53
 
54
54
  // --- Bayer / filter array pattern
55
55
 
56
56
  typedef struct heif_bayer_pattern_pixel
57
57
  {
58
- uint16_t component_index; // index into the component definition (cmpd)
58
+ uint32_t component_id;
59
59
  float component_gain;
60
60
  } heif_bayer_pattern_pixel;
61
61
 
@@ -117,14 +117,14 @@ typedef struct heif_unci_image_parameters
117
117
 
118
118
  // --- pixel datatype support
119
119
 
120
- typedef enum heif_channel_datatype
120
+ typedef enum heif_component_datatype
121
121
  {
122
- heif_channel_datatype_undefined = 0,
123
- heif_channel_datatype_unsigned_integer = 1,
124
- heif_channel_datatype_signed_integer = 2,
125
- heif_channel_datatype_floating_point = 3,
126
- heif_channel_datatype_complex_number = 4
127
- } heif_channel_datatype;
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
128
 
129
129
  typedef struct heif_complex32
130
130
  {
@@ -1,6 +1,6 @@
1
1
  /* png.h - header file for PNG reference library
2
2
  *
3
- * libpng version 1.6.57
3
+ * libpng version 1.6.58
4
4
  *
5
5
  * Copyright (c) 2018-2026 Cosmin Truta
6
6
  * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson
@@ -14,7 +14,7 @@
14
14
  * libpng versions 0.89, June 1996, through 0.96, May 1997: Andreas Dilger
15
15
  * libpng versions 0.97, January 1998, through 1.6.35, July 2018:
16
16
  * Glenn Randers-Pehrson
17
- * libpng versions 1.6.36, December 2018, through 1.6.57, April 2026:
17
+ * libpng versions 1.6.36, December 2018, through 1.6.58, April 2026:
18
18
  * Cosmin Truta
19
19
  * See also "Contributing Authors", below.
20
20
  */
@@ -238,7 +238,7 @@
238
238
  * ...
239
239
  * 1.5.30 15 10530 15.so.15.30[.0]
240
240
  * ...
241
- * 1.6.57 16 10657 16.so.16.57[.0]
241
+ * 1.6.58 16 10658 16.so.16.58[.0]
242
242
  *
243
243
  * Henceforth the source version will match the shared-library major and
244
244
  * minor numbers; the shared-library major version number will be used for
@@ -274,7 +274,7 @@
274
274
  */
275
275
 
276
276
  /* Version information for png.h - this should match the version in png.c */
277
- #define PNG_LIBPNG_VER_STRING "1.6.57"
277
+ #define PNG_LIBPNG_VER_STRING "1.6.58"
278
278
  #define PNG_HEADER_VERSION_STRING " libpng version " PNG_LIBPNG_VER_STRING "\n"
279
279
 
280
280
  /* The versions of shared library builds should stay in sync, going forward */
@@ -285,7 +285,7 @@
285
285
  /* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */
286
286
  #define PNG_LIBPNG_VER_MAJOR 1
287
287
  #define PNG_LIBPNG_VER_MINOR 6
288
- #define PNG_LIBPNG_VER_RELEASE 57
288
+ #define PNG_LIBPNG_VER_RELEASE 58
289
289
 
290
290
  /* This should be zero for a public release, or non-zero for a
291
291
  * development version.
@@ -316,7 +316,7 @@
316
316
  * From version 1.0.1 it is:
317
317
  * XXYYZZ, where XX=major, YY=minor, ZZ=release
318
318
  */
319
- #define PNG_LIBPNG_VER 10657 /* 1.6.57 */
319
+ #define PNG_LIBPNG_VER 10658 /* 1.6.58 */
320
320
 
321
321
  /* Library configuration: these options cannot be changed after
322
322
  * the library has been built.
@@ -426,7 +426,7 @@ extern "C" {
426
426
  /* This triggers a compiler error in png.c, if png.c and png.h
427
427
  * do not agree upon the version number.
428
428
  */
429
- typedef char *png_libpng_version_1_6_57;
429
+ typedef char *png_libpng_version_1_6_58;
430
430
 
431
431
  /* Basic control structions. Read libpng-manual.txt or libpng.3 for more info.
432
432
  *
@@ -1,6 +1,6 @@
1
1
  /* pngconf.h - machine-configurable file for libpng
2
2
  *
3
- * libpng version 1.6.57
3
+ * libpng version 1.6.58
4
4
  *
5
5
  * Copyright (c) 2018-2026 Cosmin Truta
6
6
  * Copyright (c) 1998-2002,2004,2006-2016,2018 Glenn Randers-Pehrson
@@ -1,6 +1,6 @@
1
1
  /* pnglibconf.h - library build configuration */
2
2
 
3
- /* libpng version 1.6.57 */
3
+ /* libpng version 1.6.58 */
4
4
 
5
5
  /* Copyright (c) 2018-2026 Cosmin Truta */
6
6
  /* Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson */
@@ -16,17 +16,17 @@
16
16
  /**
17
17
  * the version string like "1.2.3"
18
18
  */
19
- #define LIBXML_DOTTED_VERSION "2.15.2"
19
+ #define LIBXML_DOTTED_VERSION "2.15.3"
20
20
 
21
21
  /**
22
22
  * the version number: 1.2.3 value is 10203
23
23
  */
24
- #define LIBXML_VERSION 21502
24
+ #define LIBXML_VERSION 21503
25
25
 
26
26
  /**
27
27
  * the version number string, 1.2.3 value is "10203"
28
28
  */
29
- #define LIBXML_VERSION_STRING "21502"
29
+ #define LIBXML_VERSION_STRING "21503"
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(21502);
40
+ #define LIBXML_TEST_VERSION xmlCheckVersion(21503);
41
41
 
42
42
  #if 0
43
43
  /**
package/include/png.h CHANGED
@@ -1,6 +1,6 @@
1
1
  /* png.h - header file for PNG reference library
2
2
  *
3
- * libpng version 1.6.57
3
+ * libpng version 1.6.58
4
4
  *
5
5
  * Copyright (c) 2018-2026 Cosmin Truta
6
6
  * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson
@@ -14,7 +14,7 @@
14
14
  * libpng versions 0.89, June 1996, through 0.96, May 1997: Andreas Dilger
15
15
  * libpng versions 0.97, January 1998, through 1.6.35, July 2018:
16
16
  * Glenn Randers-Pehrson
17
- * libpng versions 1.6.36, December 2018, through 1.6.57, April 2026:
17
+ * libpng versions 1.6.36, December 2018, through 1.6.58, April 2026:
18
18
  * Cosmin Truta
19
19
  * See also "Contributing Authors", below.
20
20
  */
@@ -238,7 +238,7 @@
238
238
  * ...
239
239
  * 1.5.30 15 10530 15.so.15.30[.0]
240
240
  * ...
241
- * 1.6.57 16 10657 16.so.16.57[.0]
241
+ * 1.6.58 16 10658 16.so.16.58[.0]
242
242
  *
243
243
  * Henceforth the source version will match the shared-library major and
244
244
  * minor numbers; the shared-library major version number will be used for
@@ -274,7 +274,7 @@
274
274
  */
275
275
 
276
276
  /* Version information for png.h - this should match the version in png.c */
277
- #define PNG_LIBPNG_VER_STRING "1.6.57"
277
+ #define PNG_LIBPNG_VER_STRING "1.6.58"
278
278
  #define PNG_HEADER_VERSION_STRING " libpng version " PNG_LIBPNG_VER_STRING "\n"
279
279
 
280
280
  /* The versions of shared library builds should stay in sync, going forward */
@@ -285,7 +285,7 @@
285
285
  /* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */
286
286
  #define PNG_LIBPNG_VER_MAJOR 1
287
287
  #define PNG_LIBPNG_VER_MINOR 6
288
- #define PNG_LIBPNG_VER_RELEASE 57
288
+ #define PNG_LIBPNG_VER_RELEASE 58
289
289
 
290
290
  /* This should be zero for a public release, or non-zero for a
291
291
  * development version.
@@ -316,7 +316,7 @@
316
316
  * From version 1.0.1 it is:
317
317
  * XXYYZZ, where XX=major, YY=minor, ZZ=release
318
318
  */
319
- #define PNG_LIBPNG_VER 10657 /* 1.6.57 */
319
+ #define PNG_LIBPNG_VER 10658 /* 1.6.58 */
320
320
 
321
321
  /* Library configuration: these options cannot be changed after
322
322
  * the library has been built.
@@ -426,7 +426,7 @@ extern "C" {
426
426
  /* This triggers a compiler error in png.c, if png.c and png.h
427
427
  * do not agree upon the version number.
428
428
  */
429
- typedef char *png_libpng_version_1_6_57;
429
+ typedef char *png_libpng_version_1_6_58;
430
430
 
431
431
  /* Basic control structions. Read libpng-manual.txt or libpng.3 for more info.
432
432
  *
package/include/pngconf.h CHANGED
@@ -1,6 +1,6 @@
1
1
  /* pngconf.h - machine-configurable file for libpng
2
2
  *
3
- * libpng version 1.6.57
3
+ * libpng version 1.6.58
4
4
  *
5
5
  * Copyright (c) 2018-2026 Cosmin Truta
6
6
  * Copyright (c) 1998-2002,2004,2006-2016,2018 Glenn Randers-Pehrson
@@ -1,6 +1,6 @@
1
1
  /* pnglibconf.h - library build configuration */
2
2
 
3
- /* libpng version 1.6.57 */
3
+ /* libpng version 1.6.58 */
4
4
 
5
5
  /* Copyright (c) 2018-2026 Cosmin Truta */
6
6
  /* Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson */
@@ -1,4 +1,3 @@
1
- /* libtiff/tiffconf.h. Generated from tiffconf.h.in by configure. */
2
1
  /*
3
2
  Configuration defines for installed libtiff.
4
3
  This file maintained for backward compatibility. Do not use definitions
@@ -7,7 +6,7 @@
7
6
 
8
7
  /* clang-format off */
9
8
  /* clang-format disabled because CMake scripts are very sensitive to the
10
- * formatting of this file. configure_file variables of type "@VAR@" are
9
+ * formatting of this file. configure_file variables of type "" are
11
10
  * modified by clang-format and won't be substituted.
12
11
  */
13
12
 
@@ -21,28 +20,28 @@
21
20
 
22
21
 
23
22
  /* Signed 16-bit type */
24
- /* #undef TIFF_INT16_T */
23
+ #define TIFF_INT16_T int16_t
25
24
 
26
25
  /* Signed 32-bit type */
27
- /* #undef TIFF_INT32_T */
26
+ #define TIFF_INT32_T int32_t
28
27
 
29
28
  /* Signed 64-bit type */
30
- /* #undef TIFF_INT64_T */
29
+ #define TIFF_INT64_T int64_t
31
30
 
32
31
  /* Signed 8-bit type */
33
- /* #undef TIFF_INT8_T */
32
+ #define TIFF_INT8_T int8_t
34
33
 
35
34
  /* Unsigned 16-bit type */
36
- /* #undef TIFF_UINT16_T */
35
+ #define TIFF_UINT16_T uint16_t
37
36
 
38
37
  /* Unsigned 32-bit type */
39
- /* #undef TIFF_UINT32_T */
38
+ #define TIFF_UINT32_T uint32_t
40
39
 
41
40
  /* Unsigned 64-bit type */
42
- /* #undef TIFF_UINT64_T */
41
+ #define TIFF_UINT64_T uint64_t
43
42
 
44
43
  /* Unsigned 8-bit type */
45
- /* #undef TIFF_UINT8_T */
44
+ #define TIFF_UINT8_T uint8_t
46
45
 
47
46
  /* Signed size type */
48
47
  #define TIFF_SSIZE_T int64_t
package/include/tiffio.h CHANGED
@@ -125,13 +125,13 @@ typedef void *thandle_t; /* client data handle */
125
125
  */
126
126
 
127
127
  /* reference white */
128
- #define D65_X0 (95.0470F)
129
- #define D65_Y0 (100.0F)
130
- #define D65_Z0 (108.8827F)
128
+ #define D65_X0 (95.0470f)
129
+ #define D65_Y0 (100.0f)
130
+ #define D65_Z0 (108.8827f)
131
131
 
132
- #define D50_X0 (96.4250F)
133
- #define D50_Y0 (100.0F)
134
- #define D50_Z0 (82.4680F)
132
+ #define D50_X0 (96.4250f)
133
+ #define D50_Y0 (100.0f)
134
+ #define D50_Z0 (82.4680f)
135
135
 
136
136
  /* Structure for holding information about a display device. */
137
137
 
@@ -254,7 +254,7 @@ struct _TIFFRGBAImage
254
254
  * Macros for extracting components from the
255
255
  * packed ABGR form returned by TIFFReadRGBAImage.
256
256
  */
257
- #define TIFFGetR(abgr) ((abgr)&0xff)
257
+ #define TIFFGetR(abgr) ((abgr) & 0xff)
258
258
  #define TIFFGetG(abgr) (((abgr) >> 8) & 0xff)
259
259
  #define TIFFGetB(abgr) (((abgr) >> 16) & 0xff)
260
260
  #define TIFFGetA(abgr) (((abgr) >> 24) & 0xff)
@@ -269,7 +269,7 @@ struct _TIFFRGBAImage
269
269
  typedef int (*TIFFInitMethod)(TIFF *, int);
270
270
  typedef struct
271
271
  {
272
- char *name;
272
+ const char *name;
273
273
  uint16_t scheme;
274
274
  TIFFInitMethod init;
275
275
  } TIFFCodec;
@@ -659,7 +659,7 @@ extern int TIFFReadRGBAImageOriented(TIFF *, uint32_t, uint32_t, uint32_t *,
659
659
  unsigned short field_bit; /* bit in fieldsset bit vector */
660
660
  unsigned char field_oktochange; /* if true, can change while writing */
661
661
  unsigned char field_passcount; /* if true, pass dir count on set */
662
- char *field_name; /* ASCII name */
662
+ const char *field_name; /* ASCII name */
663
663
  } TIFFFieldInfo;
664
664
 
665
665
  extern int TIFFMergeFieldInfo(TIFF *, const TIFFFieldInfo[], uint32_t);
@@ -5,7 +5,7 @@
5
5
 
6
6
  /* clang-format disabled because FindTIFF.cmake is very sensitive to the
7
7
  * formatting of below line being a single line.
8
- * Furthermore, configure_file variables of type "@VAR@" are
8
+ * Furthermore, configure_file variables of type "" are
9
9
  * modified by clang-format and won't be substituted by CMake.
10
10
  */
11
11
  #define TIFFLIB_VERSION_STR "LIBTIFF, Version 4.7.1\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revizly/sharp-libvips-dev",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
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",