@img/sharp-libvips-dev 1.2.0 → 1.2.2-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/include/ffi.h +3 -3
  2. package/include/harfbuzz/hb-deprecated.h +4 -4
  3. package/include/harfbuzz/hb-font.h +120 -9
  4. package/include/harfbuzz/hb-version.h +3 -3
  5. package/include/hwy/abort.h +2 -19
  6. package/include/hwy/aligned_allocator.h +11 -7
  7. package/include/hwy/auto_tune.h +504 -0
  8. package/include/hwy/base.h +425 -104
  9. package/include/hwy/cache_control.h +16 -0
  10. package/include/hwy/detect_compiler_arch.h +32 -1
  11. package/include/hwy/detect_targets.h +251 -67
  12. package/include/hwy/foreach_target.h +35 -0
  13. package/include/hwy/highway.h +185 -76
  14. package/include/hwy/nanobenchmark.h +1 -19
  15. package/include/hwy/ops/arm_neon-inl.h +969 -458
  16. package/include/hwy/ops/arm_sve-inl.h +1137 -359
  17. package/include/hwy/ops/emu128-inl.h +97 -11
  18. package/include/hwy/ops/generic_ops-inl.h +1222 -34
  19. package/include/hwy/ops/loongarch_lasx-inl.h +4664 -0
  20. package/include/hwy/ops/loongarch_lsx-inl.h +5933 -0
  21. package/include/hwy/ops/ppc_vsx-inl.h +306 -126
  22. package/include/hwy/ops/rvv-inl.h +546 -51
  23. package/include/hwy/ops/scalar-inl.h +77 -22
  24. package/include/hwy/ops/set_macros-inl.h +138 -17
  25. package/include/hwy/ops/shared-inl.h +50 -10
  26. package/include/hwy/ops/wasm_128-inl.h +137 -92
  27. package/include/hwy/ops/x86_128-inl.h +773 -214
  28. package/include/hwy/ops/x86_256-inl.h +712 -255
  29. package/include/hwy/ops/x86_512-inl.h +429 -753
  30. package/include/hwy/ops/x86_avx3-inl.h +501 -0
  31. package/include/hwy/per_target.h +2 -1
  32. package/include/hwy/profiler.h +622 -486
  33. package/include/hwy/targets.h +62 -20
  34. package/include/hwy/timer-inl.h +8 -160
  35. package/include/hwy/timer.h +170 -3
  36. package/include/hwy/x86_cpuid.h +81 -0
  37. package/include/libheif/heif_cxx.h +25 -5
  38. package/include/libheif/heif_regions.h +5 -5
  39. package/include/libheif/heif_version.h +2 -2
  40. package/include/librsvg-2.0/librsvg/rsvg-version.h +2 -2
  41. package/include/libxml2/libxml/xmlversion.h +4 -4
  42. package/include/pango-1.0/pango/pango-enum-types.h +3 -0
  43. package/include/pango-1.0/pango/pango-features.h +3 -3
  44. package/include/pango-1.0/pango/pango-font.h +30 -0
  45. package/include/pango-1.0/pango/pango-version-macros.h +26 -0
  46. package/include/pixman-1/pixman-version.h +2 -2
  47. package/include/webp/decode.h +11 -2
  48. package/include/webp/demux.h +2 -0
  49. package/include/webp/encode.h +2 -0
  50. package/include/webp/mux_types.h +1 -0
  51. package/include/webp/sharpyuv/sharpyuv.h +1 -1
  52. package/include/webp/types.h +2 -2
  53. package/include/zlib.h +3 -3
  54. package/package.json +1 -1
  55. package/versions.json +11 -11
@@ -43,7 +43,7 @@ typedef struct heif_region_item heif_region_item;
43
43
  enum heif_region_type
