@revizly/sharp-libvips-dev 1.0.18 → 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 (159) 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 +62 -14
  102. package/include/vips/arithmetic.h +34 -34
  103. package/include/vips/basic.h +16 -0
  104. package/include/vips/buf.h +0 -5
  105. package/include/vips/colour.h +6 -7
  106. package/include/vips/connection.h +25 -37
  107. package/include/vips/enumtypes.h +11 -2
  108. package/include/vips/foreign.h +73 -43
  109. package/include/vips/format.h +7 -5
  110. package/include/vips/gate.h +0 -11
  111. package/include/vips/header.h +11 -11
  112. package/include/vips/image.h +8 -3
  113. package/include/vips/interpolate.h +0 -2
  114. package/include/vips/memory.h +4 -0
  115. package/include/vips/mosaicing.h +4 -0
  116. package/include/vips/object.h +14 -18
  117. package/include/vips/operation.h +0 -2
  118. package/include/vips/private.h +50 -2
  119. package/include/vips/region.h +1 -3
  120. package/include/vips/resample.h +2 -0
  121. package/include/vips/semaphore.h +8 -3
  122. package/include/vips/thread.h +1 -24
  123. package/include/vips/threadpool.h +0 -6
  124. package/include/vips/type.h +13 -9
  125. package/include/vips/util.h +17 -98
  126. package/include/vips/vector.h +0 -4
  127. package/include/vips/version.h +6 -6
  128. package/include/vips/vips.h +1 -0
  129. package/include/webp/decode.h +11 -2
  130. package/include/webp/demux.h +2 -0
  131. package/include/webp/encode.h +2 -0
  132. package/include/webp/mux_types.h +1 -0
  133. package/include/webp/sharpyuv/sharpyuv.h +1 -1
  134. package/include/webp/types.h +2 -2
  135. package/include/zlib.h +3 -3
  136. package/package.json +1 -1
  137. package/versions.json +15 -15
  138. package/include/cpuinfo.h +0 -2319
  139. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-animation.h +0 -221
  140. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-autocleanups.h +0 -37
  141. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +0 -525
  142. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h +0 -40
  143. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +0 -115
  144. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +0 -481
  145. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +0 -113
  146. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-macros.h +0 -718
  147. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-marshal.h +0 -33
  148. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +0 -70
  149. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +0 -168
  150. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h +0 -46
  151. package/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h +0 -165
  152. package/include/harfbuzz/hb-subset-repacker.h +0 -81
  153. package/include/hwy/ops/tuple-inl.h +0 -125
  154. package/include/svt-av1/EbDebugMacros.h +0 -83
  155. package/include/svt-av1/EbSvtAv1.h +0 -432
  156. package/include/svt-av1/EbSvtAv1Enc.h +0 -1067
  157. package/include/svt-av1/EbSvtAv1ErrorCodes.h +0 -67
  158. package/include/svt-av1/EbSvtAv1Formats.h +0 -126
  159. package/include/svt-av1/EbSvtAv1Metadata.h +0 -156
@@ -15,21 +15,21 @@
15
15
  *
16
16
  * the version string like "1.2.3"
17
17
  */
18
- #define LIBXML_DOTTED_VERSION "2.14.2"
18
+ #define LIBXML_DOTTED_VERSION "2.14.5"
19
19
 
20
20
  /**
21
21
  * LIBXML_VERSION:
22
22
  *
23
23
  * the version number: 1.2.3 value is 10203
24
24
  */
25
- #define LIBXML_VERSION 21402
25
+ #define LIBXML_VERSION 21405
26
26
 
27
27
  /**
28
28
  * LIBXML_VERSION_STRING:
29
29
  *
30
30
  * the version number string, 1.2.3 value is "10203"
31
31
  */
32
- #define LIBXML_VERSION_STRING "21402"
32
+ #define LIBXML_VERSION_STRING "21405"
33
33
 
34
34
  /**
35
35
  * LIBXML_VERSION_EXTRA:
@@ -44,7 +44,7 @@
44
44
  * Macro to check that the libxml version in use is compatible with
45
45
  * the version the software has been compiled against
46
46
  */
47
- #define LIBXML_TEST_VERSION xmlCheckVersion(21402);
47
+ #define LIBXML_TEST_VERSION xmlCheckVersion(21405);
48
48
 
49
49
  /**
50
50
  * LIBXML_THREAD_ENABLED:
@@ -288,7 +288,7 @@ typedef enum {
288
288
  #define PANGO_ATTR_INDEX_TO_TEXT_END ((guint)(G_MAXUINT + 0))
289
289
 
290
290
  /**
291
- * PangoAttribute:
291
+ * PangoAttribute: (copy-func pango_attribute_copy) (free-func pango_attribute_destroy)
292
292
  * @klass: the class structure holding information about the type of the attribute
293
293
  * @start_index: the start index of the range (in bytes).
294
294
  * @end_index: end index of the range (in bytes). The character at this index
@@ -3,8 +3,8 @@
3
3
 
4
4
  #define PANGO_VERSION_MAJOR 1
5
5
  #define PANGO_VERSION_MINOR 56
6
- #define PANGO_VERSION_MICRO 3
6
+ #define PANGO_VERSION_MICRO 4
7
7
 
8
- #define PANGO_VERSION_STRING "1.56.3"
8
+ #define PANGO_VERSION_STRING "1.56.4"
9
9
 
10
10
  #endif /* PANGO_FEATURES_H */
