@revizly/sharp-libvips-dev 1.0.8 → 1.0.10

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 (145) hide show
  1. package/cplusplus/VImage.cpp +18 -2
  2. package/cplusplus/vips-operators.cpp +79 -3
  3. package/include/aom/aom.h +1 -1
  4. package/include/aom/aom_codec.h +22 -5
  5. package/include/aom/aom_decoder.h +1 -1
  6. package/include/aom/aom_encoder.h +5 -1
  7. package/include/aom/aom_external_partition.h +1 -1
  8. package/include/aom/aom_frame_buffer.h +1 -1
  9. package/include/aom/aom_image.h +4 -2
  10. package/include/aom/aom_integer.h +1 -9
  11. package/include/aom/aomcx.h +99 -16
  12. package/include/aom/aomdx.h +1 -1
  13. package/include/archive.h +2 -2
  14. package/include/archive_entry.h +7 -1
  15. package/include/cairo/cairo-version.h +1 -1
  16. package/include/expat.h +4 -2
  17. package/include/expat_config.h +3 -6
  18. package/include/ffi.h +1 -1
  19. package/include/fontconfig/fontconfig.h +22 -2
  20. package/include/fribidi/fribidi-config.h +2 -2
  21. package/include/fribidi/fribidi-unicode-version.h +3 -3
  22. package/include/gio-unix-2.0/gio/gdesktopappinfo.h +1 -1
  23. package/include/gio-unix-2.0/gio/gunixmounts.h +105 -24
  24. package/include/glib-2.0/gio/gdbusconnection.h +65 -5
  25. package/include/glib-2.0/gio/gdebugcontroller.h +1 -1
  26. package/include/glib-2.0/gio/gfile.h +4 -0
  27. package/include/glib-2.0/gio/gio-visibility.h +34 -0
  28. package/include/glib-2.0/gio/gioenums.h +16 -5
  29. package/include/glib-2.0/gio/gioenumtypes.h +3 -3
  30. package/include/glib-2.0/gio/giotypes.h +4 -4
  31. package/include/glib-2.0/gio/gmemorymonitor.h +1 -1
  32. package/include/glib-2.0/gio/gnetworkmonitor.h +1 -1
  33. package/include/glib-2.0/gio/gpowerprofilemonitor.h +1 -1
  34. package/include/glib-2.0/gio/gproxy.h +1 -1
  35. package/include/glib-2.0/gio/gproxyresolver.h +1 -1
  36. package/include/glib-2.0/gio/gresource.h +6 -0
  37. package/include/glib-2.0/gio/gtlsbackend.h +1 -1
  38. package/include/glib-2.0/gio/gvfs.h +3 -3
  39. package/include/glib-2.0/gio/gvolumemonitor.h +1 -1
  40. package/include/glib-2.0/girepository/gi-visibility.h +34 -0
  41. package/include/glib-2.0/girepository/gicallableinfo.h +12 -0
  42. package/include/glib-2.0/girepository/gitypes.h +1 -0
  43. package/include/glib-2.0/glib/garray.h +1 -1
  44. package/include/glib-2.0/glib/gerror.h +1 -1
  45. package/include/glib-2.0/glib/glib-visibility.h +34 -0
  46. package/include/glib-2.0/glib/gmacros.h +3 -3
  47. package/include/glib-2.0/glib/gmain.h +131 -48
  48. package/include/glib-2.0/glib/gmem.h +3 -0
  49. package/include/glib-2.0/glib/goption.h +58 -36
  50. package/include/glib-2.0/glib/gqueue.h +1 -1
  51. package/include/glib-2.0/glib/grefstring.h +4 -0
  52. package/include/glib-2.0/glib/gstdio.h +65 -0
  53. package/include/glib-2.0/glib/gstrfuncs.h +4 -0
  54. package/include/glib-2.0/glib/gstring.h +4 -0
  55. package/include/glib-2.0/glib/gtestutils.h +65 -33
  56. package/include/glib-2.0/glib/gthread.h +2 -0
  57. package/include/glib-2.0/glib/gtypes.h +1 -1
  58. package/include/glib-2.0/glib/gunicode.h +21 -5
  59. package/include/glib-2.0/glib/gvariant.h +50 -13
  60. package/include/glib-2.0/glib/gvarianttype.h +62 -46
  61. package/include/glib-2.0/glib/gversionmacros.h +9 -0
  62. package/include/glib-2.0/glib-unix.h +21 -0
  63. package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
  64. package/include/glib-2.0/gobject/glib-enumtypes.h +1 -1
  65. package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
  66. package/include/glib-2.0/gobject/gobjectnotifyqueue.c +3 -3
  67. package/include/glib-2.0/gobject/gparam.h +4 -2
  68. package/include/glib-2.0/gobject/gsignal.h +22 -7
  69. package/include/glib-2.0/gobject/gtype.h +10 -4
  70. package/include/harfbuzz/hb-buffer.h +7 -0
  71. package/include/harfbuzz/hb-common.h +18 -0
  72. package/include/harfbuzz/hb-draw.h +1 -1
  73. package/include/harfbuzz/hb-face.h +43 -2
  74. package/include/harfbuzz/hb-ft.h +3 -0
  75. package/include/harfbuzz/hb-ot-shape.h +6 -0
  76. package/include/harfbuzz/hb-paint.h +1 -1
  77. package/include/harfbuzz/hb-shape.h +2 -0
  78. package/include/harfbuzz/hb-subset-serialize.h +83 -0
  79. package/include/harfbuzz/hb-subset.h +12 -0
  80. package/include/harfbuzz/hb-version.h +3 -3
  81. package/include/lcms2.h +7 -5
  82. package/include/lcms2_plugin.h +1 -1
  83. package/include/libexif/exif-byte-order.h +2 -0
  84. package/include/libexif/exif-content.h +2 -0
  85. package/include/libexif/exif-data-type.h +2 -0
  86. package/include/libexif/exif-data.h +3 -2
  87. package/include/libexif/exif-entry.h +2 -0
  88. package/include/libexif/exif-format.h +2 -0
  89. package/include/libexif/exif-ifd.h +2 -0
  90. package/include/libexif/exif-loader.h +2 -0
  91. package/include/libexif/exif-log.h +2 -0
  92. package/include/libexif/exif-mem.h +2 -0
  93. package/include/libexif/exif-mnote-data.h +2 -0
  94. package/include/libexif/exif-tag.h +2 -0
  95. package/include/libexif/exif-utils.h +2 -0
  96. package/include/libheif/heif.h +322 -26
  97. package/include/libheif/heif_properties.h +24 -4
  98. package/include/libheif/heif_version.h +2 -2
  99. package/include/libpng16/png.h +126 -18
  100. package/include/libpng16/pngconf.h +5 -6
  101. package/include/libpng16/pnglibconf.h +11 -2
  102. package/include/librsvg-2.0/librsvg/rsvg-features.h +1 -1
  103. package/include/librsvg-2.0/librsvg/rsvg-pixbuf.h +1 -1
  104. package/include/librsvg-2.0/librsvg/rsvg-version.h +3 -3
  105. package/include/librsvg-2.0/librsvg/rsvg.h +3 -1
  106. package/include/libxml2/libxml/xmlexports.h +2 -2
  107. package/include/libxml2/libxml/xmlversion.h +4 -4
  108. package/include/pango-1.0/pango/pango-features.h +3 -3
  109. package/include/pango-1.0/pango/pango-font.h +31 -2
  110. package/include/pango-1.0/pango/pango-fontmap.h +4 -0
  111. package/include/pango-1.0/pango/pango-layout.h +10 -1
  112. package/include/pango-1.0/pango/pango-version-macros.h +52 -0
  113. package/include/pango-1.0/pango/pangofc-fontmap.h +6 -0
  114. package/include/pixman-1/pixman-version.h +3 -3
  115. package/include/png.h +126 -18
  116. package/include/pngconf.h +5 -6
  117. package/include/pnglibconf.h +11 -2
  118. package/include/tiffio.h +11 -11
  119. package/include/tiffvers.h +4 -4
  120. package/include/vips/VImage8.h +170 -60
  121. package/include/vips/arithmetic.h +9 -0
  122. package/include/vips/basic.h +8 -4
  123. package/include/vips/buf.h +0 -2
  124. package/include/vips/connection.h +0 -2
  125. package/include/vips/conversion.h +0 -3
  126. package/include/vips/create.h +11 -0
  127. package/include/vips/enumtypes.h +3 -3
  128. package/include/vips/foreign.h +4 -18
  129. package/include/vips/header.h +7 -0
  130. package/include/vips/image.h +7 -2
  131. package/include/vips/interpolate.h +2 -3
  132. package/include/vips/memory.h +19 -1
  133. package/include/vips/operation.h +2 -7
  134. package/include/vips/private.h +7 -0
  135. package/include/vips/util.h +6 -15
  136. package/include/vips/version.h +8 -8
  137. package/include/vips/vips.h +11 -5
  138. package/include/vips/vips8 +19 -12
  139. package/include/webp/encode.h +5 -4
  140. package/include/webp/sharpyuv/sharpyuv.h +14 -5
  141. package/include/webp/sharpyuv/sharpyuv_csp.h +5 -0
  142. package/include/webp/types.h +2 -2
  143. package/include/zlib.h +4 -4
  144. package/package.json +1 -1
  145. package/versions.json +22 -22