44
44
  {
45
45
  /**
46
- * Point gemetry.
46
+ * Point geometry.
47
47
  *
48
48
  * The region is represented by a single point.
49
49
  */
@@ -174,7 +174,7 @@ heif_error heif_context_get_region_item(const heif_context* context,
174
174
  * Get the item identifier for a region item.
175
175
  *
176
176
  * @param region_item the region item to query
177
- * @return the region item identifier (or -1 if the region_item is null)
177
+ * @return the region item identifier (or 0 if the region_item is null)
178
178
  */
179
179
  LIBHEIF_API
180
180
  heif_item_id heif_region_item_get_id(heif_region_item* region_item);
@@ -420,7 +420,7 @@ int heif_region_get_polygon_num_points(const heif_region* region);
420
420
  * The points are returned as pairs of X,Y coordinates, in the order X<sub>1</sub>,
421
421
  * Y<sub>1</sub>, X<sub>2</sub>, Y<sub>2</sub>, ..., X<sub>n</sub>, Y<sub>n</sub>.
422
422
  *
423
- * @param region the region to equery, which must be of type #heif_region_type_polygon
423
+ * @param region the region to query, which must be of type #heif_region_type_polygon
424
424
  * @param out_pts_array the array to return the points in, which must have twice as many entries as there are points
425
425
  * in the polygon.
426
426
  * @return heif_error_ok on success, or an error value indicating the problem on failure
@@ -442,7 +442,7 @@ heif_error heif_region_get_polygon_points(const heif_region* region,
442
442
  * The points are returned as pairs of X,Y coordinates, in the order X<sub>1</sub>,
443
443
  * Y<sub>1</sub>, X<sub>2</sub>, Y<sub>2</sub>, ..., X<sub>n</sub>, Y<sub>n</sub>.
444
444
  *
445
- * @param region the region to equery, which must be of type #heif_region_type_polygon
445
+ * @param region the region to query, which must be of type #heif_region_type_polygon
446
446
  * @param image_id the identifier for the image to transform / scale the region to
447
447
  * @param out_pts_array the array to return the points in, which must have twice as many entries as there are points
448
448
  * in the polygon.
@@ -484,7 +484,7 @@ int heif_region_get_polyline_num_points(const heif_region* region);
484
484
  * }
485
485
  * @endcode
486
486
  *
487
- * @param region the region to equery, which must be of type #heif_region_type_polyline
487
+ * @param region the region to query, which must be of type #heif_region_type_polyline
488
488
  * @param out_pts_array the array to return the points in, which must have twice as many entries as there are points
489
489
  * in the polyline.
490
490
  * @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) | (20<<16) | (1<<8) | 0)
31
+ #define LIBHEIF_NUMERIC_VERSION ((1<<24) | (20<<16) | (2<<8) | 0)
32
32
 
33
33
  /* Version string */
34
- #define LIBHEIF_VERSION "1.20.1"
34
+ #define LIBHEIF_VERSION "1.20.2"
35
35
 
36
36
  #define LIBHEIF_PLUGIN_DIRECTORY "/target/lib/libheif"
37
37
 
@@ -6,8 +6,8 @@
6
6
  #define RSVG_VERSION_H
7
7
 
8
8
  #define LIBRSVG_MAJOR_VERSION (2)
9
- #define LIBRSVG_MINOR_VERSION (60)
9
+ #define LIBRSVG_MINOR_VERSION (61)
10
10
  #define LIBRSVG_MICRO_VERSION (0)
11
- #define LIBRSVG_VERSION "2.60.0"
11
+ #define LIBRSVG_VERSION "2.61.0"
12
12
 
13
13
  #endif
@@ -15,21 +15,21 @@
15
15
  *
16
16
  * the version string like "1.2.3"
17
17
  */
18
- #define LIBXML_DOTTED_VERSION "2.14.4"
18
+ #define LIBXML_DOTTED_VERSION "2.14.5"
19
19
 
20
20
  /**
21
21
  * LIBXML_VERSION:
22
22
  *
23
23
  * the version number: 1.2.3 value is 10203
24
24
  */
25
- #define LIBXML_VERSION 21404
25
+ #define LIBXML_VERSION 21405
26
26
 
27
27
  /**
28
28
  * LIBXML_VERSION_STRING:
29
29
  *
30
30
  * the version number string, 1.2.3 value is "10203"
31
31
  */
32
- #define LIBXML_VERSION_STRING "21404"
32
+ #define LIBXML_VERSION_STRING "21405"
33
33
 
34
34
  /**
35
35
  * LIBXML_VERSION_EXTRA:
@@ -44,7 +44,7 @@
44
44
  * Macro to check that the libxml version in use is compatible with
45
45
  * the version the software has been compiled against
46
46
  */
47
- #define LIBXML_TEST_VERSION xmlCheckVersion(21404);
47
+ #define LIBXML_TEST_VERSION xmlCheckVersion(21405);
48
48
 
49
49
  /**
50
50
  * LIBXML_THREAD_ENABLED:
@@ -64,6 +64,9 @@ GType pango_stretch_get_type (void) G_GNUC_CONST;
64
64
  PANGO_AVAILABLE_IN_ALL
65
65
  GType pango_font_mask_get_type (void) G_GNUC_CONST;
66
66
  #define PANGO_TYPE_FONT_MASK (pango_font_mask_get_type ())
67
+ PANGO_AVAILABLE_IN_ALL
68
+ GType pango_font_color_get_type (void) G_GNUC_CONST;
69
+ #define PANGO_TYPE_FONT_COLOR (pango_font_color_get_type ())
67
70
 
68
71
  /* enumerations from "pango-glyph.h" */