@@ -33,9 +33,9 @@
33
33
 
34
34
  #define PIXMAN_VERSION_MAJOR 0
35
35
  #define PIXMAN_VERSION_MINOR 46
36
- #define PIXMAN_VERSION_MICRO 0
36
+ #define PIXMAN_VERSION_MICRO 4
37
37
 
38
- #define PIXMAN_VERSION_STRING "0.46.0"
38
+ #define PIXMAN_VERSION_STRING "0.46.4"
39
39
 
40
40
  #define PIXMAN_VERSION_ENCODE(major, minor, micro) ( \
41
41
  ((major) * 10000) \
@@ -826,6 +826,11 @@ void pixman_region64f_translate (pixman_region64f_t *
826
826
  int x,
827
827
  int y);
828
828
 
829
+ PIXMAN_API
830
+ void pixman_region64f_translatef (pixman_region64f_t *region,
831
+ double x,
832
+ double y);
833
+
829
834
  PIXMAN_API
830
835
  pixman_bool_t pixman_region64f_copy (pixman_region64f_t *dest,
831
836
  const pixman_region64f_t *source);
@@ -888,6 +893,12 @@ pixman_bool_t pixman_region64f_contains_point (const pixman_region6
888
893
  int y,
889
894
  pixman_box64f_t *box);
890
895
 
896
+ PIXMAN_API
897
+ pixman_bool_t pixman_region64f_contains_pointf (const pixman_region64f_t *region,
898
+ double x,
899
+ double y,
900
+ pixman_box64f_t *box);
901
+
891
902
  PIXMAN_API
892
903
  pixman_region_overlap_t pixman_region64f_contains_rectangle(const pixman_region64f_t *region,
893
904
  const pixman_box64f_t *prect);
package/include/png.h CHANGED
@@ -1,6 +1,6 @@
1
1
  /* png.h - header file for PNG reference library
2
2
  *
3
- * libpng version 1.6.48
3
+ * libpng version 1.6.50
4
4
  *
5
5
  * Copyright (c) 2018-2025 Cosmin Truta
6
6
  * Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson
@@ -14,7 +14,7 @@
14
14
  * libpng versions 0.89, June 1996, through 0.96, May 1997: Andreas Dilger
15
15
  * libpng versions 0.97, January 1998, through 1.6.35, July 2018:
16
16
  * Glenn Randers-Pehrson
17
- * libpng versions 1.6.36, December 2018, through 1.6.48, April 2025:
17
+ * libpng versions 1.6.36, December 2018, through 1.6.50, July 2025:
18
18
  * Cosmin Truta
19
19
  * See also "Contributing Authors", below.
20
20
  */
@@ -238,7 +238,7 @@
238
238
  * ...
239
239
  * 1.5.30 15 10530 15.so.15.30[.0]
240
240
  * ...
241
- * 1.6.48 16 10648 16.so.16.48[.0]
241
+ * 1.6.50 16 10650 16.so.16.50[.0]
242
242
  *
243
243
  * Henceforth the source version will match the shared-library major and
244
244
  * minor numbers; the shared-library major version number will be used for
@@ -274,7 +274,7 @@
274
274
  */
275
275
 
276
276
  /* Version information for png.h - this should match the version in png.c */
277
- #define PNG_LIBPNG_VER_STRING "1.6.48"
277
+ #define PNG_LIBPNG_VER_STRING "1.6.50"
278
278
  #define PNG_HEADER_VERSION_STRING " libpng version " PNG_LIBPNG_VER_STRING "\n"
279
279
 
280
280
  /* The versions of shared library builds should stay in sync, going forward */
@@ -285,7 +285,7 @@
285
285
  /* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */
286
286
  #define PNG_LIBPNG_VER_MAJOR 1
287
287
  #define PNG_LIBPNG_VER_MINOR 6
288
- #define PNG_LIBPNG_VER_RELEASE 48
288
+ #define PNG_LIBPNG_VER_RELEASE 50
289
289
 
290
290
  /* This should be zero for a public release, or non-zero for a
291
291
  * development version.
@@ -316,7 +316,7 @@
316
316
  * From version 1.0.1 it is:
317
317
  * XXYYZZ, where XX=major, YY=minor, ZZ=release
318
318
  */
319
- #define PNG_LIBPNG_VER 10648 /* 1.6.48 */
319
+ #define PNG_LIBPNG_VER 10650 /* 1.6.50 */
320
320
 
321
321
  /* Library configuration: these options cannot be changed after
322
322
  * the library has been built.
@@ -426,7 +426,7 @@ extern "C" {
426
426
  /* This triggers a compiler error in png.c, if png.c and png.h
427
427
  * do not agree upon the version number.
428
428
  */
429
- typedef char* png_libpng_version_1_6_48;
429
+ typedef char* png_libpng_version_1_6_50;
430
430
 