@@ -234,6 +234,15 @@ VIPS_API
234
234
  int vips_sign(VipsImage *in, VipsImage **out, ...)
235
235
  G_GNUC_NULL_TERMINATED;
236
236
  VIPS_API
237
+ int vips_clamp(VipsImage *in, VipsImage **out, ...)
238
+ G_GNUC_NULL_TERMINATED;
239
+ VIPS_API
240
+ int vips_maxpair(VipsImage *left, VipsImage *right, VipsImage **out, ...)
241
+ G_GNUC_NULL_TERMINATED;
242
+ VIPS_API
243
+ int vips_minpair(VipsImage *left, VipsImage *right, VipsImage **out, ...)
244
+ G_GNUC_NULL_TERMINATED;
245
+ VIPS_API
237
246
  int vips_round(VipsImage *in, VipsImage **out, VipsOperationRound round, ...)
238
247
  G_GNUC_NULL_TERMINATED;
239
248
  VIPS_API
@@ -36,12 +36,12 @@
36
36
 
37
37
  /* Defined in config.h
38
38
  */
39
- #ifdef _VIPS_PUBLIC
40
- #define VIPS_API _VIPS_PUBLIC extern
41
- #else
42
- #define VIPS_API extern
39
+ #ifndef _VIPS_PUBLIC
40
+ #define _VIPS_PUBLIC
43
41
  #endif
