@revizly/sharp-libvips-dev 1.0.19 → 1.0.20

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 (155) hide show
  1. package/cplusplus/VConnection.cpp +1 -151
  2. package/cplusplus/VError.cpp +1 -51
  3. package/cplusplus/VImage.cpp +1 -1611
  4. package/cplusplus/VInterpolate.cpp +1 -62
  5. package/cplusplus/VRegion.cpp +1 -27
  6. package/cplusplus/vips-operators.cpp +1 -3861
  7. package/include/archive.h +53 -2
  8. package/include/archive_entry.h +56 -25
  9. package/include/ffi.h +20 -2
  10. package/include/fontconfig/fontconfig.h +12 -2
  11. package/include/glib-2.0/gio/gio-visibility.h +34 -0
  12. package/include/glib-2.0/gio/gzlibcompressor.h +6 -0
  13. package/include/glib-2.0/girepository/gi-visibility.h +34 -0
  14. package/include/glib-2.0/girepository/girepository.h +3 -0
  15. package/include/glib-2.0/girepository/gitypes.h +6 -0
  16. package/include/glib-2.0/glib/gbitlock.h +11 -0
  17. package/include/glib-2.0/glib/gdate.h +6 -0
  18. package/include/glib-2.0/glib/glib-visibility.h +34 -0
  19. package/include/glib-2.0/glib/gmain.h +13 -10
  20. package/include/glib-2.0/glib/gmarkup.h +4 -0
  21. package/include/glib-2.0/glib/gmessages.h +4 -1
  22. package/include/glib-2.0/glib/gstring.h +2 -0
  23. package/include/glib-2.0/glib/gversionmacros.h +9 -0
  24. package/include/glib-2.0/gmodule/gmodule-visibility.h +34 -0
  25. package/include/glib-2.0/gobject/gobject-visibility.h +34 -0
  26. package/include/harfbuzz/hb-deprecated.h +4 -4
  27. package/include/harfbuzz/hb-font.h +120 -9
  28. package/include/harfbuzz/hb-version.h +3 -3
  29. package/include/hwy/abort.h +2 -19
  30. package/include/hwy/aligned_allocator.h +11 -7
  31. package/include/hwy/auto_tune.h +504 -0
  32. package/include/hwy/base.h +425 -104
  33. package/include/hwy/cache_control.h +16 -0
  34. package/include/hwy/detect_compiler_arch.h +32 -1
  35. package/include/hwy/detect_targets.h +251 -67
  36. package/include/hwy/foreach_target.h +35 -0
  37. package/include/hwy/highway.h +185 -76
  38. package/include/hwy/nanobenchmark.h +1 -19
  39. package/include/hwy/ops/arm_neon-inl.h +969 -458
  40. package/include/hwy/ops/arm_sve-inl.h +1137 -359
  41. package/include/hwy/ops/emu128-inl.h +97 -11
  42. package/include/hwy/ops/generic_ops-inl.h +1222 -34
  43. package/include/hwy/ops/loongarch_lasx-inl.h +4664 -0
  44. package/include/hwy/ops/loongarch_lsx-inl.h +5933 -0
  45. package/include/hwy/ops/ppc_vsx-inl.h +306 -126
  46. package/include/hwy/ops/rvv-inl.h +546 -51
  47. package/include/hwy/ops/scalar-inl.h +77 -22
  48. package/include/hwy/ops/set_macros-inl.h +133 -17
  49. package/include/hwy/ops/shared-inl.h +50 -10
  50. package/include/hwy/ops/wasm_128-inl.h +137 -92
  51. package/include/hwy/ops/x86_128-inl.h +773 -214
  52. package/include/hwy/ops/x86_256-inl.h +712 -255
  53. package/include/hwy/ops/x86_512-inl.h +429 -753
  54. package/include/hwy/ops/x86_avx3-inl.h +501 -0
  55. package/include/hwy/per_target.h +2 -1
  56. package/include/hwy/profiler.h +622 -486
  57. package/include/hwy/targets.h +62 -20
  58. package/include/hwy/timer-inl.h +8 -160
  59. package/include/hwy/timer.h +170 -3
  60. package/include/hwy/x86_cpuid.h +81 -0
  61. package/include/libheif/heif.h +16 -2603
  62. package/include/libheif/heif_aux_images.h +182 -0
  63. package/include/libheif/heif_brands.h +373 -0
  64. package/include/libheif/heif_color.h +357 -0
  65. package/include/libheif/heif_context.h +329 -0
  66. package/include/libheif/heif_cxx.h +21 -1
  67. package/include/libheif/heif_decoding.h +162 -0
  68. package/include/libheif/heif_encoding.h +391 -0
  69. package/include/libheif/heif_entity_groups.h +60 -0
  70. package/include/libheif/heif_error.h +302 -0
  71. package/include/libheif/heif_image.h +352 -0
  72. package/include/libheif/heif_image_handle.h +120 -0
  73. package/include/libheif/heif_items.h +45 -45
  74. package/include/libheif/heif_library.h +216 -0
  75. package/include/libheif/heif_metadata.h +133 -0
  76. package/include/libheif/heif_plugin.h +53 -41
  77. package/include/libheif/heif_properties.h +73 -36
  78. package/include/libheif/heif_regions.h +100 -100
  79. package/include/libheif/heif_security.h +102 -0
  80. package/include/libheif/heif_sequences.h +577 -0
  81. package/include/libheif/heif_tai_timestamps.h +202 -0
  82. package/include/libheif/heif_tiling.h +137 -0
  83. package/include/libheif/heif_uncompressed.h +109 -0
  84. package/include/libheif/heif_version.h +2 -2
  85. package/include/libpng16/png.h +35 -16
  86. package/include/libpng16/pngconf.h +1 -1
  87. package/include/libpng16/pnglibconf.h +1 -1
  88. package/include/librsvg-2.0/librsvg/rsvg-version.h +2 -2
  89. package/include/libxml2/libxml/HTMLparser.h +2 -2
  90. package/include/libxml2/libxml/parser.h +4 -2
  91. package/include/libxml2/libxml/xmlIO.h +2 -2
  92. package/include/libxml2/libxml/xmlerror.h +2 -1
  93. package/include/libxml2/libxml/xmlversion.h +4 -4
  94. package/include/pango-1.0/pango/pango-attributes.h +1 -1
  95. package/include/pango-1.0/pango/pango-features.h +2 -2
  96. package/include/pixman-1/pixman-version.h +2 -2
  97. package/include/pixman-1/pixman.h +11 -0
  98. package/include/png.h +35 -16
  99. package/include/pngconf.h +1 -1
  100. package/include/pnglibconf.h +1 -1
  101. package/include/vips/VImage8.h +59 -14
  102. package/include/vips/arithmetic.h +34 -34
  103. package/include/vips/basic.h +4 -0
  104. package/include/vips/buf.h +0 -5
  105. package/include/vips/colour.h +0 -6
  106. package/include/vips/connection.h +25 -37
  107. package/include/vips/enumtypes.h +11 -2
  108. package/include/vips/foreign.h +71 -43
  109. package/include/vips/format.h +5 -5
  110. package/include/vips/gate.h +0 -11
  111. package/include/vips/header.h +11 -11
  112. package/include/vips/image.h +7 -2
  113. package/include/vips/interpolate.h +0 -2
  114. package/include/vips/memory.h +4 -0
  115. package/include/vips/object.h +14 -18
  116. package/include/vips/operation.h +0 -2
  117. package/include/vips/private.h +50 -0
  118. package/include/vips/region.h +0 -2
  119. package/include/vips/thread.h +1 -9
  120. package/include/vips/threadpool.h +0 -6
  121. package/include/vips/type.h +12 -8
  122. package/include/vips/util.h +5 -73
  123. package/include/vips/vector.h +0 -4
  124. package/include/vips/version.h +5 -5
  125. package/include/webp/decode.h +11 -2
  126. package/include/webp/demux.h +2 -0
  127. package/include/webp/encode.h +2 -0
  128. package/include/webp/mux_types.h +1 -0
  129. package/include/webp/sharpyuv/sharpyuv.h +1 -1
  130. package/include/webp/types.h +2 -2
  131. package/include/zlib.h +3 -3
  132. package/package.json +1 -1
  133. package/versions.json +15 -15
  134. package/include/cpuinfo.h +0 -2319
  135. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-animation.h +0 -221
  136. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-autocleanups.h +0 -37
  137. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +0 -525
  138. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h +0 -40
  139. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +0 -115
  140. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +0 -481
  141. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +0 -113
  142. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-macros.h +0 -718
  143. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-marshal.h +0 -33
  144. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +0 -70
  145. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +0 -168
  146. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h +0 -46
  147. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h +0 -165
  148. package/include/harfbuzz/hb-subset-repacker.h +0 -81
  149. package/include/hwy/ops/tuple-inl.h +0 -125
  150. package/include/svt-av1/EbDebugMacros.h +0 -83
  151. package/include/svt-av1/EbSvtAv1.h +0 -432
  152. package/include/svt-av1/EbSvtAv1Enc.h +0 -1067
  153. package/include/svt-av1/EbSvtAv1ErrorCodes.h +0 -67
  154. package/include/svt-av1/EbSvtAv1Formats.h +0 -126
  155. package/include/svt-av1/EbSvtAv1Metadata.h +0 -156