431
431
  /* Basic control structions. Read libpng-manual.txt or libpng.3 for more info.
432
432
  *
@@ -3303,26 +3303,45 @@ PNG_EXPORT(245, int, png_image_write_to_memory, (png_imagep image, void *memory,
3303
3303
  * selected at run time.
3304
3304
  */
3305
3305
  #ifdef PNG_SET_OPTION_SUPPORTED
3306
+
3307
+ /* HARDWARE: ARM Neon SIMD instructions supported */
3306
3308
  #ifdef PNG_ARM_NEON_API_SUPPORTED
3307
- # define PNG_ARM_NEON 0 /* HARDWARE: ARM Neon SIMD instructions supported */
3309
+ # define PNG_ARM_NEON 0
3308
3310
  #endif
3309
- #define PNG_MAXIMUM_INFLATE_WINDOW 2 /* SOFTWARE: force maximum window */
3310
- #define PNG_SKIP_sRGB_CHECK_PROFILE 4 /* SOFTWARE: Check ICC profile for sRGB */
3311
+
3312
+ /* SOFTWARE: Force maximum window */
3313
+ #define PNG_MAXIMUM_INFLATE_WINDOW 2
3314
+
3315
+ /* SOFTWARE: Check ICC profile for sRGB */
3316
+ #define PNG_SKIP_sRGB_CHECK_PROFILE 4
3317
+
3318
+ /* HARDWARE: MIPS MSA SIMD instructions supported */
3311
3319
  #ifdef PNG_MIPS_MSA_API_SUPPORTED
3312
- # define PNG_MIPS_MSA 6 /* HARDWARE: MIPS Msa SIMD instructions supported */
3320
+ # define PNG_MIPS_MSA 6
3313
3321
  #endif
3322
+
3323
+ /* SOFTWARE: Disable Adler32 check on IDAT */
3314
3324
  #ifdef PNG_DISABLE_ADLER32_CHECK_SUPPORTED
3315
- # define PNG_IGNORE_ADLER32 8 /* SOFTWARE: disable Adler32 check on IDAT */
3325
+ # define PNG_IGNORE_ADLER32 8
3316
3326
  #endif
3327
+
3328
+ /* HARDWARE: PowerPC VSX SIMD instructions supported */
3317
3329
  #ifdef PNG_POWERPC_VSX_API_SUPPORTED
3318
- # define PNG_POWERPC_VSX 10 /* HARDWARE: PowerPC VSX SIMD instructions
3319
- * supported */
3330
+ # define PNG_POWERPC_VSX 10
3320
3331
  #endif
3332
+
3333
+ /* HARDWARE: MIPS MMI SIMD instructions supported */
3321
3334
  #ifdef PNG_MIPS_MMI_API_SUPPORTED
3322
- # define PNG_MIPS_MMI 12 /* HARDWARE: MIPS MMI SIMD instructions supported */
3335
+ # define PNG_MIPS_MMI 12
3336
+ #endif
3337
+
3338
+ /* HARDWARE: RISC-V RVV SIMD instructions supported */
3339
+ #ifdef PNG_RISCV_RVV_API_SUPPORTED
3340
+ # define PNG_RISCV_RVV 14
3323
3341
  #endif
3324
3342
 
3325
- #define PNG_OPTION_NEXT 14 /* Next option - numbers must be even */
3343
+ /* Next option - numbers must be even */
3344
+ #define PNG_OPTION_NEXT 16
3326
3345
 
3327
3346
  /* Return values: NOTE: there are four values and 'off' is *not* zero */
3328
3347
  #define PNG_OPTION_UNSET 0 /* Unset - defaults to off */
package/include/pngconf.h CHANGED
@@ -1,6 +1,6 @@
1
1
  /* pngconf.h - machine-configurable file for libpng
2
2
  *
3
- * libpng version 1.6.48
3
+ * libpng version 1.6.50
4
4
  *
5
5
  * Copyright (c) 2018-2025 Cosmin Truta
6
6
  * Copyright (c) 1998-2002,2004,2006-2016,2018 Glenn Randers-Pehrson
@@ -1,6 +1,6 @@
1
1
  /* pnglibconf.h - library build configuration */
2
2
 
3
- /* libpng version 1.6.48 */
3
+ /* libpng version 1.6.50 */
4
4
 
5
5
  /* Copyright (c) 2018-2025 Cosmin Truta */
6
6
  /* Copyright (c) 1998-2002,2004,2006-2018 Glenn Randers-Pehrson */
@@ -2082,6 +2082,7 @@ public:
2082
2082
 
2083
2083
  // headers for vips operations
2084
2084
  // this file is generated automatically, do not edit!
2085
+ // clang-format off
2085
2086
 