44
42
 
43
+ #define VIPS_API _VIPS_PUBLIC extern
44
+
45
45
  /* VIPS_DISABLE_DEPRECATION_WARNINGS:
46
46
  *
47
47
  * Disable deprecation warnings from VIPS API.
@@ -105,6 +105,10 @@ struct _VipsSource;
105
105
  typedef struct _VipsSource VipsSource;
106
106
  struct _VipsTarget;
107
107
  typedef struct _VipsTarget VipsTarget;
108
+ struct _VipsInterpolate;
109
+ typedef struct _VipsInterpolate VipsInterpolate;
110
+ struct _VipsOperation;
111
+ typedef struct _VipsOperation VipsOperation;
108
112
 
109
113
  #ifdef __cplusplus
110
114
  }
@@ -89,8 +89,6 @@ gboolean vips_buf_vappendf(VipsBuf *buf, const char *fmt, va_list ap);
89
89
  VIPS_API
90
90
  gboolean vips_buf_appendc(VipsBuf *buf, char ch);
91
91
  VIPS_API
92
- gboolean vips_buf_appendsc(VipsBuf *buf, gboolean quote, const char *str);
93
- VIPS_API
94
92
  gboolean vips_buf_appendgv(VipsBuf *buf, GValue *value);
95
93
  VIPS_API
96
94
  gboolean vips_buf_append_size(VipsBuf *buf, size_t n);
@@ -501,8 +501,6 @@ VIPS_API
501
501
  gint64 vips_target_seek(VipsTarget *target, gint64 offset, int whence);
502
502
  VIPS_API
503
503
  int vips_target_end(VipsTarget *target);
504
- VIPS_DEPRECATED_FOR(vips_target_end)
505
- void vips_target_finish(VipsTarget *target);
506
504
  VIPS_API
507
505
  unsigned char *vips_target_steal(VipsTarget *target, size_t *length);
508
506
  VIPS_API
@@ -147,9 +147,6 @@ VIPS_API
147
147
  int vips_sequential(VipsImage *in, VipsImage **out, ...)
148
148
  G_GNUC_NULL_TERMINATED;
149
149
  VIPS_API
150
- int vips_cache(VipsImage *in, VipsImage **out, ...)
151
- G_GNUC_NULL_TERMINATED;
152
- VIPS_API
153
150
  int vips_copy_file(VipsImage *in, VipsImage **out, ...)
154
151
  G_GNUC_NULL_TERMINATED;
155
152
 
@@ -46,6 +46,14 @@ typedef enum {
46
46
  VIPS_TEXT_WRAP_LAST
47
47
  } VipsTextWrap;
48
48
 
49
+ typedef enum {
50
+ VIPS_SDF_SHAPE_CIRCLE = 0,
51
+ VIPS_SDF_SHAPE_BOX,
52
+ VIPS_SDF_SHAPE_ROUNDED_BOX,
53
+ VIPS_SDF_SHAPE_LINE,
54
+ VIPS_SDF_SHAPE_LAST
55
+ } VipsSdfShape;
56
+
49
57
  VIPS_API
50
58
  int vips_black(VipsImage **out, int width, int height, ...)
51
59
  G_GNUC_NULL_TERMINATED;
@@ -79,6 +87,9 @@ int vips_sines(VipsImage **out, int width, int height, ...)
79
87
  VIPS_API
80
88
  int vips_zone(VipsImage **out, int width, int height, ...)
81
89
  G_GNUC_NULL_TERMINATED;
90
+ VIPS_API
91
+ int vips_sdf(VipsImage **out, int width, int height, VipsSdfShape shape, ...)
92
+ G_GNUC_NULL_TERMINATED;
82
93
 
83
94
  VIPS_API
84
95
  int vips_identity(VipsImage **out, ...)
@@ -74,6 +74,9 @@ GType vips_combine_get_type(void) G_GNUC_CONST;
74
74
  VIPS_API
75
75
  GType vips_text_wrap_get_type(void) G_GNUC_CONST;
76
76
  #define VIPS_TYPE_TEXT_WRAP (vips_text_wrap_get_type())
77
+ VIPS_API
78
+ GType vips_sdf_shape_get_type(void) G_GNUC_CONST;
79
+ #define VIPS_TYPE_SDF_SHAPE (vips_sdf_shape_get_type())
77
80
  /* enumerations from "draw.h" */
78
81
  VIPS_API
79
82
  GType vips_combine_mode_get_type(void) G_GNUC_CONST;
@@ -95,9 +98,6 @@ VIPS_API
95
98
  GType vips_foreign_subsample_get_type(void) G_GNUC_CONST;
96
99
  #define VIPS_TYPE_FOREIGN_SUBSAMPLE (vips_foreign_subsample_get_type())
97
100
  VIPS_API
98
- GType vips_foreign_jpeg_subsample_get_type(void) G_GNUC_CONST;
99
- #define VIPS_TYPE_FOREIGN_JPEG_SUBSAMPLE (vips_foreign_jpeg_subsample_get_type())
100
- VIPS_API
101
101
  GType vips_foreign_webp_preset_get_type(void) G_GNUC_CONST;
102
102
  #define VIPS_TYPE_FOREIGN_WEBP_PRESET (vips_foreign_webp_preset_get_type())
103
103
  VIPS_API