@@ -58,8 +58,6 @@ extern "C" {
58
58
  (G_TYPE_INSTANCE_GET_CLASS((obj), \
59
59
  VIPS_TYPE_CONNECTION, VipsConnectionClass))
60
60
 
61
- /* Communicate with something like a socket or pipe.
62
- */
63
61
  typedef struct _VipsConnection {
64
62
  VipsObject parent_object;
65
63
 
@@ -116,13 +114,6 @@ void vips_pipe_read_limit_set(gint64 limit);
116
114
  (G_TYPE_INSTANCE_GET_CLASS((obj), \
117
115
  VIPS_TYPE_SOURCE, VipsSourceClass))
118
116
 
119
- /* Read from something like a socket, file or memory area and present the data
120
- * with a unified seek / read / map interface.
121
- *
122
- * During the header phase, we save data from unseekable sources in a buffer
123
- * so readers can rewind and read again. We don't buffer data during the
124
- * decode stage.
125
- */
126
117
  struct _VipsSource {
127
118
  VipsConnection parent_object;
128
119
 
@@ -194,14 +185,14 @@ typedef struct _VipsSourceClass {
194
185
  */
195
186
 
196
187
  /* Read from the source into the supplied buffer, args exactly as
197
- * read(2). Set errno on error.
188
+ * [`read()`](man:read(2)). Set errno on error.
198
189
  *
199
190
  * We must return gint64, since ssize_t is often defined as unsigned
200
191
  * on Windows.
201
192
  */
202
- gint64 (*read)(VipsSource *, void *, size_t);
193
+ gint64 (*read)(VipsSource *source, void *buffer, size_t length);
203
194
 
204
- /* Seek to a certain position, args exactly as lseek(2). Set errno on
195
+ /* Seek to a certain position, args exactly as [`lseek()`](man:lseek(2)). Set errno on
205
196
  * error.
206
197
  *
207
198
  * Unseekable sources should always return -1. VipsSource will then
@@ -210,7 +201,7 @@ typedef struct _VipsSourceClass {
210
201
  * We have to use int64 rather than off_t, since we must work on
211
202
  * Windows, where off_t can be 32-bits.
212
203
  */
213
- gint64 (*seek)(VipsSource *, gint64, int);
204
+ gint64 (*seek)(VipsSource *source, gint64 offset, int whence);
214
205
 
215
206
  } VipsSourceClass;
216
207
 
@@ -226,7 +217,7 @@ VipsSource *vips_source_new_from_blob(VipsBlob *blob);
226
217
  VIPS_API
227
218
  VipsSource *vips_source_new_from_target(VipsTarget *target);
228
219
  VIPS_API
229
- VipsSource *vips_source_new_from_memory(const void *data, size_t size);
220
+ VipsSource *vips_source_new_from_memory(const void *data, size_t length);
230
221
  VIPS_API
231
222
  VipsSource *vips_source_new_from_options(const char *options);
232
223
 
@@ -237,7 +228,7 @@ int vips_source_unminimise(VipsSource *source);
237
228
  VIPS_API
238
229
  int vips_source_decode(VipsSource *source);
239
230
  VIPS_API
240
- gint64 vips_source_read(VipsSource *source, void *data, size_t length);
231
+ gint64 vips_source_read(VipsSource *source, void *buffer, size_t length);
241
232
  VIPS_API
242
233
  gboolean vips_source_is_mappable(VipsSource *source);
243
234
  VIPS_API
@@ -273,9 +264,6 @@ gint64 vips_source_length(VipsSource *source);
273
264
  (G_TYPE_INSTANCE_GET_CLASS((obj), \
274
265
  VIPS_TYPE_SOURCE_CUSTOM, VipsSourceCustomClass))
275
266
 
276
- /* Subclass of source_custom with signals for handlers. This is supposed to be
277
- * useful for language bindings.
278
- */
279
267
  typedef struct _VipsSourceCustom {
280
268
  VipsSource parent_object;
281
269
 
@@ -288,8 +276,8 @@ typedef struct _VipsSourceCustomClass {
288
276
  * We must use gint64 everywhere since there's no G_TYPE_SIZE.
289
277
  */
290
278
 
291
- gint64 (*read)(VipsSourceCustom *, void *, gint64);
292
- gint64 (*seek)(VipsSourceCustom *, gint64, int);
279
+ gint64 (*read)(VipsSourceCustom *source, void *buffer, gint64 length);
280
+ gint64 (*seek)(VipsSourceCustom *source, gint64 offset, int whence);
293
281
 
294
282
  } VipsSourceCustomClass;
295
283
 
@@ -355,6 +343,10 @@ GInputStream *vips_g_input_stream_new_from_source(VipsSource *source);
355
343
  (G_TYPE_INSTANCE_GET_CLASS((obj), \
356
344
  VIPS_TYPE_SOURCE_G_INPUT_STREAM, VipsSourceGInputStreamClass))
357
345
 
346
+ /**
347
+ * VipsSourceGInputStream: (copy-func g_object_ref)
348
+ * (free-func g_object_unref)
349
+ */
358
350
  typedef struct _VipsSourceGInputStream {
359
351
  VipsSource parent_instance;
360
352
 
@@ -396,8 +388,6 @@ VipsSourceGInputStream *vips_source_g_input_stream_new(GInputStream *stream);
396
388
  */
397
389
  #define VIPS_TARGET_BUFFER_SIZE (8500)
398
390
 
399
- /* Output to something like a socket, pipe or memory area.
400
- */
401
391
  struct _VipsTarget {
402
392
  VipsConnection parent_object;
403
393
 
@@ -448,11 +438,11 @@ typedef struct _VipsTargetClass {
448
438
  * We must return gint64, since ssize_t is often defined as unsigned
449
439
  * on Windows.
450
440
  */
451
- gint64 (*write)(VipsTarget *, const void *, size_t);
441
+ gint64 (*write)(VipsTarget *target, const void *data, size_t length);
452
442
 
453
443
  /* Deprecated in favour of ::end.
454
444
  */
455
- void (*finish)(VipsTarget *);
445
+ void (*finish)(VipsTarget *target);
456
446
 
457
447
  /* libtiff needs to be able to seek and read on targets,
458
448
  * unfortunately.
@@ -461,24 +451,24 @@ typedef struct _VipsTargetClass {
461
451
  */
462
452
 
463
453
  /* Read from the target into the supplied buffer, args exactly as
464
- * read(2). Set errno on error.
454
+ * [`read()`](man:read(2)). Set errno on error.
465
455
  *
466
456
  * We must return gint64, since ssize_t is often defined as unsigned
467
457
  * on Windows.
468
458
  */
469
- gint64 (*read)(VipsTarget *, void *, size_t);
459
+ gint64 (*read)(VipsTarget *target, void *buffer, size_t length);
470
460
 
471
- /* Seek output. Args exactly as lseek(2).
461
+ /* Seek output. Args exactly as [`lseek()`](man:lseek(2)).
472
462
  *
473
463
  * We have to use int64 rather than off_t, since we must work on
474
464
  * Windows, where off_t can be 32-bits.
475
465
  */
476
- gint64 (*seek)(VipsTarget *, gint64 offset, int whence);
466
+ gint64 (*seek)(VipsTarget *target, gint64 offset, int whence);
477
467
 
478
468
  /* Output has been generated, so do any clearing up,
479
469
  * eg. copy the bytes we saved in memory to the target blob.
480
470
  */
481
- int (*end)(VipsTarget *);
471
+ int (*end)(VipsTarget *target);
482
472
 
483
473
  } VipsTargetClass;
484
474
 
@@ -492,7 +482,7 @@ VipsTarget *vips_target_new_to_file(const char *filename);
492
482
  VIPS_API
493
483
  VipsTarget *vips_target_new_to_memory(void);
494
484
  VIPS_API
495
- VipsTarget *vips_target_new_temp(VipsTarget *target);
485
+ VipsTarget *vips_target_new_temp(VipsTarget *based_on);
496
486
  VIPS_API
497
487
  int vips_target_write(VipsTarget *target, const void *data, size_t length);
498
488
  VIPS_API
@@ -537,8 +527,6 @@ int vips_target_write_amp(VipsTarget *target, const char *str);
537
527
 
538
528
  #define VIPS_TARGET_CUSTOM_BUFFER_SIZE (4096)
539
529
 
540
- /* Output to something like a socket, pipe or memory area.
541
- */
542
530
  typedef struct _VipsTargetCustom {
543
531
  VipsTarget parent_object;
544
532
 
@@ -551,11 +539,11 @@ typedef struct _VipsTargetCustomClass {
551
539
  * We must use gint64 everywhere since there's no G_TYPE_SIZE.
552
540
  */
553
541
 
554
- gint64 (*write)(VipsTargetCustom *, const void *, gint64);
555
- void (*finish)(VipsTargetCustom *);
556
- gint64 (*read)(VipsTargetCustom *, void *, gint64);
557
- gint64 (*seek)(VipsTargetCustom *, gint64, int);
558
- int (*end)(VipsTargetCustom *);
542
+ gint64 (*write)(VipsTargetCustom *target, const void *data, gint64 length);
543
+ void (*finish)(VipsTargetCustom *target);
544
+ gint64 (*read)(VipsTargetCustom *target, void *buffer, gint64 length);
545
+ gint64 (*seek)(VipsTargetCustom *target, gint64 offset, int whence);
546
+ int (*end)(VipsTargetCustom *target);
559
547
 
560
548
  } VipsTargetCustomClass;
561
549
 
@@ -89,8 +89,11 @@ VIPS_API
89
89
  GType vips_fail_on_get_type(void) G_GNUC_CONST;
90
90
  #define VIPS_TYPE_FAIL_ON (vips_fail_on_get_type())
91
91
  VIPS_API
92
- GType vips_saveable_get_type(void) G_GNUC_CONST;
93
- #define VIPS_TYPE_SAVEABLE (vips_saveable_get_type())
92
+ GType vips_foreign_saveable_get_type(void) G_GNUC_CONST;
93
+ #define VIPS_TYPE_FOREIGN_SAVEABLE (vips_foreign_saveable_get_type())
94
+ VIPS_API
95
+ GType vips_foreign_coding_get_type(void) G_GNUC_CONST;
96
+ #define VIPS_TYPE_FOREIGN_CODING (vips_foreign_coding_get_type())
94
97
  VIPS_API
95
98
  GType vips_foreign_keep_get_type(void) G_GNUC_CONST;
96
99
  #define VIPS_TYPE_FOREIGN_KEEP (vips_foreign_keep_get_type())
@@ -176,6 +179,12 @@ GType vips_size_get_type(void) G_GNUC_CONST;
176
179
  VIPS_API
177
180
  GType vips_token_get_type(void) G_GNUC_CONST;
178
181
  #define VIPS_TYPE_TOKEN (vips_token_get_type())
182
+ /* Deprecated enumerations */
183
+ #ifndef __GI_SCANNER__
184
+ VIPS_API
185
+ GType vips_saveable_get_type(void) G_GNUC_CONST;
186
+ #define VIPS_TYPE_SAVEABLE (vips_saveable_get_type())
187
+ #endif /*__GI_SCANNER__*/
179
188
  G_END_DECLS
180
189
 
181
190
  #endif /*VIPS_ENUM_TYPES_H*/
@@ -82,8 +82,6 @@ typedef struct _VipsForeignClass {
82
82
 
83
83
  } VipsForeignClass;
84
84
 
85
- /* Don't put spaces around void here, it breaks gtk-doc.
86
- */
87
85
  VIPS_API
88
86
  GType vips_foreign_get_type(void);
89
87
 
@@ -117,8 +115,8 @@ typedef enum /*< flags >*/ {
117
115
  * How sensitive loaders are to errors, from never stop (very insensitive), to
118
116
  * stop on the smallest warning (very sensitive).
119
117
  *
120
- * Each one implies the ones before it, so #VIPS_FAIL_ON_ERROR implies
121
- * #VIPS_FAIL_ON_TRUNCATED.
118
+ * Each one implies the ones before it, so [enum@Vips.FailOn.ERROR] implies
119
+ * [enum@Vips.FailOn.TRUNCATED].
122
120
  */
123
121
  typedef enum {
124
122
  VIPS_FAIL_ON_NONE,
@@ -207,7 +205,7 @@ typedef struct _VipsForeignLoadClass {
207
205
 
208
206
  /* Is a file in this format.
209
207
  *
210
- * This function should return %TRUE if the file contains an image of
208
+ * This function should return `TRUE` if the file contains an image of
211
209
  * this type. If you don't define this function, #VipsForeignLoad
212
210
  * will use @suffs instead.
213
211
  */
@@ -215,14 +213,14 @@ typedef struct _VipsForeignLoadClass {
215
213
 
216
214
  /* Is a buffer in this format.
217
215
  *
218
- * This function should return %TRUE if the buffer contains an image of
216
+ * This function should return `TRUE` if the buffer contains an image of
219
217
  * this type.
220
218
  */
221
219
  gboolean (*is_a_buffer)(const void *data, size_t size);
222
220
 
223
221
  /* Is a stream in this format.
224
222
  *
225
- * This function should return %TRUE if the stream contains an image of
223
+ * This function should return `TRUE` if the stream contains an image of
226
224
  * this type.
227
225
  */
228
226
  gboolean (*is_a_source)(VipsSource *source);
@@ -270,8 +268,6 @@ typedef struct _VipsForeignLoadClass {
270
268
  int (*load)(VipsForeignLoad *load);
271
269
  } VipsForeignLoadClass;
272
270
 
273
- /* Don't put spaces around void here, it breaks gtk-doc.
274
- */
275
271
  VIPS_API
276
272
  GType vips_foreign_load_get_type(void);
277
273
 
@@ -312,25 +308,52 @@ void vips_foreign_load_invalidate(VipsImage *image);
312
308
  VIPS_TYPE_FOREIGN_SAVE, VipsForeignSaveClass))
313
309
 
314
310
  /**
315
- * VipsSaveable:
316
- * @VIPS_SAVEABLE_MONO: 1 band (eg. CSV)
317
- * @VIPS_SAVEABLE_RGB: 1 or 3 bands (eg. PPM)
318
- * @VIPS_SAVEABLE_RGBA: 1, 2, 3 or 4 bands (eg. PNG)
319
- * @VIPS_SAVEABLE_RGBA_ONLY: 3 or 4 bands (eg. WEBP)
320
- * @VIPS_SAVEABLE_RGB_CMYK: 1, 3 or 4 bands (eg. JPEG)
321
- * @VIPS_SAVEABLE_ANY: any number of bands (eg. TIFF)
322
- *
323
- * See also: #VipsForeignSave.
311
+ * VipsForeignSaveable:
312
+ * @VIPS_FOREIGN_SAVEABLE_ANY: saver supports everything (eg. TIFF)
313
+ * @VIPS_FOREIGN_SAVEABLE_MONO: 1 band
314
+ * @VIPS_FOREIGN_SAVEABLE_RGB: 3 bands
315
+ * @VIPS_FOREIGN_SAVEABLE_CMYK: 4 bands
316
+ * @VIPS_FOREIGN_SAVEABLE_ALPHA: an extra band
317
+ *
318
+ * The set of image types supported by a saver.
319
+ *
320
+ * ::: seealso
321
+ * [class@ForeignSave].
324
322
  */
325
- typedef enum {
326
- VIPS_SAVEABLE_MONO,
327
- VIPS_SAVEABLE_RGB,
328
- VIPS_SAVEABLE_RGBA,
329
- VIPS_SAVEABLE_RGBA_ONLY,
330
- VIPS_SAVEABLE_RGB_CMYK,
331
- VIPS_SAVEABLE_ANY,
332
- VIPS_SAVEABLE_LAST
333
- } VipsSaveable;
323
+ typedef enum /*< flags >*/ {
324
+ VIPS_FOREIGN_SAVEABLE_ANY = 0,
325
+ VIPS_FOREIGN_SAVEABLE_MONO = 1,
326
+ VIPS_FOREIGN_SAVEABLE_RGB = 2,
327
+ VIPS_FOREIGN_SAVEABLE_CMYK = 4,
328
+ VIPS_FOREIGN_SAVEABLE_ALPHA = 8,
329
+
330
+ VIPS_FOREIGN_SAVEABLE_ALL = (VIPS_FOREIGN_SAVEABLE_MONO |
331
+ VIPS_FOREIGN_SAVEABLE_RGB |
332
+ VIPS_FOREIGN_SAVEABLE_CMYK |
333
+ VIPS_FOREIGN_SAVEABLE_ALPHA)
334
+ } VipsForeignSaveable;
335
+
336
+ /**
337
+ * VipsForeignCoding:
338
+ * @VIPS_FOREIGN_CODING_NONE: saver supports [enum@Vips.Coding.NONE]
339
+ * @VIPS_FOREIGN_CODING_LABQ: saver supports [enum@Vips.Coding.LABQ]
340
+ * @VIPS_FOREIGN_CODING_RAD: saver supports [enum@Vips.Coding.RAD]
341
+ * @VIPS_FOREIGN_CODING_ALL: saver supports all coding types
342
+ *
343
+ * The set of coding types supported by a saver.
344
+ *
345
+ * ::: seealso
346
+ * [enum@Coding].
347
+ */
348
+ typedef enum /*< flags >*/ {
349
+ VIPS_FOREIGN_CODING_NONE = 1 << 0,
350
+ VIPS_FOREIGN_CODING_LABQ = 1 << 1,
351
+ VIPS_FOREIGN_CODING_RAD = 1 << 2,
352
+
353
+ VIPS_FOREIGN_CODING_ALL = (VIPS_FOREIGN_CODING_NONE |
354
+ VIPS_FOREIGN_CODING_LABQ |
355
+ VIPS_FOREIGN_CODING_RAD)
356
+ } VipsForeignCoding;
334
357
 
335
358
  /**
336
359
  * VipsForeignKeep:
@@ -356,7 +379,7 @@ typedef enum /*< flags >*/ {
356
379
  VIPS_FOREIGN_KEEP_XMP |
357
380
  VIPS_FOREIGN_KEEP_IPTC |
358
381
  VIPS_FOREIGN_KEEP_ICC |
359
- VIPS_FOREIGN_KEEP_OTHER),
382
+ VIPS_FOREIGN_KEEP_OTHER)
360
383
  } VipsForeignKeep;
361
384
 
362
385
  typedef struct _VipsForeignSave {
@@ -405,11 +428,11 @@ typedef struct _VipsForeignSaveClass {
405
428
 
406
429
  /* How this format treats bands.
407
430
  *
408
- * @saveable describes the bands that your saver can handle. For
431
+ * @saveable describes the image types that your saver can handle. For
409
432
  * example, PPM images can have 1 or 3 bands (mono or RGB), so it
410
- * uses #VIPS_SAVEABLE_RGB.
433
+ * uses [flags@Vips.ForeignSaveable.MONO] | [flags@Vips.ForeignSaveable.RGB].
411
434
  */
412
- VipsSaveable saveable;
435
+ VipsForeignSaveable saveable;
413
436
 
414
437
  /* How this format treats band formats.
415
438
  *
@@ -419,16 +442,15 @@ typedef struct _VipsForeignSaveClass {
419
442
  */
420
443
  VipsBandFormat *format_table;
421
444
 
422
- /* The set of coding types this format can save. For example, jpeg can
423
- * only save NONE, so has NONE TRUE and RAD and LABQ FALSE.
445
+ /* The set of coding types this format can save. For example,
446
+ * [method@Image.vipssave] can save all coding types, so it
447
+ * uses [flags@Vips.ForeignCoding.ALL]
424
448
  *
425
- * Default NONE TRUE, RAD and LABQ FALSE.
449
+ * Default to [flags@Vips.ForeignCoding.NONE].
426
450
  */
427
- gboolean coding[VIPS_CODING_LAST];
451
+ VipsForeignCoding coding;
428
452
  } VipsForeignSaveClass;
429
453
 
430
- /* Don't put spaces around void here, it breaks gtk-doc.
431
- */
432
454
  VIPS_API
433
455
  GType vips_foreign_save_get_type(void);
434
456
 
@@ -634,6 +656,9 @@ VIPS_API
634
656
  int vips_fitsload(const char *filename, VipsImage **out, ...)
635
657
  G_GNUC_NULL_TERMINATED;
636
658
  VIPS_API
659
+ int vips_fitsload_source(VipsSource *source, VipsImage **out, ...)
660
+ G_GNUC_NULL_TERMINATED;
661
+ VIPS_API
637
662
  int vips_fitssave(VipsImage *in, const char *filename, ...)
638
663
  G_GNUC_NULL_TERMINATED;
639
664
 
@@ -747,15 +772,15 @@ int vips_pngsave_buffer(VipsImage *in, void **buf, size_t *len, ...)
747
772
  *
748
773
  * The netpbm file format to save as.
749
774
  *
750
- * #VIPS_FOREIGN_PPM_FORMAT_PBM images are single bit.
775
+ * [enum@Vips.ForeignPpmFormat.PBM] images are single bit.
751
776
  *
752
- * #VIPS_FOREIGN_PPM_FORMAT_PGM images are 8, 16, or 32-bits, one band.
777
+ * [enum@Vips.ForeignPpmFormat.PGM] images are 8, 16, or 32-bits, one band.
753
778
  *
754
- * #VIPS_FOREIGN_PPM_FORMAT_PPM images are 8, 16, or 32-bits, three bands.
779
+ * [enum@Vips.ForeignPpmFormat.PPM] images are 8, 16, or 32-bits, three bands.
755
780
  *
756
- * #VIPS_FOREIGN_PPM_FORMAT_PFM images are 32-bit float pixels.
781
+ * [enum@Vips.ForeignPpmFormat.PFM] images are 32-bit float pixels.
757
782
  *
758
- * #VIPS_FOREIGN_PPM_FORMAT_PNM images are anymap images -- the image format
783
+ * [enum@Vips.ForeignPpmFormat.PNM] images are anymap images -- the image format
759
784
  * is used to pick the saver.
760
785
  *
761
786
  */
@@ -772,6 +797,9 @@ VIPS_API
772
797
  int vips_ppmload(const char *filename, VipsImage **out, ...)
773
798
  G_GNUC_NULL_TERMINATED;
774
799
  VIPS_API
800
+ int vips_ppmload_buffer(void *buf, size_t len, VipsImage **out, ...)
801
+ G_GNUC_NULL_TERMINATED;
802
+ VIPS_API
775
803
  int vips_ppmload_source(VipsSource *source, VipsImage **out, ...)
776
804
  G_GNUC_NULL_TERMINATED;
777
805
  VIPS_API
@@ -982,7 +1010,7 @@ int vips_dzsave_target(VipsImage *in, VipsTarget *target, ...)
982
1010
  *
983
1011
  * The compression format to use inside a HEIF container.
984
1012
  *
985
- * This is assumed to use the same numbering as %heif_compression_format.
1013
+ * This is assumed to use the same numbering as `heif_compression_format`.
986
1014
  */
987
1015
  typedef enum {
988
1016
  VIPS_FOREIGN_HEIF_COMPRESSION_HEVC = 1,
@@ -76,23 +76,23 @@ typedef struct _VipsFormatClass {
76
76
 
77
77
  /* Is a file in this format.
78
78
  */
79
- gboolean (*is_a)(const char *);
79
+ gboolean (*is_a)(const char *filename);
80
80
 
81
81
  /* Read just the header into the VipsImage.
82
82
  */
83
- int (*header)(const char *, VipsImage *);
83
+ int (*header)(const char *filename, VipsImage *image);
84
84
 
85
85
  /* Load the whole image.
86
86
  */
87
- int (*load)(const char *, VipsImage *);
87
+ int (*load)(const char *filename, VipsImage *image);
88
88
 
89
89
  /* Write the VipsImage to the file in this format.
90
90
  */
91
- int (*save)(VipsImage *, const char *);
91
+ int (*save)(VipsImage *image, const char *filename);
92
92
 
93
93
  /* Get the flags for this file in this format.
94
94
  */
95
- VipsFormatFlags (*get_flags)(const char *);
95
+ VipsFormatFlags (*get_flags)(const char *filename);
96
96
 
97
97
  /* Loop over formats in this order, default 0. We need this because
98
98
  * some formats can be read by several loaders (eg. tiff can be read
@@ -69,20 +69,9 @@ extern "C" {
69
69
  } \
70
70
  G_STMT_END
71
71
 
72
- extern gboolean vips__thread_profile;
73
-
74
72
  VIPS_API
75
73
  void vips_profile_set(gboolean profile);
76
74
 
77
- void vips__thread_profile_attach(const char *thread_name);
78
- void vips__thread_profile_detach(void);
79
- void vips__thread_profile_stop(void);
80
-
81
- void vips__thread_gate_start(const char *gate_name);
82
- void vips__thread_gate_stop(const char *gate_name);
83
-
84
- void vips__thread_malloc_free(gint64 size);
85
-
86
75
  #endif /*VIPS_GATE_H*/
87
76
 
88
77
  #ifdef __cplusplus
@@ -73,7 +73,7 @@ extern "C" {
73
73
  * The name we use to attach an ICC profile. The file read and write
74
74
  * operations for TIFF, JPEG, PNG and others use this item of metadata to
75
75
  * attach and save ICC profiles. The profile is updated by the
76
- * vips_icc_transform() operations.
76
+ * [method@Image.icc_transform] operations.
77
77
  */
78
78
  #define VIPS_META_ICC_NAME "icc-profile-data"
79
79
 
@@ -117,8 +117,8 @@ extern "C" {
117
117
  /**
118
118
  * VIPS_META_SEQUENTIAL:
119
119
  *
120
- * Images loaded via vips_sequential() have this int field defined. Some
121
- * operations (eg. vips_shrinkv()) add extra caches if they see it on their
120
+ * Images loaded via [method@Image.sequential] have this int field defined. Some
121
+ * operations (eg. [method@Image.shrinkv]) add extra caches if they see it on their
122
122
  * input.
123
123
  */
124
124
  #define VIPS_META_SEQUENTIAL "vips-sequential"
@@ -129,21 +129,21 @@ extern "C" {
129
129
  * The orientation tag for this image. An int from 1 - 8 using the standard
130
130
  * exif/tiff meanings.
131
131
  *
132
- * * 1 - The 0th row represents the visual top of the image, and the 0th column
132
+ * - 1 - The 0th row represents the visual top of the image, and the 0th column
133
133
  * represents the visual left-hand side.
134
- * * 2 - The 0th row represents the visual top of the image, and the 0th column
134
+ * - 2 - The 0th row represents the visual top of the image, and the 0th column
135
135
  * represents the visual right-hand side.
136
- * * 3 - The 0th row represents the visual bottom of the image, and the 0th
136
+ * - 3 - The 0th row represents the visual bottom of the image, and the 0th
137
137
  * column represents the visual right-hand side.
138
- * * 4 - The 0th row represents the visual bottom of the image, and the 0th
138
+ * - 4 - The 0th row represents the visual bottom of the image, and the 0th
139
139
  * column represents the visual left-hand side.
140
- * * 5 - The 0th row represents the visual left-hand side of the image, and the
140
+ * - 5 - The 0th row represents the visual left-hand side of the image, and the
141
141
  * 0th column represents the visual top.
142
- * * 6 - The 0th row represents the visual right-hand side of the image, and the
142
+ * - 6 - The 0th row represents the visual right-hand side of the image, and the
143
143
  * 0th column represents the visual top.
144
- * * 7 - The 0th row represents the visual right-hand side of the image, and the
144
+ * - 7 - The 0th row represents the visual right-hand side of the image, and the
145
145
  * 0th column represents the visual bottom.
146
- * * 8 - The 0th row represents the visual left-hand side of the image, and the
146
+ * - 8 - The 0th row represents the visual left-hand side of the image, and the
147
147
  * 0th column represents the visual bottom.
148
148
  */
149
149
  #define VIPS_META_ORIENTATION "orientation"
@@ -367,8 +367,6 @@ typedef struct _VipsImageClass {
367
367
 
368
368
  } VipsImageClass;
369
369
 
370
- /* Don't put spaces around void here, it breaks gtk-doc.
371
- */
372
370
  VIPS_API
373
371
  GType vips_image_get_type(void);
374
372
 
@@ -444,6 +442,13 @@ void vips_image_minimise_all(VipsImage *image);
444
442
  VIPS_API
445
443
  gboolean vips_image_is_sequential(VipsImage *image);
446
444
 
445
+ VIPS_API
446
+ void vips_image_preeval(VipsImage *image);
447
+ VIPS_API
448
+ void vips_image_eval(VipsImage *image, guint64 processed);
449
+ VIPS_API
450
+ void vips_image_posteval(VipsImage *image);
451
+
447
452
  VIPS_API
448
453
  void vips_image_set_progress(VipsImage *image, gboolean progress);
449
454
  VIPS_API
@@ -91,8 +91,6 @@ typedef struct _VipsInterpolateClass {
91
91
  int window_offset;
92
92
  } VipsInterpolateClass;
93
93
 
94
- /* Don't put spaces around void here, it breaks gtk-doc.
95
- */
96
94
  VIPS_API
97
95
  GType vips_interpolate_get_type(void);
98
96
  VIPS_API
@@ -71,6 +71,8 @@ extern "C" {
71
71
  #define VIPS_ARRAY(OBJ, N, T) \
72
72
  ((T *) VIPS_MALLOC(OBJ, (N) * sizeof(T)))
73
73
 
74
+ #ifndef __GI_SCANNER__
75
+
74
76
  G_DEFINE_AUTOPTR_CLEANUP_FUNC(VipsImage, g_object_unref)
75
77
  G_DEFINE_AUTOPTR_CLEANUP_FUNC(VipsObject, g_object_unref)
76
78
  G_DEFINE_AUTOPTR_CLEANUP_FUNC(VipsRegion, g_object_unref)
@@ -89,6 +91,8 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(VipsOperation, g_object_unref)
89
91
  G_DEFINE_AUTOPTR_CLEANUP_FUNC(VipsArrayDouble, VipsArrayDouble_unref)
90
92
  G_DEFINE_AUTOPTR_CLEANUP_FUNC(VipsArrayImage, VipsArrayImage_unref)
91
93
 
94
+ #endif /* !__GI_SCANNER__ */
95
+
92
96
  VIPS_API
93
97
  void *vips_malloc(VipsObject *object, size_t size);
94
98
  VIPS_API
@@ -137,8 +137,7 @@ typedef enum /*< flags >*/ {
137
137
  #define VIPS_ARG_INTERPOLATE(CLASS, NAME, PRIORITY, LONG, DESC, FLAGS, OFFSET) \
138
138
  VIPS_ARG_OBJECT(CLASS, NAME, PRIORITY, LONG, DESC, FLAGS, OFFSET, VIPS_TYPE_INTERPOLATE)
139
139
 
140
- #define VIPS_ARG_BOOL(CLASS, NAME, PRIORITY, LONG, DESC, \
141
- FLAGS, OFFSET, VALUE) \
140
+ #define VIPS_ARG_BOOL(CLASS, NAME, PRIORITY, LONG, DESC, FLAGS, OFFSET, VALUE) \
142
141
  { \
143
142
  GParamSpec *pspec; \
144
143
  \
@@ -151,8 +150,7 @@ typedef enum /*< flags >*/ {
151
150
  pspec, (VipsArgumentFlags) (FLAGS), (PRIORITY), (OFFSET)); \
152
151
  }
153
152
 
154
- #define VIPS_ARG_DOUBLE(CLASS, NAME, PRIORITY, LONG, DESC, \
155
- FLAGS, OFFSET, MIN, MAX, VALUE) \
153
+ #define VIPS_ARG_DOUBLE(CLASS, NAME, PRIORITY, LONG, DESC, FLAGS, OFFSET, MIN, MAX, VALUE) \
156
154
  { \
157
155
  GParamSpec *pspec; \
158
156
  \
@@ -165,8 +163,7 @@ typedef enum /*< flags >*/ {
165
163
  pspec, (VipsArgumentFlags) (FLAGS), (PRIORITY), (OFFSET)); \
166
164
  }
167
165
 
168
- #define VIPS_ARG_BOXED(CLASS, NAME, PRIORITY, LONG, DESC, \
169
- FLAGS, OFFSET, TYPE) \
166
+ #define VIPS_ARG_BOXED(CLASS, NAME, PRIORITY, LONG, DESC, FLAGS, OFFSET, TYPE) \
170
167
  { \
171
168
  GParamSpec *pspec; \
172
169
  \
@@ -179,8 +176,7 @@ typedef enum /*< flags >*/ {
179
176
  pspec, (VipsArgumentFlags) (FLAGS), (PRIORITY), (OFFSET)); \
180
177
  }
181
178
 
182
- #define VIPS_ARG_INT(CLASS, NAME, PRIORITY, LONG, DESC, \
183
- FLAGS, OFFSET, MIN, MAX, VALUE) \
179
+ #define VIPS_ARG_INT(CLASS, NAME, PRIORITY, LONG, DESC, FLAGS, OFFSET, MIN, MAX, VALUE) \
184
180
  { \
185
181
  GParamSpec *pspec; \
186
182
  \
@@ -193,8 +189,7 @@ typedef enum /*< flags >*/ {
193
189
  pspec, (VipsArgumentFlags) (FLAGS), (PRIORITY), (OFFSET)); \
194
190
  }
195
191
 
196
- #define VIPS_ARG_UINT64(CLASS, NAME, PRIORITY, LONG, DESC, \
197
- FLAGS, OFFSET, MIN, MAX, VALUE) \
192
+ #define VIPS_ARG_UINT64(CLASS, NAME, PRIORITY, LONG, DESC, FLAGS, OFFSET, MIN, MAX, VALUE) \
198
193
  { \
199
194
  GParamSpec *pspec; \
200
195
  \
@@ -207,8 +202,7 @@ typedef enum /*< flags >*/ {
207
202
  pspec, (VipsArgumentFlags) (FLAGS), (PRIORITY), (OFFSET)); \
208
203
  }
209
204
 
210
- #define VIPS_ARG_ENUM(CLASS, NAME, PRIORITY, LONG, DESC, \
211
- FLAGS, OFFSET, TYPE, VALUE) \
205
+ #define VIPS_ARG_ENUM(CLASS, NAME, PRIORITY, LONG, DESC, FLAGS, OFFSET, TYPE, VALUE) \
212
206
  { \
213
207
  GParamSpec *pspec; \
214
208
  \
@@ -221,8 +215,7 @@ typedef enum /*< flags >*/ {
221
215
  pspec, (VipsArgumentFlags) (FLAGS), (PRIORITY), (OFFSET)); \
222
216
  }
223
217
 
224
- #define VIPS_ARG_FLAGS(CLASS, NAME, PRIORITY, LONG, DESC, \
225
- FLAGS, OFFSET, TYPE, VALUE) \
218
+ #define VIPS_ARG_FLAGS(CLASS, NAME, PRIORITY, LONG, DESC, FLAGS, OFFSET, TYPE, VALUE) \
226
219
  { \
227
220
  GParamSpec *pspec; \
228
221
  \
@@ -235,8 +228,7 @@ typedef enum /*< flags >*/ {
235
228
  pspec, (VipsArgumentFlags) (FLAGS), (PRIORITY), (OFFSET)); \
236
229
  }
237
230
 
238
- #define VIPS_ARG_STRING(CLASS, NAME, PRIORITY, LONG, DESC, FLAGS, OFFSET, \
239
- VALUE) \
231
+ #define VIPS_ARG_STRING(CLASS, NAME, PRIORITY, LONG, DESC, FLAGS, OFFSET, VALUE) \
240
232
  { \
241
233
  GParamSpec *pspec; \
242
234
  \
@@ -318,8 +310,14 @@ typedef GHashTable VipsArgumentTable;
318
310
 
319
311
  VIPS_API
320
312
  int vips_argument_get_id(void);
313
+
314
+ #ifndef __GI_SCANNER__
315
+
321
316
  void vips__object_set_member(VipsObject *object, GParamSpec *pspec,
322
317
  GObject **member, GObject *argument);
318
+
319
+ #endif /* !__GI_SCANNER__ */
320
+
323
321
  typedef void *(*VipsArgumentMapFn)(VipsObject *object, GParamSpec *pspec,
324
322
  VipsArgumentClass *argument_class,
325
323
  VipsArgumentInstance *argument_instance, void *a, void *b);
@@ -626,8 +624,6 @@ void vips_object_print_name(VipsObject *object);
626
624
  VIPS_API
627
625
  gboolean vips_object_sanity(VipsObject *object);
628
626
 
629
- /* Don't put spaces around void here, it breaks gtk-doc.
630
- */
631
627
  VIPS_API
632
628
  GType vips_object_get_type(void);
633
629