@img/sharp-libvips-dev 1.1.0 → 1.2.0-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 (120) hide show
  1. package/cplusplus/vips-operators.cpp +39 -0
  2. package/include/archive.h +53 -2
  3. package/include/archive_entry.h +56 -25
  4. package/include/ffi.h +20 -2
  5. package/include/fontconfig/fontconfig.h +1 -1
  6. package/include/glib-2.0/gio/gio-visibility.h +34 -0
  7. package/include/glib-2.0/gio/gzlibcompressor.h +6 -0
  8. package/include/glib-2.0/girepository/gi-visibility.h +34 -0
  9. package/include/glib-2.0/girepository/gitypes.h +6 -0
  10. package/include/glib-2.0/glib/gbitlock.h +11 -0
  11. package/include/glib-2.0/glib/gdate.h +6 -0
  12. package/include/glib-2.0/glib/glib-visibility.h +34 -0
  13. package/include/glib-2.0/glib/gmain.h +13 -10
  14. package/include/glib-2.0/glib/gmessages.h +4 -1
  15. package/include/glib-2.0/glib/gstring.h +2 -0
  16. package/include/glib-2.0/glib/gversionmacros.h +9 -0
  17. package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
  18. package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
  19. package/include/harfbuzz/hb-common.h +1 -431
  20. package/include/harfbuzz/hb-deprecated.h +80 -2
  21. package/include/harfbuzz/hb-draw.h +2 -10
  22. package/include/harfbuzz/hb-face.h +1 -1
  23. package/include/harfbuzz/hb-font.h +55 -36
  24. package/include/harfbuzz/hb-paint.h +5 -3
  25. package/include/harfbuzz/hb-script-list.h +484 -0
  26. package/include/harfbuzz/hb-subset.h +22 -2
  27. package/include/harfbuzz/hb-version.h +3 -3
  28. package/include/libheif/heif.h +2 -0
  29. package/include/libheif/heif_version.h +2 -2
  30. package/include/libpng16/png.h +10 -10
  31. package/include/libpng16/pngconf.h +20 -27
  32. package/include/libpng16/pnglibconf.h +1 -1
  33. package/include/libxml2/libxml/HTMLparser.h +2 -2
  34. package/include/libxml2/libxml/parser.h +2 -0
  35. package/include/libxml2/libxml/xmlIO.h +2 -2
  36. package/include/libxml2/libxml/xmlerror.h +1 -1
  37. package/include/libxml2/libxml/xmlversion.h +4 -4
  38. package/include/pixman-1/pixman-version.h +2 -2
  39. package/include/pixman-1/pixman.h +200 -0
  40. package/include/png.h +10 -10
  41. package/include/pngconf.h +20 -27
  42. package/include/pnglibconf.h +1 -1
  43. package/include/vips/VImage8.h +62 -14
  44. package/include/vips/arithmetic.h +34 -34
  45. package/include/vips/basic.h +16 -0
  46. package/include/vips/buf.h +0 -5
  47. package/include/vips/colour.h +6 -7
  48. package/include/vips/connection.h +25 -37
  49. package/include/vips/enumtypes.h +11 -2
  50. package/include/vips/foreign.h +73 -43
  51. package/include/vips/format.h +7 -5
  52. package/include/vips/gate.h +0 -11
  53. package/include/vips/header.h +11 -11
  54. package/include/vips/image.h +8 -3
  55. package/include/vips/interpolate.h +0 -2
  56. package/include/vips/memory.h +4 -0
  57. package/include/vips/mosaicing.h +4 -0
  58. package/include/vips/object.h +14 -18
  59. package/include/vips/operation.h +0 -2
  60. package/include/vips/private.h +50 -2
  61. package/include/vips/region.h +1 -3
  62. package/include/vips/resample.h +2 -0
  63. package/include/vips/semaphore.h +8 -3
  64. package/include/vips/thread.h +1 -24
  65. package/include/vips/threadpool.h +0 -6
  66. package/include/vips/type.h +13 -9
  67. package/include/vips/util.h +17 -98
  68. package/include/vips/vector.h +0 -4
  69. package/include/vips/version.h +8 -8
  70. package/include/vips/vips.h +1 -0
  71. package/package.json +1 -1
  72. package/versions.json +11 -11
  73. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-animation.h +0 -221
  74. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-autocleanups.h +0 -37
  75. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +0 -525
  76. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h +0 -40
  77. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +0 -115
  78. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +0 -481
  79. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +0 -113
  80. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-macros.h +0 -718
  81. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-marshal.h +0 -33
  82. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +0 -70
  83. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +0 -168
  84. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h +0 -46
  85. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h +0 -165
  86. package/include/glib-2.0/glib/gwin32.h +0 -142
  87. package/include/harfbuzz/hb-subset-repacker.h +0 -81
  88. package/include/hwy/ops/tuple-inl.h +0 -125
  89. package/include/orc-0.4/orc/orc-stdint.h +0 -1
  90. package/include/orc-0.4/orc/orc.h +0 -16
  91. package/include/orc-0.4/orc/orcarm.h +0 -879
  92. package/include/orc-0.4/orc/orcbytecode.h +0 -35
  93. package/include/orc-0.4/orc/orcbytecodes.h +0 -255
  94. package/include/orc-0.4/orc/orccode.h +0 -53
  95. package/include/orc-0.4/orc/orccompiler.h +0 -176
  96. package/include/orc-0.4/orc/orcconstant.h +0 -39
  97. package/include/orc-0.4/orc/orccpu.h +0 -21
  98. package/include/orc-0.4/orc/orccpuinsn.h +0 -40
  99. package/include/orc-0.4/orc/orcdebug.h +0 -158
  100. package/include/orc-0.4/orc/orcemulateopcodes.h +0 -203
  101. package/include/orc-0.4/orc/orcexecutor.h +0 -135
  102. package/include/orc-0.4/orc/orcfunctions.h +0 -93
  103. package/include/orc-0.4/orc/orcinstruction.h +0 -39
  104. package/include/orc-0.4/orc/orcinternal.h +0 -46
  105. package/include/orc-0.4/orc/orclimits.h +0 -94
  106. package/include/orc-0.4/orc/orcmips.h +0 -229
  107. package/include/orc-0.4/orc/orcmmx.h +0 -79
  108. package/include/orc-0.4/orc/orcneon.h +0 -43
  109. package/include/orc-0.4/orc/orconce.h +0 -166
  110. package/include/orc-0.4/orc/orcopcode.h +0 -63
  111. package/include/orc-0.4/orc/orcparse.h +0 -27
  112. package/include/orc-0.4/orc/orcpowerpc.h +0 -209
  113. package/include/orc-0.4/orc/orcprogram.h +0 -192
  114. package/include/orc-0.4/orc/orcrule.h +0 -52
  115. package/include/orc-0.4/orc/orcsse.h +0 -55
  116. package/include/orc-0.4/orc/orctarget.h +0 -115
  117. package/include/orc-0.4/orc/orcutils.h +0 -238
  118. package/include/orc-0.4/orc/orcvariable.h +0 -81
  119. package/include/orc-0.4/orc/orcx86.h +0 -199
  120. package/include/orc-0.4/orc/orcx86insn.h +0 -672