2086
2087
  /**
2087
2088
  * Transform lch to cmc.
@@ -3276,6 +3277,7 @@ public:
3276
3277
  * - **reuse** -- Reuse palette from input, bool.
3277
3278
  * - **interpalette_maxerror** -- Maximum inter-palette error for palette reusage, double.
3278
3279
  * - **interlace** -- Generate an interlaced (progressive) GIF, bool.
3280
+ * - **keep_duplicate_frames** -- Keep duplicate frames in the output instead of combining them, bool.
3279
3281
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3280
3282
  * - **background** -- Background value, std::vector<double>.
3281
3283
  * - **page_height** -- Set page height for multipage save, int.
@@ -3297,6 +3299,7 @@ public:
3297
3299
  * - **reuse** -- Reuse palette from input, bool.
3298
3300
  * - **interpalette_maxerror** -- Maximum inter-palette error for palette reusage, double.
3299
3301
  * - **interlace** -- Generate an interlaced (progressive) GIF, bool.
3302
+ * - **keep_duplicate_frames** -- Keep duplicate frames in the output instead of combining them, bool.
3300
3303
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3301
3304
  * - **background** -- Background value, std::vector<double>.
3302
3305
  * - **page_height** -- Set page height for multipage save, int.
@@ -3318,6 +3321,7 @@ public:
3318
3321
  * - **reuse** -- Reuse palette from input, bool.
3319
3322
  * - **interpalette_maxerror** -- Maximum inter-palette error for palette reusage, double.
3320
3323
  * - **interlace** -- Generate an interlaced (progressive) GIF, bool.
3324
+ * - **keep_duplicate_frames** -- Keep duplicate frames in the output instead of combining them, bool.
3321
3325
  * - **keep** -- Which metadata to retain, VipsForeignKeep.
3322
3326
  * - **background** -- Background value, std::vector<double>.
3323
3327
  * - **page_height** -- Set page height for multipage save, int.
@@ -3762,6 +3766,7 @@ public:
3762
3766
  *
3763
3767
  * **Optional parameters**
3764
3768
  * - **page** -- Load this page from the image, int.
3769
+ * - **oneshot** -- Load images a frame at a time, bool.
3765
3770
  * - **memory** -- Force open via memory, bool.
3766
3771
  * - **access** -- Required access pattern for this file, VipsAccess.
3767
3772
  * - **fail_on** -- Error level to fail on, VipsFailOn.
@@ -3778,6 +3783,7 @@ public:
3778
3783
  *
3779
3784
  * **Optional parameters**
3780
3785
  * - **page** -- Load this page from the image, int.
3786
+ * - **oneshot** -- Load images a frame at a time, bool.
3781
3787
  * - **memory** -- Force open via memory, bool.
3782
3788
  * - **access** -- Required access pattern for this file, VipsAccess.
3783
3789
  * - **fail_on** -- Error level to fail on, VipsFailOn.
@@ -3794,6 +3800,7 @@ public:
3794
3800
  *
3795
3801
  * **Optional parameters**
3796
3802
  * - **page** -- Load this page from the image, int.
3803
+ * - **oneshot** -- Load images a frame at a time, bool.
3797
3804
  * - **memory** -- Force open via memory, bool.
3798
3805
  * - **access** -- Required access pattern for this file, VipsAccess.
3799
3806
  * - **fail_on** -- Error level to fail on, VipsFailOn.
@@ -4517,7 +4524,7 @@ public:
4517
4524
  static VImage matload(const char *filename, VOption *options = nullptr);
4518
4525
 
4519
4526
  /**
4520
- * Invert an matrix.
4527
+ * Invert a matrix.
4521
4528
  * @param options Set of options.
4522
4529
  * @return Output matrix.
4523
4530
  */
@@ -4553,6 +4560,14 @@ public:
4553
4560
  */
4554
4561
  static VImage matrixload_source(VSource source, VOption *options = nullptr);
4555
4562
 
4563
+ /**
4564
+ * Multiply two matrices.
4565
+ * @param right Second matrix to multiply.
4566
+ * @param options Set of options.
4567
+ * @return Output matrix.
4568
+ */
4569
+ VImage matrixmultiply(VImage right, VOption *options = nullptr) const;
4570
+
4556
4571
  /**
4557
4572
  * Print matrix.
4558
4573
  *
@@ -5059,7 +5074,22 @@ public:
5059
5074
  static VImage ppmload(const char *filename, VOption *options = nullptr);
5060
5075
 
5061
5076
  /**
5062
- * Load ppm base class.
5077
+ * Load ppm from buffer.
5078
+ *
5079
+ * **Optional parameters**
5080
+ * - **memory** -- Force open via memory, bool.
5081
+ * - **access** -- Required access pattern for this file, VipsAccess.
5082
+ * - **fail_on** -- Error level to fail on, VipsFailOn.
5083
+ * - **revalidate** -- Don't use a cached result for this operation, bool.
5084
+ *
5085
+ * @param buffer Buffer to load from.
5086
+ * @param options Set of options.
5087
+ * @return Output image.
5088
+ */
5089
+ static VImage ppmload_buffer(VipsBlob *buffer, VOption *options = nullptr);
5090
+
5091
+ /**
5092
+ * Load ppm from source.
5063
5093
  *
5064
5094
  * **Optional parameters**
5065
5095
  * - **memory** -- Force open via memory, bool.
@@ -5410,6 +5440,15 @@ public:
5410
5440
  */
5411
5441
  VImage remainder_const(std::vector<double> c, VOption *options = nullptr) const;