@@ -474,23 +474,6 @@ typedef enum {
474
474
  VIPS_FOREIGN_SUBSAMPLE_LAST
475
475
  } VipsForeignSubsample;
476
476
 
477
- /**
478
- * VipsForeignJpegSubsample:
479
- * @VIPS_FOREIGN_JPEG_SUBSAMPLE_AUTO: default preset
480
- * @VIPS_FOREIGN_JPEG_SUBSAMPLE_ON: always perform subsampling
481
- * @VIPS_FOREIGN_JPEG_SUBSAMPLE_OFF: never perform subsampling
482
- *
483
- * Set jpeg subsampling mode.
484
- *
485
- * DEPRECATED: use #VipsForeignSubsample
486
- */
487
- typedef enum {
488
- VIPS_FOREIGN_JPEG_SUBSAMPLE_AUTO,
489
- VIPS_FOREIGN_JPEG_SUBSAMPLE_ON,
490
- VIPS_FOREIGN_JPEG_SUBSAMPLE_OFF,
491
- VIPS_FOREIGN_JPEG_SUBSAMPLE_LAST
492
- } VipsForeignJpegSubsample;
493
-
494
477
  VIPS_API
495
478
  int vips_jpegload(const char *filename, VipsImage **out, ...)
496
479
  G_GNUC_NULL_TERMINATED;
@@ -664,7 +647,10 @@ VIPS_API
664
647
  int vips_rawsave(VipsImage *in, const char *filename, ...)
665
648
  G_GNUC_NULL_TERMINATED;
666
649
  VIPS_API
667
- int vips_rawsave_fd(VipsImage *in, int fd, ...)
650
+ int vips_rawsave_buffer(VipsImage *in, void **buf, size_t *len, ...)
651
+ G_GNUC_NULL_TERMINATED;
652
+ VIPS_API
653
+ int vips_rawsave_target(VipsImage *in, VipsTarget *target, ...)
668
654
  G_GNUC_NULL_TERMINATED;
669
655
 
670
656
  VIPS_API