@@ -36,25 +36,8 @@
36
36
  extern "C" {
37
37
  #endif /*__cplusplus*/
38
38
 
39
- /* We need wrappers over g_mutex_new(), it was replaced by g_mutex_init() in
40
- * glib 2.32+
41
- */
42
- VIPS_API
43
- GMutex *vips_g_mutex_new(void);
44
- VIPS_API
45
- void vips_g_mutex_free(GMutex *);
46
-
47
- /* Same for GCond.
48
- */
49
39
  VIPS_API
50
- GCond *vips_g_cond_new(void);
51
- VIPS_API
52
- void vips_g_cond_free(GCond *);
53
-
54
- /* ... and for GThread.
55
- */
56
- VIPS_API
57
- GThread *vips_g_thread_new(const char *, GThreadFunc, gpointer);
40
+ GThread *vips_g_thread_new(const char *domain, GThreadFunc func, gpointer data);
58
41
 
59
42
  VIPS_API
60
43
  gboolean vips_thread_isvips(void);
@@ -62,12 +45,6 @@ gboolean vips_thread_isvips(void);
62
45
  VIPS_API
63
46
  int vips_thread_execute(const char *domain, GFunc func, gpointer data);
64
47
 
65
- typedef struct _VipsThreadset VipsThreadset;
66
- VipsThreadset *vips_threadset_new(int max_threads);
67
- int vips_threadset_run(VipsThreadset *set,
68
- const char *domain, GFunc func, gpointer data);
69
- void vips_threadset_free(VipsThreadset *set);
70
-
71
48
  #ifdef __cplusplus
72
49
  }
73
50
  #endif /*__cplusplus*/