5412
5442
 
5443
+ /**
5444
+ * Rebuild an mosaiced image.
5445
+ * @param old_str Search for this string.
5446
+ * @param new_str And swap for this string.
5447
+ * @param options Set of options.
5448
+ * @return Output image.
5449
+ */
5450
+ VImage remosaic(const char *old_str, const char *new_str, VOption *options = nullptr) const;
5451
+
5413
5452
  /**
5414
5453
  * Replicate an image.
5415
5454
  * @param across Repeat this many times horizontally.
@@ -5510,7 +5549,7 @@ public:
5510
5549
  VImage scRGB2XYZ(VOption *options = nullptr) const;
5511
5550
 
5512
5551
  /**
5513
- * Convert an scrgb image to srgb.
5552
+ * Convert scrgb to srgb.
5514
5553
  *
5515
5554
  * **Optional parameters**
5516
5555
  * - **depth** -- Output device space depth in bits, int.
@@ -5755,6 +5794,8 @@ public:
5755
5794
  * - **dpi** -- Render at this DPI, double.
5756
5795
  * - **scale** -- Scale output by this factor, double.
5757
5796
  * - **unlimited** -- Allow SVG of any size, bool.
5797
+ * - **stylesheet** -- Custom CSS, const char *.
5798
+ * - **high_bitdepth** -- Enable scRGB 128-bit output (32-bit per channel), bool.
5758
5799
  * - **memory** -- Force open via memory, bool.
5759
5800
  * - **access** -- Required access pattern for this file, VipsAccess.
5760
5801
  * - **fail_on** -- Error level to fail on, VipsFailOn.
@@ -5773,6 +5814,8 @@ public:
5773
5814
  * - **dpi** -- Render at this DPI, double.
5774
5815
  * - **scale** -- Scale output by this factor, double.
5775
5816
  * - **unlimited** -- Allow SVG of any size, bool.
5817
+ * - **stylesheet** -- Custom CSS, const char *.
5818
+ * - **high_bitdepth** -- Enable scRGB 128-bit output (32-bit per channel), bool.
5776
5819
  * - **memory** -- Force open via memory, bool.
5777
5820
  * - **access** -- Required access pattern for this file, VipsAccess.
5778
5821
  * - **fail_on** -- Error level to fail on, VipsFailOn.
@@ -5791,6 +5834,8 @@ public:
5791
5834
  * - **dpi** -- Render at this DPI, double.
5792
5835
  * - **scale** -- Scale output by this factor, double.
5793
5836
  * - **unlimited** -- Allow SVG of any size, bool.
5837
+ * - **stylesheet** -- Custom CSS, const char *.
5838
+ * - **high_bitdepth** -- Enable scRGB 128-bit output (32-bit per channel), bool.
5794
5839
  * - **memory** -- Force open via memory, bool.
5795
5840
  * - **access** -- Required access pattern for this file, VipsAccess.
5796
5841
  * - **fail_on** -- Error level to fail on, VipsFailOn.
@@ -5853,8 +5898,8 @@ public:
5853
5898
  * - **no_rotate** -- Don't use orientation tags to rotate image upright, bool.
5854
5899
  * - **crop** -- Reduce to fill target rectangle, then crop, VipsInteresting.
5855
5900
  * - **linear** -- Reduce in linear light, bool.
5856
- * - **import_profile** -- Fallback import profile, const char *.
5857
- * - **export_profile** -- Fallback export profile, const char *.
5901
+ * - **input_profile** -- Fallback input profile, const char *.
5902
+ * - **output_profile** -- Fallback output profile, const char *.
5858
5903
  * - **intent** -- Rendering intent, VipsIntent.
5859
5904
  * - **fail_on** -- Error level to fail on, VipsFailOn.
5860
5905
  *
@@ -5875,8 +5920,8 @@ public:
5875
5920
  * - **no_rotate** -- Don't use orientation tags to rotate image upright, bool.
5876
5921
  * - **crop** -- Reduce to fill target rectangle, then crop, VipsInteresting.
5877
5922
  * - **linear** -- Reduce in linear light, bool.
5878
- * - **import_profile** -- Fallback import profile, const char *.
5879
- * - **export_profile** -- Fallback export profile, const char *.
5923
+ * - **input_profile** -- Fallback input profile, const char *.
5924
+ * - **output_profile** -- Fallback output profile, const char *.
5880
5925
  * - **intent** -- Rendering intent, VipsIntent.
5881
5926
  * - **fail_on** -- Error level to fail on, VipsFailOn.
5882
5927
  *
@@ -5896,8 +5941,8 @@ public:
5896
5941
  * - **no_rotate** -- Don't use orientation tags to rotate image upright, bool.
5897
5942
  * - **crop** -- Reduce to fill target rectangle, then crop, VipsInteresting.
5898
5943
  * - **linear** -- Reduce in linear light, bool.
5899
- * - **import_profile** -- Fallback import profile, const char *.
5900
- * - **export_profile** -- Fallback export profile, const char *.
5944
+ * - **input_profile** -- Fallback input profile, const char *.
5945
+ * - **output_profile** -- Fallback output profile, const char *.
5901
5946
  * - **intent** -- Rendering intent, VipsIntent.
5902
5947
  * - **fail_on** -- Error level to fail on, VipsFailOn.
5903
5948
  *
@@ -5917,8 +5962,8 @@ public:
5917
5962
  * - **no_rotate** -- Don't use orientation tags to rotate image upright, bool.
5918
5963
  * - **crop** -- Reduce to fill target rectangle, then crop, VipsInteresting.
5919
5964
  * - **linear** -- Reduce in linear light, bool.
5920
- * - **import_profile** -- Fallback import profile, const char *.
5921
- * - **export_profile** -- Fallback export profile, const char *.
5965
+ * - **input_profile** -- Fallback input profile, const char *.
5966
+ * - **output_profile** -- Fallback output profile, const char *.
5922
5967
  * - **intent** -- Rendering intent, VipsIntent.
5923
5968
  * - **fail_on** -- Error level to fail on, VipsFailOn.
5924
5969
  *
@@ -5934,9 +5979,10 @@ public:
5934
5979
  *
5935
5980
  * **Optional parameters**
5936
5981
  * - **page** -- First page to load, int.
5937
- * - **subifd** -- Subifd index, int.
5938
5982
  * - **n** -- Number of pages to load, -1 for all, int.
5939
5983
  * - **autorotate** -- Rotate image using orientation tag, bool.
5984
+ * - **subifd** -- Subifd index, int.
5985
+ * - **unlimited** -- Remove all denial of service limits, bool.
5940
5986
  * - **memory** -- Force open via memory, bool.
5941
5987
  * - **access** -- Required access pattern for this file, VipsAccess.
5942
5988
  * - **fail_on** -- Error level to fail on, VipsFailOn.
@@ -5953,9 +5999,10 @@ public:
5953
5999
  *
5954
6000
  * **Optional parameters**
5955
6001
  * - **page** -- First page to load, int.
5956
- * - **subifd** -- Subifd index, int.
5957
6002
  * - **n** -- Number of pages to load, -1 for all, int.
5958
6003
  * - **autorotate** -- Rotate image using orientation tag, bool.
6004
+ * - **subifd** -- Subifd index, int.
6005
+ * - **unlimited** -- Remove all denial of service limits, bool.
5959
6006
  * - **memory** -- Force open via memory, bool.
5960
6007
  * - **access** -- Required access pattern for this file, VipsAccess.
5961
6008
  * - **fail_on** -- Error level to fail on, VipsFailOn.
@@ -5972,9 +6019,10 @@ public:
5972
6019
  *
5973
6020
  * **Optional parameters**
5974
6021
  * - **page** -- First page to load, int.
5975
- * - **subifd** -- Subifd index, int.
5976
6022
  * - **n** -- Number of pages to load, -1 for all, int.
5977
6023
  * - **autorotate** -- Rotate image using orientation tag, bool.
6024
+ * - **subifd** -- Subifd index, int.
6025
+ * - **unlimited** -- Remove all denial of service limits, bool.
5978
6026
  * - **memory** -- Force open via memory, bool.
5979
6027
  * - **access** -- Required access pattern for this file, VipsAccess.
5980
6028
  * - **fail_on** -- Error level to fail on, VipsFailOn.
@@ -43,24 +43,24 @@ extern "C" {
43
43
 
44
44
  /**
45
45
  * VipsOperationMath:
46
- * @VIPS_OPERATION_MATH_SIN: sin(), angles in degrees
47
- * @VIPS_OPERATION_MATH_COS: cos(), angles in degrees
48
- * @VIPS_OPERATION_MATH_TAN: tan(), angles in degrees
49
- * @VIPS_OPERATION_MATH_ASIN: asin(), angles in degrees
50
- * @VIPS_OPERATION_MATH_ACOS: acos(), angles in degrees
51
- * @VIPS_OPERATION_MATH_ATAN: atan(), angles in degrees
46
+ * @VIPS_OPERATION_MATH_SIN: `sin()`, angles in degrees
47
+ * @VIPS_OPERATION_MATH_COS: `cos()`, angles in degrees
48
+ * @VIPS_OPERATION_MATH_TAN: `tan()`, angles in degrees
49
+ * @VIPS_OPERATION_MATH_ASIN: `asin()`, angles in degrees
50
+ * @VIPS_OPERATION_MATH_ACOS: `acos()`, angles in degrees
51
+ * @VIPS_OPERATION_MATH_ATAN: `atan()`, angles in degrees
52
52
  * @VIPS_OPERATION_MATH_LOG: log base e
53
53
  * @VIPS_OPERATION_MATH_LOG10: log base 10
54
54
  * @VIPS_OPERATION_MATH_EXP: e to the something
55
55
  * @VIPS_OPERATION_MATH_EXP10: 10 to the something
56
- * @VIPS_OPERATION_MATH_SINH: sinh(), angles in radians
57
- * @VIPS_OPERATION_MATH_COSH: cosh(), angles in radians
58
- * @VIPS_OPERATION_MATH_TANH: tanh(), angles in radians
59
- * @VIPS_OPERATION_MATH_ASINH: asinh(), angles in radians
60
- * @VIPS_OPERATION_MATH_ACOSH: acosh(), angles in radians
61
- * @VIPS_OPERATION_MATH_ATANH: atanh(), angles in radians
56
+ * @VIPS_OPERATION_MATH_SINH: `sinh()`, angles in radians
57
+ * @VIPS_OPERATION_MATH_COSH: `cosh()`, angles in radians
58
+ * @VIPS_OPERATION_MATH_TANH: `tanh()`, angles in radians
59
+ * @VIPS_OPERATION_MATH_ASINH: `asinh()`, angles in radians
60
+ * @VIPS_OPERATION_MATH_ACOSH: `acosh()`, angles in radians
61
+ * @VIPS_OPERATION_MATH_ATANH: `atanh()`, angles in radians
62
62
  *
63
- * See also: vips_math().
63
+ * See also: [method@Image.math].
64
64
  */