@@ -99,6 +99,13 @@ extern "C" {
99
99
  */
100
100
  #define VIPS_META_BITS_PER_SAMPLE "bits-per-sample"
101
101
 
102
+ /**
103
+ * VIPS_META_PALETTE:
104
+ *
105
+ * Does this image have a palette?
106
+ */
107
+ #define VIPS_META_PALETTE "palette"
108
+
102
109
  /**
103
110
  * VIPS_META_LOADER:
104
111
  *
@@ -59,9 +59,14 @@ extern "C" {
59
59
  * for width/height so we could go up to 2bn, but it's good to have a lower
60
60
  * value set so we can see crazy numbers early.
61
61
  *
62
- * This was 1m for a while, but someone found a use for a 4m wide image.
62
+ * This can be overridden with the `VIPS_MAX_COORD` env var, or the
63
+ * `--vips-max-coord` CLI arg.
63
64
  */
64
- #define VIPS_MAX_COORD (10000000)
65
+ #define VIPS_DEFAULT_MAX_COORD (100000000)
66
+
67
+ /* Fetch the overridden value.
68
+ */
69
+ #define VIPS_MAX_COORD (vips_max_coord_get())
65
70
 
66
71
  typedef enum {
67
72
  VIPS_DEMAND_STYLE_ERROR = -1,
@@ -57,10 +57,9 @@ extern "C" {
57
57
  (G_TYPE_INSTANCE_GET_CLASS((obj), \
58
58
  VIPS_TYPE_INTERPOLATE, VipsInterpolateClass))
59
59
 
60
- typedef struct _VipsInterpolate {
60
+ struct _VipsInterpolate {
61
61
  VipsObject parent_object;
62
-
63
- } VipsInterpolate;
62
+ };
64
63
 
65
64
  /* An interpolation function. This is a class method, but we have a lookup
66
65
  * function for it to speed up dispatch. Write to the memory at "out",
@@ -53,7 +53,7 @@ extern "C" {
53
53
  G_STMT_START \
54
54
  { \
55
55
  const char *sst = (V); \
56
- \
56
+ \
57
57
  if ((S) != sst) { \
58
58
  if (!(S) || !sst || strcmp((S), sst) != 0) { \
59
59
  VIPS_FREE(S); \
@@ -71,6 +71,24 @@ extern "C" {
71
71
  #define VIPS_ARRAY(OBJ, N, T) \
72
72
  ((T *) VIPS_MALLOC(OBJ, (N) * sizeof(T)))
73
73
 
74
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC(VipsImage, g_object_unref)
75
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC(VipsObject, g_object_unref)
76
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC(VipsRegion, g_object_unref)
77
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC(VipsConnection, g_object_unref)
78
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC(VipsSource, g_object_unref)
79
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC(VipsSourceCustom, g_object_unref)
80
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC(VipsGInputStream, g_object_unref)
81
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC(VipsSourceGInputStream, g_object_unref)
82
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC(VipsTarget, g_object_unref)
83
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC(VipsTargetCustom, g_object_unref)
84
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC(VipsSbuf, g_object_unref)
85
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC(VipsInterpolate, g_object_unref)
86
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC(VipsOperation, g_object_unref)
87
+
88
+ // FIXME ... need more of these
89
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC(VipsArrayDouble, VipsArrayDouble_unref)
90
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC(VipsArrayImage, VipsArrayImage_unref)
91
+
74
92
  VIPS_API
75
93
  void *vips_malloc(VipsObject *object, size_t size);
76
94
  VIPS_API
@@ -69,7 +69,7 @@ typedef enum /*< flags >*/ {
69
69
 
70
70
  typedef gboolean (*VipsOperationBuildFn)(VipsObject *object);
71
71
 
72
- typedef struct _VipsOperation {
72
+ struct _VipsOperation {
73
73
  VipsObject parent_instance;
74
74
 
75
75
  /* Keep the hash here.
@@ -80,8 +80,7 @@ typedef struct _VipsOperation {
80
80
  /* Pixels calculated ... handy for measuring over-calculation.
81
81
  */
82
82
  int pixels;
83
-
84
- } VipsOperation;
83
+ };
85
84
 
86
85
  typedef struct _VipsOperationClass {
87
86
  VipsObjectClass parent_class;
@@ -136,10 +135,6 @@ int vips_call_argv(VipsOperation *operation, int argc, char **argv);
136
135
 
137
136
  VIPS_API
138
137
  void vips_cache_drop_all(void);
139
- VIPS_DEPRECATED_FOR(vips_cache_operation_buildp)
140
- VipsOperation *vips_cache_operation_lookup(VipsOperation *operation);
141
- VIPS_DEPRECATED_FOR(vips_cache_operation_buildp)
142
- void vips_cache_operation_add(VipsOperation *operation);
143
138
  VIPS_API
144
139
  int vips_cache_operation_buildp(VipsOperation **operation);
145
140
  VIPS_API
@@ -220,6 +220,13 @@ int _vips__argument_id;
220
220
 
221
221
  void vips__meta_init(void);
222
222
 
223
+ // autoptr needs typed functions for autofree ... this needs to be in the
224
+ // public API since downstream projects can use our auto defs
225
+ VIPS_API
226
+ void VipsArrayDouble_unref(VipsArrayDouble *array);
227
+ VIPS_API
228
+ void VipsArrayImage_unref(VipsArrayImage *array);
229
+
223
230
  #ifdef __cplusplus
224
231
  }
225
232
  #endif /*__cplusplus*/
@@ -61,6 +61,9 @@ extern "C" {
61
61
 
62
62
  #define VIPS_ABS(X) (((X) >= 0) ? (X) : -(X))
63
63
 
64
+ // is something (eg. a pointer) N aligned
65
+ #define VIPS_ALIGNED(P, N) ((((guint64) (P)) & ((N) - 1)) == 0)
66
+
64
67
  /* The built-in isnan and isinf functions provided by gcc 4+ and clang are
65
68
  * up to 7x faster than their libc equivalent included from <math.h>.
66
69
  */
@@ -123,7 +126,7 @@ extern "C" {
123
126
  { \
124
127
  if ((N)) { \
125
128
  int duff_count = ((N) + 15) / 16; \
126
- \
129
+ \
127
130
  switch ((N) % 16) { \
128
131
  case 0: \
129
132
  do { \
@@ -283,12 +286,6 @@ VIPS_API
283
286
  void *vips_hash_table_map(GHashTable *hash,
284
287
  VipsSListMap2Fn fn, void *a, void *b);
285
288
 
286
- VIPS_API
287
- char *vips_strncpy(char *dest, const char *src, int n);
288
- VIPS_API
289
- char *vips_strrstr(const char *haystack, const char *needle);
290
- VIPS_API
291
- gboolean vips_ispostfix(const char *a, const char *b);
292
289
  VIPS_API
293
290
  gboolean vips_iscasepostfix(const char *a, const char *b);
294
291
  VIPS_API
@@ -296,14 +293,6 @@ gboolean vips_isprefix(const char *a, const char *b);
296
293
  VIPS_API
297
294
  char *vips_break_token(char *str, const char *brk);
298
295
 
299
- void vips__chomp(char *str);
300
-
301
- VIPS_API
302
- int vips_vsnprintf(char *str, size_t size, const char *format, va_list ap);
303
- VIPS_API
304
- int vips_snprintf(char *str, size_t size, const char *format, ...)
305
- G_GNUC_PRINTF(3, 4);
306
-
307
296
  VIPS_API
308
297
  int vips_filename_suffix_match(const char *path, const char *suffixes[]);
309
298
 
@@ -390,6 +379,8 @@ typedef enum {
390
379
  VIPS_TOKEN_COMMA
391
380
  } VipsToken;
392
381
 
382
+ // we expose this one in the API for testing
383
+ VIPS_API
393
384
  const char *vips__token_get(const char *buffer,
394
385
  VipsToken *token, char *string, int size);
395
386
  const char *vips__token_must(const char *buffer, VipsToken *token,
@@ -4,19 +4,19 @@
4
4
  #ifndef VIPS_VERSION_H
5
5
  #define VIPS_VERSION_H
6
6
 
7
- #define VIPS_VERSION "8.15.3"
8
- #define VIPS_VERSION_STRING "8.15.3"
7
+ #define VIPS_VERSION "8.16.0"
8
+ #define VIPS_VERSION_STRING "8.16.0"
9
9
  #define VIPS_MAJOR_VERSION (8)
10
- #define VIPS_MINOR_VERSION (15)
11
- #define VIPS_MICRO_VERSION (3)
10
+ #define VIPS_MINOR_VERSION (16)
11
+ #define VIPS_MICRO_VERSION (0)
12
12
 
13
13
  /* The ABI version, as used for library versioning.
14
14
  */
15
- #define VIPS_LIBRARY_CURRENT (59)
16
- #define VIPS_LIBRARY_REVISION (3)
17
- #define VIPS_LIBRARY_AGE (17)
15
+ #define VIPS_LIBRARY_CURRENT (60)
16
+ #define VIPS_LIBRARY_REVISION (0)
17
+ #define VIPS_LIBRARY_AGE (18)
18
18
 
19
- #define VIPS_CONFIG "enable debug: false\nenable deprecated: false\nenable modules: false\nenable cplusplus: true\nenable RAD load/save: false\nenable Analyze7 load/save: false\nenable PPM load/save: false\nenable GIF load: true\nuse fftw for FFTs: false\nSIMD support with highway: true\naccelerate loops with ORC: false\nICC profile support with lcms: true\nzlib: true\ntext rendering with pangocairo: true\nfont file support with fontconfig: true\nEXIF metadata support with libexif: true\nJPEG load/save with libjpeg: true\nJXL load/save with libjxl: false (dynamic module: false)\nJPEG2000 load/save with OpenJPEG: false\nPNG load/save with libspng: true\nPNG load/save with libpng: false\nselected quantisation package: imagequant\nTIFF load/save with libtiff: 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: false\nPDF load with poppler-glib: false (dynamic module: false)\nSVG load with librsvg: true\nEXR load with OpenEXR: false\nOpenSlide load: false (dynamic module: false)\nMatlab load with libmatio: false\nNIfTI load/save with niftiio: false\nFITS load/save with cfitsio: false\nGIF save with cgif: true\nselected Magick package: none (dynamic module: false)\nMagick API version: none\nMagick load: false\nMagick save: false"
19
+ #define VIPS_CONFIG "enable debug: false\nenable deprecated: false\nenable modules: false\nenable cplusplus: 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\nJXL load/save with libjxl: false (dynamic module: false)\nJPEG2000 load/save with OpenJPEG: false\nPNG load/save with spng: 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\nMagick load/save with MagickCore: false (dynamic module: false)"
20
20
 
21
21
  /* Not really anything to do with versions, but this is a handy place to put
22
22
  * it.
@@ -109,9 +109,6 @@ extern "C" {
109
109
 
110
110
  #include <vips/private.h>
111
111
 
112
- #if VIPS_ENABLE_DEPRECATED
113
- #include <vips/mask.h>
114
- #endif
115
112
  #include <vips/image.h>
116
113
  #include <vips/memory.h>
117
114
  #include <vips/error.h>
@@ -138,8 +135,15 @@ extern "C" {
138
135
  #include <vips/colour.h>
139
136
  #include <vips/draw.h>
140
137
  #include <vips/create.h>
141
- #if VIPS_ENABLE_DEPRECATED
142
- #include <vips/video.h>
138
+
139
+ /* VIPS_DISABLE_COMPAT:
140
+ *
141
+ * Disable automatically inclusion of `vips7compat.h`.
142
+ *
143
+ * This has no effect when building with `-Ddeprecated=false`.
144
+ */
145
+ #if VIPS_ENABLE_DEPRECATED && !defined(VIPS_DISABLE_COMPAT)
146
+ #include <vips/vips7compat.h>
143
147
  #endif
144
148
 
145
149
  /* We can't use _ here since this will be compiled by our clients and they may
@@ -158,6 +162,8 @@ extern "C" {
158
162
  -1) \
159
163
  : vips_init(ARGV0))
160
164
 
165
+ VIPS_API
166
+ int vips_max_coord_get(void);
161
167
  VIPS_API
162
168
  int vips_init(const char *argv0);
163
169
  VIPS_API
@@ -3,7 +3,7 @@
3
3
  /*
4
4
 
5
5
  This file is part of VIPS.
6
-
6
+
7
7
  VIPS is free software; you can redistribute it and/or modify
8
8
  it under the terms of the GNU Lesser General Public License as published by
9
9
  the Free Software Foundation; either version 2 of the License, or
@@ -30,24 +30,25 @@
30
30
  #ifndef VIPS_CPLUSPLUS
31
31
  #define VIPS_CPLUSPLUS
32
32
 
33
+ /* avoid conflict with Qt definitions, if they exist */
34
+ #if defined(signals) && defined(Q_SIGNALS)
35
+ #define _VIPS_QT_SIGNALS_DEFINED
36
+ #undef signals
37
+ #endif
38
+
33
39
  #include <vips/version.h>
34
40
 
35
41
  #include <glib-object.h>
36
42
 
37
- /* Define VIPS_CPLUSPLUS_EXPORTS to build a DLL using MSVC.
43
+ /* Note: when building without Meson, it may be necessary to define
44
+ * _VIPS_PUBLIC as __declspec(dllexport) when building a DLL.
38
45
  */
39
- #ifdef _VIPS_PUBLIC
40
- # define VIPS_CPLUSPLUS_API _VIPS_PUBLIC
41
- #elif defined(_MSC_VER)
42
- # ifdef VIPS_CPLUSPLUS_EXPORTS
43
- # define VIPS_CPLUSPLUS_API __declspec(dllexport)
44
- # else
45
- # define VIPS_CPLUSPLUS_API __declspec(dllimport)
46
- # endif
47
- #else
48
- # define VIPS_CPLUSPLUS_API
46
+ #ifndef _VIPS_PUBLIC
47
+ #define _VIPS_PUBLIC
49
48
  #endif
50
49
 
50
+ #define VIPS_CPLUSPLUS_API _VIPS_PUBLIC
51
+
51
52
  #define VIPS_NAMESPACE_START namespace vips {
52
53
  #define VIPS_NAMESPACE_END }
53
54
 
@@ -57,4 +58,10 @@
57
58
  #include "VRegion8.h"
58
59
  #include "VConnection8.h"
59
60
 
61
+ /* restore Qt keywords if they were disabled for GLib inclusion */
62
+ #ifdef _VIPS_QT_SIGNALS_DEFINED
63
+ #define signals Q_SIGNALS
64
+ #undef _VIPS_QT_SIGNALS_DEFINED
65
+ #endif
66
+
60
67
  #endif /*VIPS_CPLUSPLUS*/
@@ -20,7 +20,7 @@
20
20
  extern "C" {
21
21
  #endif
22
22
 
23
- #define WEBP_ENCODER_ABI_VERSION 0x020f // MAJOR(8b) + MINOR(8b)
23
+ #define WEBP_ENCODER_ABI_VERSION 0x0210 // MAJOR(8b) + MINOR(8b)
24
24
 
25
25
  // Note: forward declaring enumerations is not allowed in (strict) C and C++,
26
26
  // the types are left here for reference.
@@ -145,7 +145,7 @@ struct WebPConfig {
145
145
  // RGB information for better compression. The default
146
146
  // value is 0.
147
147
 
148
- int use_delta_palette; // reserved for future lossless feature
148
+ int use_delta_palette; // reserved
149
149
  int use_sharp_yuv; // if needed, use sharp (and slow) RGB->YUV conversion
150
150
 
151
151
  int qmin; // minimum permissible quality factor
@@ -224,14 +224,15 @@ struct WebPAuxStats {
224
224
  uint32_t lossless_features; // bit0:predictor bit1:cross-color transform
225
225
  // bit2:subtract-green bit3:color indexing
226
226
  int histogram_bits; // number of precision bits of histogram
227
- int transform_bits; // precision bits for transform
227
+ int transform_bits; // precision bits for predictor transform
228
228
  int cache_bits; // number of bits for color cache lookup
229
229
  int palette_size; // number of color in palette, if used
230
230
  int lossless_size; // final lossless size
231
231
  int lossless_hdr_size; // lossless header (transform, huffman etc) size
232
232
  int lossless_data_size; // lossless image data size
233
+ int cross_color_transform_bits; // precision bits for cross-color transform
233
234
 
234
- uint32_t pad[2]; // padding for later use
235
+ uint32_t pad[1]; // padding for later use
235
236
  };
236
237
 
237
238
  // Signature for output function. Should return true if writing was successful.
@@ -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 0
55
+ #define SHARPYUV_VERSION_PATCH 1
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) \
@@ -66,10 +66,17 @@ extern "C" {
66
66
  SHARPYUV_EXTERN int SharpYuvGetVersion(void);
67
67
 
68
68
  // RGB to YUV conversion matrix, in 16 bit fixed point.
69
- // y = rgb_to_y[0] * r + rgb_to_y[1] * g + rgb_to_y[2] * b + rgb_to_y[3]
70
- // u = rgb_to_u[0] * r + rgb_to_u[1] * g + rgb_to_u[2] * b + rgb_to_u[3]
71
- // v = rgb_to_v[0] * r + rgb_to_v[1] * g + rgb_to_v[2] * b + rgb_to_v[3]
72
- // Then y, u and v values are divided by 1<<16 and rounded.
69
+ // y_ = rgb_to_y[0] * r + rgb_to_y[1] * g + rgb_to_y[2] * b + rgb_to_y[3]
70
+ // u_ = rgb_to_u[0] * r + rgb_to_u[1] * g + rgb_to_u[2] * b + rgb_to_u[3]
71
+ // v_ = rgb_to_v[0] * r + rgb_to_v[1] * g + rgb_to_v[2] * b + rgb_to_v[3]
72
+ // Then the values are divided by 1<<16 and rounded.
73
+ // y = (y_ + (1 << 15)) >> 16
74
+ // u = (u_ + (1 << 15)) >> 16
75
+ // v = (v_ + (1 << 15)) >> 16
76
+ //
77
+ // Typically, the offset values rgb_to_y[3], rgb_to_u[3] and rgb_to_v[3] depend
78
+ // on the input's bit depth, e.g., rgb_to_u[3] = 1 << (rgb_bit_depth - 1 + 16).
79
+ // See also sharpyuv_csp.h to get a predefined matrix or generate a matrix.
73
80
  typedef struct {
74
81
  int rgb_to_y[4];
75
82
  int rgb_to_u[4];
@@ -127,6 +134,8 @@ typedef enum SharpYuvTransferFunctionType {
127
134
  // adjacent pixels on the y, u and v channels. If yuv_bit_depth > 8, they
128
135
  // should be multiples of 2.
129
136
  // width, height: width and height of the image in pixels
137
+ // yuv_matrix: RGB to YUV conversion matrix. The matrix values typically
138
+ // depend on the input's rgb_bit_depth.
130
139
  // This function calls SharpYuvConvertWithOptions with a default transfer
131
140
  // function of kSharpYuvTransferFunctionSrgb.
132
141
  SHARPYUV_EXTERN int SharpYuvConvert(const void* r_ptr, const void* g_ptr,
@@ -41,10 +41,15 @@ SHARPYUV_EXTERN void SharpYuvComputeConversionMatrix(
41
41
 
42
42
  // Enums for precomputed conversion matrices.
43
43
  typedef enum {
44
+ // WebP's matrix, similar but not identical to kSharpYuvMatrixRec601Limited
44
45
  kSharpYuvMatrixWebp = 0,
46
+ // Kr=0.2990f Kb=0.1140f bit_depth=8 range=kSharpYuvRangeLimited
45
47
  kSharpYuvMatrixRec601Limited,
48
+ // Kr=0.2990f Kb=0.1140f bit_depth=8 range=kSharpYuvRangeFull
46
49
  kSharpYuvMatrixRec601Full,
50
+ // Kr=0.2126f Kb=0.0722f bit_depth=8 range=kSharpYuvRangeLimited
47
51
  kSharpYuvMatrixRec709Limited,
52
+ // Kr=0.2126f Kb=0.0722f bit_depth=8 range=kSharpYuvRangeFull
48
53
  kSharpYuvMatrixRec709Full,
49
54
  kSharpYuvMatrixNum
50
55
  } SharpYuvMatrixType;
@@ -38,11 +38,11 @@ typedef long long int int64_t;
38
38
 
39
39
  #ifndef WEBP_NODISCARD
40
40
  #if defined(WEBP_ENABLE_NODISCARD) && WEBP_ENABLE_NODISCARD
41
- #if (defined(__cplusplus) && __cplusplus >= 201700L) || \
41
+ #if (defined(__cplusplus) && __cplusplus >= 201703L) || \
42
42
  (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L)
43
43
  #define WEBP_NODISCARD [[nodiscard]]
44
44
  #else
45
- // gcc's __has_attribute does not work for enums.
45
+ // gcc's __attribute__((warn_unused_result)) does not work for enums.
46
46
  #if defined(__clang__) && defined(__has_attribute)
47
47
  #if __has_attribute(warn_unused_result)
48
48
  #define WEBP_NODISCARD __attribute__((warn_unused_result))
package/include/zlib.h CHANGED
@@ -49,11 +49,11 @@
49
49
  extern "C" {
50
50
  #endif
51
51
 
52
- #define ZLIBNG_VERSION "2.2.1"
53
- #define ZLIBNG_VERNUM 0x020201F0L /* MMNNRRSM: major minor revision status modified */
52
+ #define ZLIBNG_VERSION "2.2.4"
53
+ #define ZLIBNG_VERNUM 0x020204F0L /* 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 1
56
+ #define ZLIBNG_VER_REVISION 4
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 */
@@ -890,7 +890,7 @@ Z_EXTERN int Z_EXPORT inflateSetDictionary(z_stream *strm, const unsigned char *
890
890
  deflateSetDictionary). For raw inflate, this function can be called at any
891
891
  time to set the dictionary. If the provided dictionary is smaller than the
892
892
  window and there is already data in the window, then the provided dictionary
893
- will amend what's there. The application must insure that the dictionary
893
+ will amend what's there. The application must ensure that the dictionary
894
894
  that was used for compression is provided.
895
895
 
896
896
  inflateSetDictionary returns Z_OK if success, Z_STREAM_ERROR if a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revizly/sharp-libvips-dev",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
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,31 +1,31 @@
1
1
  {
2
- "aom": "3.9.1",
3
- "archive": "3.7.4",
4
- "cairo": "1.18.0",
5
- "cgif": "0.4.1",
2
+ "aom": "3.12.0",
3
+ "archive": "3.7.7",
4
+ "cairo": "1.18.2",
5
+ "cgif": "0.5.0",
6
6
  "de265": "1.0.15",
7
- "exif": "0.6.24",
8
- "expat": "2.6.2",
9
- "ffi": "3.4.6",
10
- "fontconfig": "2.15.0",
7
+ "exif": "0.6.25",
8
+ "expat": "2.6.4",
9
+ "ffi": "3.4.7",
10
+ "fontconfig": "2.16.0",
11
11
  "freetype": "2.13.3",
12
- "fribidi": "1.0.15",
13
- "glib": "2.81.1",
14
- "harfbuzz": "9.0.0",
15
- "heif": "1.18.2",
12
+ "fribidi": "1.0.16",
13
+ "glib": "2.83.4",
14
+ "harfbuzz": "10.3.0",
15
+ "heif": "1.19.5",
16
16
  "highway": "1.2.0",
17
17
  "imagequant": "2.4.1",
18
- "lcms": "2.16",
18
+ "lcms": "2.17",
19
19
  "mozjpeg": "4.1.5",
20
- "pango": "1.54.0",
21
- "pixman": "0.43.4",
22
- "png": "1.6.43",
20
+ "pango": "1.56.1",
21
+ "pixman": "0.44.2",
22
+ "png": "1.6.47",
23
23
  "proxy-libintl": "0.4",
24
- "rsvg": "2.58.93",
24
+ "rsvg": "2.59.90",
25
25
  "spng": "0.7.4",
26
- "tiff": "4.6.0",
27
- "vips": "8.15.3",
28
- "webp": "1.4.0",
29
- "xml": "2.13.3",
30
- "zlib-ng": "2.2.1"
26
+ "tiff": "4.7.0",
27
+ "vips": "8.16.0",
28
+ "webp": "1.5.0",
29
+ "xml": "2.13.6",
30
+ "zlib-ng": "2.2.4"
31
31
  }