69
72
  PANGO_AVAILABLE_IN_ALL
@@ -2,9 +2,9 @@
2
2
  #define PANGO_FEATURES_H
3
3
 
4
4
  #define PANGO_VERSION_MAJOR 1
5
- #define PANGO_VERSION_MINOR 56
6
- #define PANGO_VERSION_MICRO 4
5
+ #define PANGO_VERSION_MINOR 57
6
+ #define PANGO_VERSION_MICRO 0
7
7
 
8
- #define PANGO_VERSION_STRING "1.56.4"
8
+ #define PANGO_VERSION_STRING "1.57.0"
9
9
 
10
10
  #endif /* PANGO_FEATURES_H */
@@ -202,6 +202,13 @@ typedef enum {
202
202
  *
203
203
  * Since: 1.56
204
204
  */
205
+ /**
206
+ * PANGO_FONT_MASK_COLOR:
207
+ *
208
+ * Font color is specified.
209
+ *
210
+ * Since: 1.57
211
+ */
205
212
  typedef enum {
206
213
  PANGO_FONT_MASK_FAMILY = 1 << 0,
207
214
  PANGO_FONT_MASK_STYLE = 1 << 1,
@@ -212,6 +219,7 @@ typedef enum {
212
219
  PANGO_FONT_MASK_GRAVITY = 1 << 6,
213
220
  PANGO_FONT_MASK_VARIATIONS = 1 << 7,
214
221
  PANGO_FONT_MASK_FEATURES = 1 << 8,
222
+ PANGO_FONT_MASK_COLOR = 1 << 9,
215
223
  } PangoFontMask;
216
224
 
217
225
  /* CSS scale factors (1.2 factor between each size) */
@@ -258,6 +266,22 @@ typedef enum {
258
266
  #define PANGO_SCALE_X_LARGE ((double)1.44)
259
267
  #define PANGO_SCALE_XX_LARGE ((double)1.728)
260
268
 
269
+ /**
270
+ * PangoFontColor:
271
+ * @PANGO_FONT_COLOR_FORBIDDEN: The font should not have color glyphs
272
+ * @PANGO_FONT_COLOR_REQUIRED: The font should have color glyphs
273
+ * @PANGO_FONT_COLOR_DONT_CARE: The font may or may not use color
274
+ *
275
+ * Specifies whether a font should or should not have color glyphs.
276
+ *
277
+ * Since: 1.57
278
+ */
279
+ typedef enum {
280
+ PANGO_FONT_COLOR_FORBIDDEN,
281
+ PANGO_FONT_COLOR_REQUIRED,
282
+ PANGO_FONT_COLOR_DONT_CARE,
283
+ } PangoFontColor;
284
+
261
285
  /*
262
286
  * PangoFontDescription
263
287
  */
@@ -345,6 +369,12 @@ void pango_font_description_set_features (PangoFontDescri
345
369
  PANGO_AVAILABLE_IN_1_42
346
370
  const char *pango_font_description_get_features (const PangoFontDescription *desc) G_GNUC_PURE;
347
371
 
372
+ PANGO_AVAILABLE_IN_1_57
373
+ void pango_font_description_set_color (PangoFontDescription *desc,
374
+ PangoFontColor color);
375
+ PANGO_AVAILABLE_IN_1_57
376
+ PangoFontColor pango_font_description_get_color (const PangoFontDescription *desc);
377
+
348
378
  PANGO_AVAILABLE_IN_ALL
349
379
  PangoFontMask pango_font_description_get_set_fields (const PangoFontDescription *desc) G_GNUC_PURE;
350
380
  PANGO_AVAILABLE_IN_ALL
@@ -322,6 +322,16 @@
322
322
  */
323
323
  #define PANGO_VERSION_1_56 (G_ENCODE_VERSION (1, 56))
324
324
 
325
+ /**
326
+ * PANGO_VERSION_1_57:
327
+ *
328
+ * A macro that evaluates to the 1.57 version of Pango, in a format
329
+ * that can be used by the C pre-processor.
330
+ *
331
+ * Since: 1.57
332
+ */
333
+ #define PANGO_VERSION_1_57 (G_ENCODE_VERSION (1, 57))
334
+
325
335
  /* evaluates to the current stable version; for development cycles,
326
336
  * this means the next stable target
327
337
  */
@@ -829,5 +839,21 @@
829
839
  # define PANGO_AVAILABLE_ENUMERATOR_IN_1_56
830
840
  #endif
831
841
 
842
+ #if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_57
843
+ # define PANGO_DEPRECATED_IN_1_57 PANGO_DEPRECATED
844
+ # define PANGO_DEPRECATED_IN_1_57_FOR(f) PANGO_DEPRECATED_FOR(f)
845
+ #else
846
+ # define PANGO_DEPRECATED_IN_1_57 _PANGO_EXTERN
847
+ # define PANGO_DEPRECATED_IN_1_57_FOR(f) _PANGO_EXTERN
848
+ #endif
849
+
850
+ #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_57
851
+ # define PANGO_AVAILABLE_IN_1_57 PANGO_UNAVAILABLE(1, 57)
852
+ # define PANGO_AVAILABLE_ENUMERATOR_IN_1_57 PANGO_UNAVAILABLE (1, 57)
853
+ #else
854
+ # define PANGO_AVAILABLE_IN_1_57 _PANGO_EXTERN
855
+ # define PANGO_AVAILABLE_ENUMERATOR_IN_1_57
856
+ #endif
857
+
832
858
  #endif /* __PANGO_VERSION_H__ */
833
859
 
@@ -33,9 +33,9 @@
33
33
 
34
34
  #define PIXMAN_VERSION_MAJOR 0
35
35
  #define PIXMAN_VERSION_MINOR 46
36
- #define PIXMAN_VERSION_MICRO 2
36
+ #define PIXMAN_VERSION_MICRO 4
37
37
 
38
- #define PIXMAN_VERSION_STRING "0.46.2"
38
+ #define PIXMAN_VERSION_STRING "0.46.4"
39
39
 
40
40
  #define PIXMAN_VERSION_ENCODE(major, minor, micro) ( \
41
41
  ((major) * 10000) \
@@ -14,13 +14,15 @@
14
14
  #ifndef WEBP_WEBP_DECODE_H_
15
15
  #define WEBP_WEBP_DECODE_H_
16
16
 
17
+ #include <stddef.h>
18
+
17
19
  #include "./types.h"
18
20
 
19
21
  #ifdef __cplusplus
20
22
  extern "C" {
21
23
  #endif
22
24
 
23
- #define WEBP_DECODER_ABI_VERSION 0x0209 // MAJOR(8b) + MINOR(8b)
25
+ #define WEBP_DECODER_ABI_VERSION 0x0210 // MAJOR(8b) + MINOR(8b)
24
26
 
25
27
  // Note: forward declaring enumerations is not allowed in (strict) C and C++,
26
28
  // the types are left here for reference.
@@ -451,7 +453,9 @@ struct WebPDecoderOptions {
451
453
  // Will be snapped to even values.
452
454
  int crop_width, crop_height; // dimension of the cropping area
453
455
  int use_scaling; // if true, scaling is applied _afterward_
454
- int scaled_width, scaled_height; // final resolution
456
+ int scaled_width, scaled_height; // final resolution. if one is 0, it is
457
+ // guessed from the other one to keep the
458
+ // original ratio.
455
459
  int use_threads; // if true, use multi-threaded decoding
456
460
  int dithering_strength; // dithering strength (0=Off, 100=full)
457
461
  int flip; // if true, flip output vertically
@@ -479,6 +483,11 @@ WEBP_NODISCARD static WEBP_INLINE int WebPInitDecoderConfig(
479
483
  return WebPInitDecoderConfigInternal(config, WEBP_DECODER_ABI_VERSION);
480
484
  }
481
485
 
486
+ // Returns true if 'config' is non-NULL and all configuration parameters are
487
+ // within their valid ranges.
488
+ WEBP_NODISCARD WEBP_EXTERN int WebPValidateDecoderConfig(
489
+ const WebPDecoderConfig* config);
490
+
482
491
  // Instantiate a new incremental decoder object with the requested
483
492
  // configuration. The bitstream can be passed using 'data' and 'data_size'
484
493
  // parameter, in which case the features will be parsed and stored into
@@ -48,6 +48,8 @@
48
48
  #ifndef WEBP_WEBP_DEMUX_H_
49
49
  #define WEBP_WEBP_DEMUX_H_
50
50
 
51
+ #include <stddef.h>
52
+
51
53
  #include "./decode.h" // for WEBP_CSP_MODE
52
54
  #include "./mux_types.h"
53
55
  #include "./types.h"
@@ -14,6 +14,8 @@
14
14
  #ifndef WEBP_WEBP_ENCODE_H_
15
15
  #define WEBP_WEBP_ENCODE_H_
16
16
 
17
+ #include <stddef.h>
18
+
17
19
  #include "./types.h"
18
20
 
19
21
  #ifdef __cplusplus
@@ -15,6 +15,7 @@
15
15
  #define WEBP_WEBP_MUX_TYPES_H_
16
16
 
17
17
  #include <string.h> // memset()
18
+
18
19
  #include "./types.h"
19
20
 
20
21
  #ifdef __cplusplus
@@ -52,7 +52,7 @@ extern "C" {
52
52
  // SharpYUV API version following the convention from semver.org
53
53
  #define SHARPYUV_VERSION_MAJOR 0
54
54
  #define SHARPYUV_VERSION_MINOR 4
55
- #define SHARPYUV_VERSION_PATCH 1
55
+ #define SHARPYUV_VERSION_PATCH 2
56
56
  // Version as a uint32_t. The major number is the high 8 bits.
57
57
  // The minor number is the middle 8 bits. The patch number is the low 16 bits.
58
58
  #define SHARPYUV_MAKE_VERSION(MAJOR, MINOR, PATCH) \
@@ -14,10 +14,10 @@
14
14
  #ifndef WEBP_WEBP_TYPES_H_
15
15
  #define WEBP_WEBP_TYPES_H_
16
16
 
17
- #include <stddef.h> // for size_t
17
+ #include <stddef.h> // IWYU pragma: export for size_t
18
18
 
19
19
  #ifndef _MSC_VER
20
- #include <inttypes.h>
20
+ #include <inttypes.h> // IWYU pragma: export
21
21
  #if defined(__cplusplus) || !defined(__STRICT_ANSI__) || \
22
22
  (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
23
23
  #define WEBP_INLINE inline
package/include/zlib.h CHANGED
@@ -49,11 +49,11 @@
49
49
  extern "C" {
50
50
  #endif
51
51
 
52
- #define ZLIBNG_VERSION "2.2.4"
53
- #define ZLIBNG_VERNUM 0x020204F0L /* MMNNRRSM: major minor revision status modified */
52
+ #define ZLIBNG_VERSION "2.2.5"
53
+ #define ZLIBNG_VERNUM 0x020205F0L /* MMNNRRSM: major minor revision status modified */
54
54
  #define ZLIBNG_VER_MAJOR 2
55
55
  #define ZLIBNG_VER_MINOR 2
56
- #define ZLIBNG_VER_REVISION 4
56
+ #define ZLIBNG_VER_REVISION 5
57
57
  #define ZLIBNG_VER_STATUS F /* 0=devel, 1-E=beta, F=Release (DEPRECATED) */
58
58
  #define ZLIBNG_VER_STATUSH 0xF /* Hex values: 0=devel, 1-E=beta, F=Release */
59
59
  #define ZLIBNG_VER_MODIFIED 0 /* non-zero if modified externally from zlib-ng */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@img/sharp-libvips-dev",
3
- "version": "1.2.0",
3
+ "version": "1.2.2-rc.1",
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
@@ -5,26 +5,26 @@
5
5
  "cgif": "0.5.0",
6
6
  "exif": "0.6.25",
7
7
  "expat": "2.7.1",
8
- "ffi": "3.5.1",
8
+ "ffi": "3.5.2",
9
9
  "fontconfig": "2.17.1",
10
10
  "freetype": "2.13.3",
11
11
  "fribidi": "1.0.16",
12
- "glib": "2.85.1",
13
- "harfbuzz": "11.2.1",
14
- "heif": "1.20.1",
15
- "highway": "1.2.0",
12
+ "glib": "2.85.4",
13
+ "harfbuzz": "11.4.5",
14
+ "heif": "1.20.2",
15
+ "highway": "1.3.0",
16
16
  "imagequant": "2.4.1",
17
17
  "lcms": "2.17",
18
18
  "mozjpeg": "4.1.5",
19
- "pango": "1.56.4",
20
- "pixman": "0.46.2",
19
+ "pango": "1.57.0",
20
+ "pixman": "0.46.4",
21
21
  "png": "1.6.50",
22
22
  "proxy-libintl": "0.4",
23
- "rsvg": "2.60.0",
23
+ "rsvg": "2.61.0",
24
24
  "spng": "0.7.4",
25
25
  "tiff": "4.7.0",
26
26
  "vips": "8.17.1",
27
- "webp": "1.5.0",
28
- "xml2": "2.14.4",
29
- "zlib-ng": "2.2.4"
27
+ "webp": "1.6.0",
28
+ "xml2": "2.14.5",
29
+ "zlib-ng": "2.2.5"
30
30
  }