@@ -51,10 +51,6 @@
51
51
  extern "C" {
52
52
  #endif /*__cplusplus*/
53
53
 
54
- /* Per-thread state. Allocate functions can use these members to
55
- * communicate with work functions.
56
- */
57
-
58
54
  #define VIPS_TYPE_THREAD_STATE (vips_thread_state_get_type())
59
55
  #define VIPS_THREAD_STATE(obj) \
60
56
  (G_TYPE_CHECK_INSTANCE_CAST((obj), \
@@ -112,8 +108,6 @@ typedef struct _VipsThreadStateClass {
112
108
  VIPS_API
113
109
  void *vips_thread_state_set(VipsObject *object, void *a, void *b);
114
110
 
115
- /* Don't put spaces around void here, it breaks gtk-doc.
116
- */
117
111
  VIPS_API
118
112
  GType vips_thread_state_get_type(void);
119
113
 
@@ -38,6 +38,8 @@
38
38
  extern "C" {
39
39
  #endif /*__cplusplus*/
40
40
 
41
+ #ifndef __GI_SCANNER__
42
+
41
43
  /* A very simple boxed type for testing. Just holds an int.
42
44
  */
43
45
  typedef struct _VipsThing {
@@ -47,7 +49,7 @@ typedef struct _VipsThing {
47
49
  /**
48
50
  * VIPS_TYPE_THING:
49
51
  *
50
- * The #GType for a #VipsThing.
52
+ * The [alias@GObject.Type] for a #VipsThing.
51
53
  */
52
54
  #define VIPS_TYPE_THING (vips_thing_get_type())
53
55
  VIPS_API
@@ -55,6 +57,8 @@ GType vips_thing_get_type(void);
55
57
  VIPS_API
56
58
  VipsThing *vips_thing_new(int i);
57
59
 
60
+ #endif /* !__GI_SCANNER__ */
61
+
58
62
  /* A ref-counted area of memory. Can hold arrays of things as well.
59
63
  */
60
64
  typedef struct _VipsArea {
@@ -74,7 +78,7 @@ typedef struct _VipsArea {
74
78
  * structure, so a simple GMutex is OK.
75
79
  */
76
80
  int count;
77
- GMutex *lock;
81
+ GMutex lock;
78
82
 
79
83
  /* Things like ICC profiles need their own free functions.
80
84
  *
@@ -131,7 +135,7 @@ void *vips_area_get_data(VipsArea *area,
131
135
  /**
132
136
  * VIPS_TYPE_AREA:
133
137
  *
134
- * The #GType for a #VipsArea.
138
+ * The [alias@GObject.Type] for a [struct@Area].
135
139
  */
136
140
  #define VIPS_TYPE_AREA (vips_area_get_type())
137
141
  #define VIPS_AREA(X) ((VipsArea *) (X))
@@ -141,7 +145,7 @@ GType vips_area_get_type(void);
141
145
  /**
142
146
  * VIPS_TYPE_SAVE_STRING:
143
147
  *
144
- * The #GType for a #VipsSaveString.
148
+ * The [alias@GObject.Type] for a [struct@SaveString].
145
149
  */
146
150
  #define VIPS_TYPE_SAVE_STRING (vips_save_string_get_type())
147
151
  VIPS_API
@@ -154,7 +158,7 @@ typedef struct _VipsSaveString {
154
158
  /**
155
159
  * VIPS_TYPE_REF_STRING:
156
160
  *
157
- * The #GType for a #VipsRefString.
161
+ * The [alias@GObject.Type] for a [struct@RefString].
158
162
  */
159
163
  #define VIPS_TYPE_REF_STRING (vips_ref_string_get_type())
160
164
 
@@ -172,7 +176,7 @@ GType vips_ref_string_get_type(void);
172
176
  /**
173
177
  * VIPS_TYPE_BLOB:
174
178
  *
175
- * The %GType for a #VipsBlob.
179
+ * The [alias@GObject.Type] for a [struct@Blob].
176
180
  */
177
181
  #define VIPS_TYPE_BLOB (vips_blob_get_type())
178
182
 
@@ -196,7 +200,7 @@ GType vips_blob_get_type(void);
196
200
  /**
197
201
  * VIPS_TYPE_ARRAY_DOUBLE:
198
202
  *
199
- * The #GType for a #VipsArrayDouble.
203
+ * The [alias@GObject.Type] for a [struct@ArrayDouble].
200
204
  */
201
205
  #define VIPS_TYPE_ARRAY_DOUBLE (vips_array_double_get_type())
202
206
 
@@ -216,7 +220,7 @@ GType vips_array_double_get_type(void);
216
220
  /**
217
221
  * VIPS_TYPE_ARRAY_INT:
218
222
  *
219
- * The #GType for a #VipsArrayInt.
223
+ * The [alias@GObject.Type] for a [struct@ArrayInt].
220
224
  */
221
225
  #define VIPS_TYPE_ARRAY_INT (vips_array_int_get_type())
222
226
 
@@ -236,7 +240,7 @@ GType vips_array_int_get_type(void);
236
240
  /**
237
241
  * VIPS_TYPE_ARRAY_IMAGE:
238
242
  *
239
- * The #GType for a #VipsArrayImage.
243
+ * The [alias@GObject.Type] for a [struct@ArrayImage].
240
244
  */
241
245
  #define VIPS_TYPE_ARRAY_IMAGE (vips_array_image_get_type())
242
246
 
@@ -39,7 +39,6 @@
39
39
  extern "C" {
40
40
  #endif /*__cplusplus*/
41
41
 
42
- #include <stdio.h>
43
42
  #include <math.h>
44
43
 
45
44
  /* Some platforms don't have M_PI :-(
@@ -54,38 +53,25 @@ extern "C" {
54
53
  #define VIPS_MAX(A, B) ((A) > (B) ? (A) : (B))
55
54
  #define VIPS_MIN(A, B) ((A) < (B) ? (A) : (B))
56
55
 
56
+ #define VIPS_FMAX(A, B) fmax((A), (B)) VIPS_DEPRECATED_MACRO_FOR(fmax)
57
+ #define VIPS_FMIN(A, B) fmin((A), (B)) VIPS_DEPRECATED_MACRO_FOR(fmin)
58
+
57
59
  #define VIPS_CLIP(A, V, B) VIPS_MAX((A), VIPS_MIN((B), (V)))
58
- #define VIPS_FCLIP(A, V, B) VIPS_FMAX((A), VIPS_FMIN((B), (V)))
60
+ #define VIPS_FCLIP(A, V, B) fmax((A), fmin((B), (V)))
59
61
 
60
62
  #define VIPS_NUMBER(R) ((int) (sizeof(R) / sizeof(R[0])))
61
63
 
62
- #define VIPS_ABS(X) (((X) >= 0) ? (X) : -(X))
64
+ #define VIPS_ABS(V) (((V) >= 0) ? (V) : -(V))
65
+ #define VIPS_FABS(V) fabs((V)) VIPS_DEPRECATED_MACRO_FOR(fabs)
63
66
 
64
67
  // is something (eg. a pointer) N aligned
65
68
  #define VIPS_ALIGNED(P, N) ((((guint64) (P)) & ((N) - 1)) == 0)
66
69
 
67
- /* The built-in isnan and isinf functions provided by gcc 4+ and clang are
68
- * up to 7x faster than their libc equivalent included from <math.h>.
69
- */
70
- #if defined(__clang__) || (__GNUC__ >= 4)
71
- #define VIPS_ISNAN(V) __builtin_isnan(V)
72
- #define VIPS_FLOOR(V) __builtin_floor(V)
73
- #define VIPS_CEIL(V) __builtin_ceil(V)
74
- #define VIPS_RINT(V) __builtin_rint(V)
75
- #define VIPS_ROUND(V) __builtin_round(V)
76
- #define VIPS_FABS(V) __builtin_fabs(V)
77
- #define VIPS_FMAX(A, B) __builtin_fmax(A, B)
78
- #define VIPS_FMIN(A, B) __builtin_fmin(A, B)
79
- #else
80
- #define VIPS_ISNAN(V) isnan(V)
81
- #define VIPS_FLOOR(V) floor(V)
82
- #define VIPS_CEIL(V) ceil(V)
83
- #define VIPS_RINT(V) rint(V)
84
- #define VIPS_ROUND(V) round(V)
85
- #define VIPS_FABS(V) VIPS_ABS(V)
86
- #define VIPS_FMAX(A, B) VIPS_MAX(A, B)
87
- #define VIPS_FMIN(A, B) VIPS_MIN(A, B)
88
- #endif
70
+ #define VIPS_ISNAN(V) isnan(V) VIPS_DEPRECATED_MACRO_FOR(isnan)
71
+ #define VIPS_FLOOR(V) floor(V) VIPS_DEPRECATED_MACRO_FOR(floor)
72
+ #define VIPS_CEIL(V) ceil(V) VIPS_DEPRECATED_MACRO_FOR(ceil)
73
+ #define VIPS_RINT(V) rint(V) VIPS_DEPRECATED_MACRO_FOR(rint)
74
+ #define VIPS_ROUND(V) round(V) VIPS_DEPRECATED_MACRO_FOR(round)
89
75
 
90
76
  /* Testing status before the function call saves a lot of time.
91
77
  */
@@ -97,7 +83,7 @@ extern "C" {
97
83
  } \
98
84
  G_STMT_END
99
85
 
100
- /* VIPS_RINT() does "bankers rounding", it rounds to the nearest even integer.
86
+ /* rint() does "bankers rounding", it rounds to the nearest even integer.
101
87
  * For things like image geometry, we want strict nearest int.
102
88
  *
103
89
  * If you know it's unsigned, _UINT is a little faster.
@@ -298,47 +284,7 @@ int vips_filename_suffix_match(const char *path, const char *suffixes[]);
298
284
 
299
285
  VIPS_API
300
286
  gint64 vips_file_length(int fd);
301
- /* TODO(kleisauke): VIPS_API is required by vipsedit.
302
- */
303
- VIPS_API
304
- int vips__write(int fd, const void *buf, size_t count);
305
-
306
- /* TODO(kleisauke): VIPS_API is required by test_connections.
307
- */
308
- VIPS_API
309
- int vips__open(const char *filename, int flags, int mode);
310
- int vips__open_read(const char *filename);
311
- FILE *vips__fopen(const char *filename, const char *mode);
312
-
313
- FILE *vips__file_open_read(const char *filename,
314
- const char *fallback_dir, gboolean text_mode);
315
- FILE *vips__file_open_write(const char *filename,
316
- gboolean text_mode);
317
- /* TODO(kleisauke): VIPS_API is required by vipsedit.
318
- */
319
- VIPS_API
320
- char *vips__file_read(FILE *fp, const char *name, size_t *length_out);
321
- char *vips__file_read_name(const char *name, const char *fallback_dir,
322
- size_t *length_out);
323
- int vips__file_write(void *data, size_t size, size_t nmemb, FILE *stream);
324
- /* TODO(kleisauke): VIPS_API is required by the magick module.
325
- */
326
- VIPS_API
327
- gint64 vips__get_bytes(const char *filename, unsigned char buf[], gint64 len);
328
- int vips__fgetc(FILE *fp);
329
-
330
- GValue *vips__gvalue_ref_string_new(const char *text);
331
- void vips__gslist_gvalue_free(GSList *list);
332
- GSList *vips__gslist_gvalue_copy(const GSList *list);
333
- GSList *vips__gslist_gvalue_merge(GSList *a, const GSList *b);
334
- char *vips__gslist_gvalue_get(const GSList *list);
335
287
 
336
- gint64 vips__seek_no_error(int fd, gint64 pos, int whence);
337
- /* TODO(kleisauke): VIPS_API is required by vipsedit.
338
- */
339
- VIPS_API
340
- gint64 vips__seek(int fd, gint64 pos, int whence);
341
- int vips__ftruncate(int fd, gint64 pos);
342
288
  VIPS_API
343
289
  int vips_existsf(const char *name, ...)
344
290
  G_GNUC_PRINTF(1, 2);
@@ -355,7 +301,7 @@ VIPS_API
355
301
  int vips_rename(const char *old_name, const char *new_name);
356
302
 
357
303
  /**
358
- * VipsToken:
304
+ * VipsToken: (skip)
359
305
  * @VIPS_TOKEN_LEFT: left bracket
360
306
  * @VIPS_TOKEN_RIGHT: right bracket
361
307
  * @VIPS_TOKEN_STRING: string constant
@@ -369,7 +315,6 @@ int vips_rename(const char *old_name, const char *new_name);
369
315
  *
370
316
  * Strings may be in double quotes, and may contain escaped quote characters,
371
317
  * for example string, "string" and "str\"ing".
372
- *
373
318
  */
374
319
  typedef enum {
375
320
  VIPS_TOKEN_LEFT = 1,
@@ -379,49 +324,23 @@ typedef enum {
379
324
  VIPS_TOKEN_COMMA
380
325
  } VipsToken;
381
326
 
327
+ #ifndef __GI_SCANNER__
328
+
382
329
  // we expose this one in the API for testing
383
330
  VIPS_API
384
331
  const char *vips__token_get(const char *buffer,
385
332
  VipsToken *token, char *string, int size);
386
- const char *vips__token_must(const char *buffer, VipsToken *token,
387
- char *string, int size);
388
- const char *vips__token_need(const char *buffer, VipsToken need_token,
389
- char *string, int size);
390
- const char *vips__token_segment(const char *p, VipsToken *token,
391
- char *string, int size);
392
- const char *vips__token_segment_need(const char *p, VipsToken need_token,
393
- char *string, int size);
394
- const char *vips__find_rightmost_brackets(const char *p);
395
- /* TODO(kleisauke): VIPS_API is required by libvips-cpp and vipsheader.
396
- */
397
- VIPS_API
398
- void vips__filename_split8(const char *name,
399
- char *filename, char *option_string);
333
+
334
+ #endif /* !__GI_SCANNER__ */
400
335
 
401
336
  VIPS_API
402
337
  int vips_ispoweroftwo(int p);
403
338
  VIPS_API
404
339
  int vips_amiMSBfirst(void);
405
340
 
406
- /* TODO(kleisauke): VIPS_API is required by jpegsave_file_fuzzer.
407
- */
408
- VIPS_API
409
- char *vips__temp_name(const char *format);
410
-
411
- void vips__change_suffix(const char *name, char *out, int mx,
412
- const char *new_suff, const char **olds, int nolds);
413
-
414
341
  VIPS_API
415
342
  char *vips_realpath(const char *path);
416
343
 
417
- guint32 vips__random(guint32 seed);
418
- guint32 vips__random_add(guint32 seed, int value);
419
-
420
- const char *vips__icc_dir(void);
421
- const char *vips__windows_prefix(void);
422
-
423
- char *vips__get_iso8601(void);
424
-
425
344
  VIPS_API
426
345
  int vips_strtod(const char *str, double *out);
427
346
 
@@ -38,10 +38,6 @@
38
38
  extern "C" {
39
39
  #endif /*__cplusplus*/
40
40
 
41
- /* Set from the command-line.
42
- */
43
- extern gboolean vips__vector_enabled;
44
-
45
41
  VIPS_API
46
42
  gboolean vips_vector_isenabled(void);
47
43
  VIPS_API
@@ -4,19 +4,19 @@
4
4
  #ifndef VIPS_VERSION_H
5
5
  #define VIPS_VERSION_H
6
6
 
7
- #define VIPS_VERSION "8.16.1"
8
- #define VIPS_VERSION_STRING "8.16.1"
7
+ #define VIPS_VERSION "8.17.0"
8
+ #define VIPS_VERSION_STRING "8.17.0"
9
9
  #define VIPS_MAJOR_VERSION (8)
10
- #define VIPS_MINOR_VERSION (16)
11
- #define VIPS_MICRO_VERSION (1)
10
+ #define VIPS_MINOR_VERSION (17)
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 (60)
16
- #define VIPS_LIBRARY_REVISION (1)
17
- #define VIPS_LIBRARY_AGE (18)
15
+ #define VIPS_LIBRARY_CURRENT (61)
16
+ #define VIPS_LIBRARY_REVISION (0)
17
+ #define VIPS_LIBRARY_AGE (19)
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: 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)"
19
+ #define VIPS_CONFIG "enable debug: false\nenable deprecated: false\nenable modules: false\nenable C++ binding: true\nenable RAD load/save: false\nenable Analyze7 load: false\nenable PPM load/save: false\nenable GIF load: true\nFFTs with fftw: false\nSIMD support with libhwy: true\nICC profile support with lcms2: true\ndeflate compression with zlib: true\ntext rendering with pangocairo: true\nfont file support with fontconfig: true\nEXIF metadata support with libexif: true\nJPEG load/save with libjpeg: true\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.
@@ -117,6 +117,7 @@ extern "C" {
117
117
  #include <vips/generate.h>
118
118
  #include <vips/interpolate.h>
119
119
  #include <vips/semaphore.h>
120
+ #include <vips/thread.h>
120
121
  #include <vips/threadpool.h>
121
122
  #include <vips/header.h>
122
123
  #include <vips/operation.h>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@img/sharp-libvips-dev",
3
- "version": "1.1.0",
3
+ "version": "1.2.0-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
@@ -1,30 +1,30 @@
1
1
  {
2
- "aom": "3.12.0",
3
- "archive": "3.7.9",
2
+ "aom": "3.12.1",
3
+ "archive": "3.8.1",
4
4
  "cairo": "1.18.4",
5
5
  "cgif": "0.5.0",
6
6
  "exif": "0.6.25",
7
7
  "expat": "2.7.1",
8
- "ffi": "3.4.7",
9
- "fontconfig": "2.16.1",
8
+ "ffi": "3.5.1",
9
+ "fontconfig": "2.16.2",
10
10
  "freetype": "2.13.3",
11
11
  "fribidi": "1.0.16",
12
- "glib": "2.84.1",
13
- "harfbuzz": "11.0.0",
14
- "heif": "1.19.7",
12
+ "glib": "2.85.0",
13
+ "harfbuzz": "11.2.1",
14
+ "heif": "1.19.8",
15
15
  "highway": "1.2.0",
16
16
  "imagequant": "2.4.1",
17
17
  "lcms": "2.17",
18
18
  "mozjpeg": "4.1.5",
19
19
  "pango": "1.56.3",
20
- "pixman": "0.44.2",
21
- "png": "1.6.47",
20
+ "pixman": "0.46.2",
21
+ "png": "1.6.48",
22
22
  "proxy-libintl": "0.4",
23
23
  "rsvg": "2.60.0",
24
24
  "spng": "0.7.4",
25
25
  "tiff": "4.7.0",
26
- "vips": "8.16.1",
26
+ "vips": "8.17.0",
27
27
  "webp": "1.5.0",
28
- "xml": "2.14.1",
28
+ "xml2": "2.14.3",
29
29
  "zlib-ng": "2.2.4"
30
30
  }
@@ -1,221 +0,0 @@
1
- /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
2
- /* GdkPixbuf library - Animation support
3
- *
4
- * Copyright (C) 1999 The Free Software Foundation
5
- *
6
- * Authors: Mark Crichton <crichton@gimp.org>
7
- * Miguel de Icaza <miguel@gnu.org>
8
- * Federico Mena-Quintero <federico@gimp.org>
9
- * Havoc Pennington <hp@redhat.com>
10
- *
11
- * This library is free software; you can redistribute it and/or
12
- * modify it under the terms of the GNU Lesser General Public
13
- * License as published by the Free Software Foundation; either
14
- * version 2 of the License, or (at your option) any later version.
15
- *
16
- * This library is distributed in the hope that it will be useful,
17
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
- * Lesser General Public License for more details.
20
- *
21
- * You should have received a copy of the GNU Lesser General Public
22
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
23
- */
24
-
25
- #ifndef GDK_PIXBUF_ANIMATION_H
26
- #define GDK_PIXBUF_ANIMATION_H
27
-
28
- #if defined(GDK_PIXBUF_DISABLE_SINGLE_INCLUDES) && !defined (GDK_PIXBUF_H_INSIDE) && !defined (GDK_PIXBUF_COMPILATION)
29
- #error "Only <gdk-pixbuf/gdk-pixbuf.h> can be included directly."
30
- #endif
31
-
32
- #include <glib-object.h>
33
- #include <gdk-pixbuf/gdk-pixbuf-core.h>
34
-
35
- G_BEGIN_DECLS
36
-
37
- /* Animation support */
38
-
39
- typedef struct _GdkPixbufAnimation GdkPixbufAnimation;
40
-
41
-
42
- typedef struct _GdkPixbufAnimationIter GdkPixbufAnimationIter;
43
-
44
- #define GDK_TYPE_PIXBUF_ANIMATION (gdk_pixbuf_animation_get_type ())
45
- #define GDK_PIXBUF_ANIMATION(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_PIXBUF_ANIMATION, GdkPixbufAnimation))
46
- #define GDK_IS_PIXBUF_ANIMATION(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_PIXBUF_ANIMATION))
47
-
48
- #define GDK_TYPE_PIXBUF_ANIMATION_ITER (gdk_pixbuf_animation_iter_get_type ())
49
- #define GDK_PIXBUF_ANIMATION_ITER(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), GDK_TYPE_PIXBUF_ANIMATION_ITER, GdkPixbufAnimationIter))
50
- #define GDK_IS_PIXBUF_ANIMATION_ITER(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), GDK_TYPE_PIXBUF_ANIMATION_ITER))
51
-
52
- GDK_PIXBUF_AVAILABLE_IN_ALL
53
- GType gdk_pixbuf_animation_get_type (void) G_GNUC_CONST;
54
-
55
- #ifdef G_OS_WIN32
56
- /* API/ABI compat, see gdk-pixbuf-core.h for details */
57
- GDK_PIXBUF_AVAILABLE_IN_ALL
58
- GdkPixbufAnimation *gdk_pixbuf_animation_new_from_file_utf8 (const char *filename,
59
- GError **error);
60
- #endif
61
-
62
- GDK_PIXBUF_AVAILABLE_IN_ALL
63
- GdkPixbufAnimation *gdk_pixbuf_animation_new_from_file (const char *filename,
64
- GError **error);
65
- GDK_PIXBUF_AVAILABLE_IN_2_28
66
- GdkPixbufAnimation *gdk_pixbuf_animation_new_from_stream (GInputStream *stream,
67
- GCancellable *cancellable,
68
- GError **error);
69
- GDK_PIXBUF_AVAILABLE_IN_2_28
70
- void gdk_pixbuf_animation_new_from_stream_async (GInputStream *stream,
71
- GCancellable *cancellable,
72
- GAsyncReadyCallback callback,
73
- gpointer user_data);
74
- GDK_PIXBUF_AVAILABLE_IN_2_28
75
- GdkPixbufAnimation *gdk_pixbuf_animation_new_from_stream_finish (GAsyncResult*async_result,
76
- GError **error);
77
- GDK_PIXBUF_AVAILABLE_IN_2_28
78
- GdkPixbufAnimation *gdk_pixbuf_animation_new_from_resource(const char *resource_path,
79
- GError **error);
80
-
81
- #ifndef GDK_PIXBUF_DISABLE_DEPRECATED
82
-
83
- GDK_PIXBUF_DEPRECATED_IN_2_0_FOR(g_object_ref)
84
- GdkPixbufAnimation *gdk_pixbuf_animation_ref (GdkPixbufAnimation *animation);
85
- GDK_PIXBUF_DEPRECATED_IN_2_0_FOR(g_object_unref)
86
- void gdk_pixbuf_animation_unref (GdkPixbufAnimation *animation);
87
- #endif
88
-
89
- GDK_PIXBUF_AVAILABLE_IN_ALL
90
- int gdk_pixbuf_animation_get_width (GdkPixbufAnimation *animation);
91
- GDK_PIXBUF_AVAILABLE_IN_ALL
92
- int gdk_pixbuf_animation_get_height (GdkPixbufAnimation *animation);
93
- GDK_PIXBUF_AVAILABLE_IN_ALL
94
- gboolean gdk_pixbuf_animation_is_static_image (GdkPixbufAnimation *animation);
95
- GDK_PIXBUF_AVAILABLE_IN_ALL
96
- GdkPixbuf *gdk_pixbuf_animation_get_static_image (GdkPixbufAnimation *animation);
97
-
98
- G_GNUC_BEGIN_IGNORE_DEPRECATIONS
99
- GDK_PIXBUF_AVAILABLE_IN_ALL
100
- GdkPixbufAnimationIter *gdk_pixbuf_animation_get_iter (GdkPixbufAnimation *animation,
101
- const GTimeVal *start_time);
102
- G_GNUC_END_IGNORE_DEPRECATIONS
103
-
104
- GDK_PIXBUF_AVAILABLE_IN_ALL
105
- GType gdk_pixbuf_animation_iter_get_type (void) G_GNUC_CONST;
106
- GDK_PIXBUF_AVAILABLE_IN_ALL
107
- int gdk_pixbuf_animation_iter_get_delay_time (GdkPixbufAnimationIter *iter);
108
- GDK_PIXBUF_AVAILABLE_IN_ALL
109
- GdkPixbuf *gdk_pixbuf_animation_iter_get_pixbuf (GdkPixbufAnimationIter *iter);
110
- GDK_PIXBUF_AVAILABLE_IN_ALL
111
- gboolean gdk_pixbuf_animation_iter_on_currently_loading_frame (GdkPixbufAnimationIter *iter);
112
- G_GNUC_BEGIN_IGNORE_DEPRECATIONS
113
- GDK_PIXBUF_AVAILABLE_IN_ALL
114
- gboolean gdk_pixbuf_animation_iter_advance (GdkPixbufAnimationIter *iter,
115
- const GTimeVal *current_time);
116
- G_GNUC_END_IGNORE_DEPRECATIONS
117
-
118
-
119
- #ifdef GDK_PIXBUF_ENABLE_BACKEND
120
-
121
-
122
-
123
- /**
124
- * GdkPixbufAnimationClass:
125
- * @parent_class: the parent class
126
- * @is_static_image: returns whether the given animation is just a static image.
127
- * @get_static_image: returns a static image representing the given animation.
128
- * @get_size: fills @width and @height with the frame size of the animation.
129
- * @get_iter: returns an iterator for the given animation.
130
- *
131
- * Modules supporting animations must derive a type from
132
- * #GdkPixbufAnimation, providing suitable implementations of the
133
- * virtual functions.
134
- */
135
- typedef struct _GdkPixbufAnimationClass GdkPixbufAnimationClass;
136
-
137
- #define GDK_PIXBUF_ANIMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_PIXBUF_ANIMATION, GdkPixbufAnimationClass))
138
- #define GDK_IS_PIXBUF_ANIMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_PIXBUF_ANIMATION))
139
- #define GDK_PIXBUF_ANIMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_PIXBUF_ANIMATION, GdkPixbufAnimationClass))
140
-
141
- /* Private part of the GdkPixbufAnimation structure */
142
- struct _GdkPixbufAnimation {
143
- GObject parent_instance;
144
-
145
- };
146
-
147
- G_GNUC_BEGIN_IGNORE_DEPRECATIONS
148
- struct _GdkPixbufAnimationClass {
149
- GObjectClass parent_class;
150
-
151
- /*< public >*/
152
-
153
- gboolean (*is_static_image) (GdkPixbufAnimation *animation);
154
-
155
- GdkPixbuf* (*get_static_image) (GdkPixbufAnimation *animation);
156
-
157
- void (*get_size) (GdkPixbufAnimation *animation,
158
- int *width,
159
- int *height);
160
-
161
- GdkPixbufAnimationIter* (*get_iter) (GdkPixbufAnimation *animation,
162
- const GTimeVal *start_time);
163
- };
164
- G_GNUC_END_IGNORE_DEPRECATIONS
165
-
166
-
167
-
168
- /**
169
- * GdkPixbufAnimationIterClass:
170
- * @parent_class: the parent class
171
- * @get_delay_time: returns the time in milliseconds that the current frame
172
- * should be shown.
173
- * @get_pixbuf: returns the current frame.
174
- * @on_currently_loading_frame: returns whether the current frame of @iter is
175
- * being loaded.
176
- * @advance: advances the iterator to @current_time, possibly changing the
177
- * current frame.
178
- *
179
- * Modules supporting animations must derive a type from
180
- * #GdkPixbufAnimationIter, providing suitable implementations of the
181
- * virtual functions.
182
- */
183
- typedef struct _GdkPixbufAnimationIterClass GdkPixbufAnimationIterClass;
184
-
185
- #define GDK_PIXBUF_ANIMATION_ITER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_PIXBUF_ANIMATION_ITER, GdkPixbufAnimationIterClass))
186
- #define GDK_IS_PIXBUF_ANIMATION_ITER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_PIXBUF_ANIMATION_ITER))
187
- #define GDK_PIXBUF_ANIMATION_ITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_PIXBUF_ANIMATION_ITER, GdkPixbufAnimationIterClass))
188
-
189
- struct _GdkPixbufAnimationIter {
190
- GObject parent_instance;
191
-
192
- };
193
-
194
- G_GNUC_BEGIN_IGNORE_DEPRECATIONS
195
- struct _GdkPixbufAnimationIterClass {
196
- GObjectClass parent_class;
197
-
198
- /*< public >*/
199
-
200
- int (*get_delay_time) (GdkPixbufAnimationIter *iter);
201
-
202
- GdkPixbuf* (*get_pixbuf) (GdkPixbufAnimationIter *iter);
203
-
204
- gboolean (*on_currently_loading_frame) (GdkPixbufAnimationIter *iter);
205
-
206
- gboolean (*advance) (GdkPixbufAnimationIter *iter,
207
- const GTimeVal *current_time);
208
- };
209
- G_GNUC_END_IGNORE_DEPRECATIONS
210
-
211
-
212
- GDK_PIXBUF_AVAILABLE_IN_ALL
213
- GType gdk_pixbuf_non_anim_get_type (void) G_GNUC_CONST;
214
- GDK_PIXBUF_AVAILABLE_IN_ALL
215
- GdkPixbufAnimation* gdk_pixbuf_non_anim_new (GdkPixbuf *pixbuf);
216
-
217
- #endif /* GDK_PIXBUF_ENABLE_BACKEND */
218
-
219
- G_END_DECLS
220
-
221
- #endif /* GDK_PIXBUF_ANIMATION_H */