65
65
  typedef enum {
66
66
  VIPS_OPERATION_MATH_SIN,
@@ -84,11 +84,11 @@ typedef enum {
84
84
 
85
85
  /**
86
86
  * VipsOperationMath2:
87
- * @VIPS_OPERATION_MATH2_POW: pow(left, right)
88
- * @VIPS_OPERATION_MATH2_WOP: pow(right, left)
89
- * @VIPS_OPERATION_MATH2_ATAN2: atan2(left, right)
87
+ * @VIPS_OPERATION_MATH2_POW: `pow(left, right)`
88
+ * @VIPS_OPERATION_MATH2_WOP: `pow(right, left)`
89
+ * @VIPS_OPERATION_MATH2_ATAN2: `atan2(left, right)`
90
90
  *
91
- * See also: vips_math().
91
+ * See also: [method@Image.math].
92
92
  */
93
93
  typedef enum {
94
94
  VIPS_OPERATION_MATH2_POW,
@@ -103,7 +103,7 @@ typedef enum {
103
103
  * @VIPS_OPERATION_ROUND_FLOOR: largest integral value not greater than
104
104
  * @VIPS_OPERATION_ROUND_CEIL: the smallest integral value not less than
105
105
  *
106
- * See also: vips_round().
106
+ * See also: [method@Image.round].
107
107
  */
108
108
  typedef enum {
109
109
  VIPS_OPERATION_ROUND_RINT,
@@ -114,14 +114,14 @@ typedef enum {
114
114
 
115
115
  /**
116
116
  * VipsOperationRelational:
117
- * @VIPS_OPERATION_RELATIONAL_EQUAL: ==
118
- * @VIPS_OPERATION_RELATIONAL_NOTEQ: !=
119
- * @VIPS_OPERATION_RELATIONAL_LESS: <
120
- * @VIPS_OPERATION_RELATIONAL_LESSEQ: <=
121
- * @VIPS_OPERATION_RELATIONAL_MORE: >
122
- * @VIPS_OPERATION_RELATIONAL_MOREEQ: >=
117
+ * @VIPS_OPERATION_RELATIONAL_EQUAL: `==`
118
+ * @VIPS_OPERATION_RELATIONAL_NOTEQ: `!=`
119
+ * @VIPS_OPERATION_RELATIONAL_LESS: `<`
120
+ * @VIPS_OPERATION_RELATIONAL_LESSEQ: `<=`
121
+ * @VIPS_OPERATION_RELATIONAL_MORE: `>`
122
+ * @VIPS_OPERATION_RELATIONAL_MOREEQ: `>=`
123
123
  *
124
- * See also: vips_relational().
124
+ * See also: [method@Image.relational].
125
125
  */
126
126
  typedef enum {
127
127
  VIPS_OPERATION_RELATIONAL_EQUAL,
@@ -135,13 +135,13 @@ typedef enum {
135
135
 
136
136
  /**
137
137
  * VipsOperationBoolean:
138
- * @VIPS_OPERATION_BOOLEAN_AND: &
139
- * @VIPS_OPERATION_BOOLEAN_OR: |
140
- * @VIPS_OPERATION_BOOLEAN_EOR: ^
141
- * @VIPS_OPERATION_BOOLEAN_LSHIFT: >>
142
- * @VIPS_OPERATION_BOOLEAN_RSHIFT: <<
138
+ * @VIPS_OPERATION_BOOLEAN_AND: `&`
139
+ * @VIPS_OPERATION_BOOLEAN_OR: `|`
140
+ * @VIPS_OPERATION_BOOLEAN_EOR: `^`
141
+ * @VIPS_OPERATION_BOOLEAN_LSHIFT: `>>`
142
+ * @VIPS_OPERATION_BOOLEAN_RSHIFT: `<<`
143
143
  *
144
- * See also: vips_boolean().
144
+ * See also: [method@Image.boolean].
145
145
  */
146
146
  typedef enum {
147
147
  VIPS_OPERATION_BOOLEAN_AND,
@@ -158,7 +158,7 @@ typedef enum {
158
158
  * @VIPS_OPERATION_COMPLEX_RECT: convert to rectangular coordinates
159
159
  * @VIPS_OPERATION_COMPLEX_CONJ: complex conjugate
160
160
  *
161
- * See also: vips_complex().
161
+ * See also: [method@Image.complex].
162
162
  */
163
163
  typedef enum {
164
164
  VIPS_OPERATION_COMPLEX_POLAR,
@@ -171,7 +171,7 @@ typedef enum {
171
171
  * VipsOperationComplex2:
172
172
  * @VIPS_OPERATION_COMPLEX2_CROSS_PHASE: convert to polar coordinates
173
173
  *
174
- * See also: vips_complex2().
174
+ * See also: [method@Image.complex2].
175
175
  */
176
176
  typedef enum {
177
177
  VIPS_OPERATION_COMPLEX2_CROSS_PHASE,
@@ -183,7 +183,7 @@ typedef enum {
183
183
  * @VIPS_OPERATION_COMPLEXGET_REAL: get real component
184
184
  * @VIPS_OPERATION_COMPLEXGET_IMAG: get imaginary component
185
185
  *
186
- * See also: vips_complexget().
186
+ * See also: [method@Image.complexget].
187
187
  */
188
188
  typedef enum {
189
189
  VIPS_OPERATION_COMPLEXGET_REAL,
@@ -56,6 +56,18 @@
56
56
  #define VIPS_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) VIPS_API
57
57
  #endif
58
58
 
59
+ #if !defined(VIPS_DISABLE_DEPRECATION_WARNINGS) && \
60
+ (G_GNUC_CHECK_VERSION(4, 6) || \
61
+ __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4))
62
+ #define _VIPS_GNUC_DO_PRAGMA(x) _Pragma(G_STRINGIFY(x))
63
+ #define VIPS_DEPRECATED_MACRO _VIPS_GNUC_DO_PRAGMA(GCC warning "Deprecated pre-processor symbol")
64
+ #define VIPS_DEPRECATED_MACRO_FOR(f) \
65
+ _VIPS_GNUC_DO_PRAGMA(GCC warning G_STRINGIFY(Deprecated pre-processor symbol: replace with #f))
66
+ #else
67
+ #define VIPS_DEPRECATED_MACRO
68
+ #define VIPS_DEPRECATED_MACRO_FOR(f)
69
+ #endif
70
+
59
71
  #ifdef __cplusplus
60
72
  extern "C" {
61
73
  #endif /*__cplusplus*/
@@ -88,6 +100,8 @@ typedef enum {
88
100
  VIPS_PRECISION_LAST
89
101
  } VipsPrecision;
90
102
 
103
+ #ifndef __GI_SCANNER__
104
+
91
105
  /* Just for testing.
92
106
  */
93
107
  VIPS_API
@@ -95,6 +109,8 @@ char *vips_path_filename7(const char *path);
95
109
  VIPS_API
96
110
  char *vips_path_mode7(const char *path);
97
111
 
112
+ #endif /* !__GI_SCANNER__ */
113
+
98
114
  struct _VipsImage;
99
115
  typedef struct _VipsImage VipsImage;
100
116
  struct _VipsRegion;
@@ -39,11 +39,6 @@
39
39
  extern "C" {
40
40
  #endif /*__cplusplus*/
41
41
 
42
- /* A string in the process of being written to ... multiple calls to
43
- * vips_buf_append add to it. On overflow append "..." and block further
44
- * writes.
45
- */
46
-
47
42
  struct _VipsBuf {
48
43
  /* All fields are private.
49
44
  */
@@ -93,13 +93,18 @@ extern "C" {
93
93
  #define VIPS_D3250_Y0 (100.0)
94
94
  #define VIPS_D3250_Z0 (45.8501)
95
95
 
96
- /* Note: constants align with those defined in lcms2.h.
96
+ /* Note: constants align with those defined in lcms2.h, except for
97
+ * VIPS_INTENT_AUTO, which is libvips-specific.
97
98
  */
98
99
  typedef enum {
99
100
  VIPS_INTENT_PERCEPTUAL = 0,
100
101
  VIPS_INTENT_RELATIVE,
101
102
  VIPS_INTENT_SATURATION,
102
103
  VIPS_INTENT_ABSOLUTE,
104
+ /* Leave room for possible new rendering intents beyond the
105
+ * four standard ones.
106
+ */
107
+ VIPS_INTENT_AUTO = 32,
103
108
  VIPS_INTENT_LAST
104
109
  } VipsIntent;
105
110
 
@@ -144,12 +149,6 @@ VIPS_API
144
149
  int vips_Lab2LCh(VipsImage *in, VipsImage **out, ...)
145
150
  G_GNUC_NULL_TERMINATED;
146
151
  VIPS_API
147
- int vips_Yxy2Lab(VipsImage *in, VipsImage **out, ...)
148
- G_GNUC_NULL_TERMINATED;
149
- VIPS_API
150
- int vips_CMC2XYZ(VipsImage *in, VipsImage **out, ...)
151
- G_GNUC_NULL_TERMINATED;
152
- VIPS_API
153
152
  int vips_Lab2XYZ(VipsImage *in, VipsImage **out, ...)
154
153
  G_GNUC_NULL_TERMINATED;
155
154
  VIPS_API