@img/sharp-libvips-dev-wasm32 1.2.4 → 1.3.0-rc.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/README.md +23 -22
  2. package/include/aom/aom_codec.h +1 -1
  3. package/include/aom/aom_decoder.h +4 -0
  4. package/include/aom/aom_encoder.h +19 -8
  5. package/include/aom/aom_ext_ratectrl.h +664 -0
  6. package/include/aom/aom_image.h +93 -30
  7. package/include/aom/aom_tpl.h +99 -0
  8. package/include/aom/aomcx.h +89 -16
  9. package/include/aom/aomdx.h +12 -0
  10. package/include/expat.h +15 -3
  11. package/include/expat_config.h +6 -6
  12. package/include/expat_external.h +4 -4
  13. package/include/glib-2.0/gio/gdbusconnection.h +2 -8
  14. package/include/glib-2.0/gio/gdbusinterfaceskeleton.h +8 -1
  15. package/include/glib-2.0/gio/gfileattribute.h +1 -1
  16. package/include/glib-2.0/gio/gfileinfo.h +12 -0
  17. package/include/glib-2.0/gio/gicon.h +1 -1
  18. package/include/glib-2.0/gio/gio-autocleanups.h +0 -1
  19. package/include/glib-2.0/gio/gio-visibility.h +68 -0
  20. package/include/glib-2.0/gio/gio.h +2 -0
  21. package/include/glib-2.0/gio/gioenums.h +66 -44
  22. package/include/glib-2.0/gio/gioenumtypes.h +2 -0
  23. package/include/glib-2.0/gio/giptosmessage.h +46 -0
  24. package/include/glib-2.0/gio/gipv6tclassmessage.h +46 -0
  25. package/include/glib-2.0/gio/gresolver.h +1 -1
  26. package/include/glib-2.0/gio/gsettings.h +1 -1
  27. package/include/glib-2.0/gio/gsocketcontrolmessage.h +2 -0
  28. package/include/glib-2.0/glib/gatomic.h +26 -2
  29. package/include/glib-2.0/glib/gfileutils.h +2 -2
  30. package/include/glib-2.0/glib/ghook.h +3 -1
  31. package/include/glib-2.0/glib/giochannel.h +1 -1
  32. package/include/glib-2.0/glib/gkeyfile.h +1 -1
  33. package/include/glib-2.0/glib/glib-visibility.h +68 -0
  34. package/include/glib-2.0/glib/gmacros.h +36 -0
  35. package/include/glib-2.0/glib/gmain.h +4 -0
  36. package/include/glib-2.0/glib/gmarkup.h +20 -1
  37. package/include/glib-2.0/glib/gmem.h +4 -4
  38. package/include/glib-2.0/glib/gmessages.h +7 -9
  39. package/include/glib-2.0/glib/gnode.h +1 -1
  40. package/include/glib-2.0/glib/goption.h +1 -1
  41. package/include/glib-2.0/glib/gsequence.h +2 -2
  42. package/include/glib-2.0/glib/gslice.h +12 -4
  43. package/include/glib-2.0/glib/gspawn.h +1 -1
  44. package/include/glib-2.0/glib/gstrfuncs.h +191 -1
  45. package/include/glib-2.0/glib/gtestutils.h +6 -3
  46. package/include/glib-2.0/glib/gtimer.h +1 -0
  47. package/include/glib-2.0/glib/gtypes.h +46 -4
  48. package/include/glib-2.0/glib/gunicode.h +13 -1
  49. package/include/glib-2.0/glib/guri.h +3 -3
  50. package/include/glib-2.0/glib/gutils.h +10 -1
  51. package/include/glib-2.0/glib/gvarianttype.h +16 -16
  52. package/include/glib-2.0/glib/gversionmacros.h +31 -0
  53. package/include/glib-2.0/glib-unix.h +4 -0
  54. package/include/glib-2.0/gmodule/gmodule-visibility.h +68 -0
  55. package/include/glib-2.0/gmodule.h +1 -1
  56. package/include/glib-2.0/gobject/gbinding.h +1 -1
  57. package/include/glib-2.0/gobject/genums.h +2 -2
  58. package/include/glib-2.0/gobject/gobject-visibility.h +68 -0
  59. package/include/glib-2.0/gobject/gobject.h +1 -1
  60. package/include/glib-2.0/gobject/gparam.h +1 -1
  61. package/include/glib-2.0/gobject/gsignal.h +8 -8
  62. package/include/glib-2.0/gobject/gtype.h +17 -17
  63. package/include/hwy/aligned_allocator.h +44 -2
  64. package/include/hwy/auto_tune.h +22 -6
  65. package/include/hwy/base.h +60 -90
  66. package/include/hwy/bit_set.h +410 -0
  67. package/include/hwy/cache_control.h +3 -2
  68. package/include/hwy/detect_compiler_arch.h +134 -14
  69. package/include/hwy/detect_targets.h +82 -36
  70. package/include/hwy/highway.h +15 -0
  71. package/include/hwy/nanobenchmark.h +12 -3
  72. package/include/hwy/ops/arm_neon-inl.h +96 -25
  73. package/include/hwy/ops/arm_sve-inl.h +250 -95
  74. package/include/hwy/ops/emu128-inl.h +12 -7
  75. package/include/hwy/ops/generic_ops-inl.h +271 -131
  76. package/include/hwy/ops/loongarch_lasx-inl.h +31 -9
  77. package/include/hwy/ops/loongarch_lsx-inl.h +33 -12
  78. package/include/hwy/ops/ppc_vsx-inl.h +99 -19
  79. package/include/hwy/ops/rvv-inl.h +239 -130
  80. package/include/hwy/ops/scalar-inl.h +22 -7
  81. package/include/hwy/ops/set_macros-inl.h +163 -107
  82. package/include/hwy/ops/wasm_128-inl.h +13 -22
  83. package/include/hwy/ops/x86_128-inl.h +223 -120
  84. package/include/hwy/ops/x86_256-inl.h +70 -134
  85. package/include/hwy/ops/x86_512-inl.h +130 -134
  86. package/include/hwy/print-inl.h +2 -0
  87. package/include/hwy/profiler.h +355 -264
  88. package/include/hwy/robust_statistics.h +3 -1
  89. package/include/hwy/timer.h +44 -0
  90. package/include/lcms2.h +35 -5
  91. package/include/lcms2_plugin.h +1 -1
  92. package/include/libexif/exif-utils.h +1 -1
  93. package/include/libheif/heif.h +2 -0
  94. package/include/libheif/heif_aux_images.h +2 -2
  95. package/include/libheif/heif_brands.h +16 -4
  96. package/include/libheif/heif_color.h +147 -25
  97. package/include/libheif/heif_components.h +264 -0
  98. package/include/libheif/heif_context.h +18 -4
  99. package/include/libheif/heif_cxx.h +20 -18
  100. package/include/libheif/heif_decoding.h +63 -9
  101. package/include/libheif/heif_encoding.h +46 -12
  102. package/include/libheif/heif_error.h +15 -6
  103. package/include/libheif/heif_export.h +48 -0
  104. package/include/libheif/heif_image.h +94 -32
  105. package/include/libheif/heif_image_handle.h +54 -3
  106. package/include/libheif/heif_items.h +25 -2
  107. package/include/libheif/heif_library.h +13 -18
  108. package/include/libheif/heif_metadata.h +5 -2
  109. package/include/libheif/heif_omaf.h +104 -0
  110. package/include/libheif/heif_plugin.h +80 -13
  111. package/include/libheif/heif_properties.h +259 -5
  112. package/include/libheif/heif_regions.h +5 -3
  113. package/include/libheif/heif_security.h +24 -2
  114. package/include/libheif/heif_sequences.h +163 -14
  115. package/include/libheif/heif_text.h +161 -0
  116. package/include/libheif/heif_tiling.h +2 -2
  117. package/include/libheif/heif_uncompressed.h +29 -5
  118. package/include/libheif/heif_version.h +2 -2
  119. package/include/libpng16/png.h +3526 -0
  120. package/include/libpng16/pngconf.h +615 -0
  121. package/include/libpng16/pnglibconf.h +233 -0
  122. package/include/png.h +3526 -0
  123. package/include/pngconf.h +615 -0
  124. package/include/pnglibconf.h +233 -0
  125. package/include/resvg.h +3 -3
  126. package/include/tiffconf.h +9 -10
  127. package/include/tiffio.h +10 -9
  128. package/include/tiffvers.h +1 -1
  129. package/include/ultrahdr_api.h +892 -0
  130. package/include/vips/VError8.h +17 -14
  131. package/include/vips/VImage8.h +235 -32
  132. package/include/vips/arithmetic.h +9 -9
  133. package/include/vips/basic.h +11 -1
  134. package/include/vips/colour.h +19 -2
  135. package/include/vips/conversion.h +8 -8
  136. package/include/vips/convolution.h +1 -1
  137. package/include/vips/create.h +2 -2
  138. package/include/vips/draw.h +1 -1
  139. package/include/vips/enumtypes.h +3 -0
  140. package/include/vips/foreign.h +74 -15
  141. package/include/vips/header.h +22 -0
  142. package/include/vips/image.h +8 -5
  143. package/include/vips/memory.h +1 -1
  144. package/include/vips/morphology.h +1 -1
  145. package/include/vips/operation.h +2 -1
  146. package/include/vips/private.h +5 -10
  147. package/include/vips/region.h +7 -1
  148. package/include/vips/resample.h +2 -2
  149. package/include/vips/semaphore.h +1 -5
  150. package/include/vips/threadpool.h +0 -1
  151. package/include/vips/version.h +6 -6
  152. package/include/zlib.h +5 -5
  153. package/lib/glib-2.0/include/glibconfig.h +2 -4
  154. package/lib/libaom.a +0 -0
  155. package/lib/libcgif.a +0 -0
  156. package/lib/libexif.a +0 -0
  157. package/lib/libexif.la +1 -1
  158. package/lib/libexpat.a +0 -0
  159. package/lib/libexpat.la +2 -2
  160. package/lib/libffi.a +0 -0
  161. package/lib/libgio-2.0.a +0 -0
  162. package/lib/libglib-2.0.a +0 -0
  163. package/lib/libgmodule-2.0.a +0 -0
  164. package/lib/libgobject-2.0.a +0 -0
  165. package/lib/libgthread-2.0.a +0 -0
  166. package/lib/libheif.a +0 -0
  167. package/lib/libhwy.a +0 -0
  168. package/lib/libimagequant.a +0 -0
  169. package/lib/libjpeg.a +0 -0
  170. package/lib/liblcms2.a +0 -0
  171. package/lib/libpng.a +0 -0
  172. package/lib/{libsharpyuv.la → libpng.la} +8 -8
  173. package/lib/libpng16.a +0 -0
  174. package/lib/{libwebp.la → libpng16.la} +7 -7
  175. package/lib/libresvg.a +0 -0
  176. package/lib/libsharpyuv.a +0 -0
  177. package/lib/libtiff.a +0 -0
  178. package/lib/libuhdr.a +0 -0
  179. package/lib/libvips-cpp.a +0 -0
  180. package/lib/libvips.a +0 -0
  181. package/lib/libwebp.a +0 -0
  182. package/lib/libwebpdecoder.a +0 -0
  183. package/lib/libwebpdemux.a +0 -0
  184. package/lib/libwebpmux.a +0 -0
  185. package/lib/libz.a +0 -0
  186. package/lib/pkgconfig/aom.pc +2 -2
  187. package/lib/pkgconfig/cgif.pc +1 -1
  188. package/lib/pkgconfig/expat.pc +1 -1
  189. package/lib/pkgconfig/gio-2.0.pc +1 -1
  190. package/lib/pkgconfig/glib-2.0.pc +1 -1
  191. package/lib/pkgconfig/gmodule-2.0.pc +1 -1
  192. package/lib/pkgconfig/gmodule-export-2.0.pc +1 -1
  193. package/lib/pkgconfig/gmodule-no-export-2.0.pc +1 -1
  194. package/lib/pkgconfig/gobject-2.0.pc +1 -1
  195. package/lib/pkgconfig/gthread-2.0.pc +1 -1
  196. package/lib/pkgconfig/lcms2.pc +1 -1
  197. package/lib/pkgconfig/libexif.pc +1 -1
  198. package/lib/pkgconfig/libheif.pc +1 -1
  199. package/lib/pkgconfig/libhwy.pc +3 -4
  200. package/lib/pkgconfig/libpng.pc +12 -0
  201. package/lib/pkgconfig/libpng16.pc +12 -0
  202. package/lib/pkgconfig/libsharpyuv.pc +1 -1
  203. package/lib/pkgconfig/libtiff-4.pc +2 -2
  204. package/lib/pkgconfig/libuhdr.pc +11 -0
  205. package/lib/pkgconfig/libwebp.pc +1 -1
  206. package/lib/pkgconfig/libwebpdecoder.pc +11 -0
  207. package/lib/pkgconfig/libwebpmux.pc +1 -1
  208. package/lib/pkgconfig/vips-cpp.pc +2 -2
  209. package/lib/pkgconfig/vips.pc +2 -2
  210. package/package.json +1 -1
  211. package/versions.json +15 -14
  212. package/include/spng.h +0 -537
  213. package/lib/libspng.a +0 -0
  214. package/lib/libtiff.la +0 -41
  215. package/lib/libwebpdemux.la +0 -41
  216. package/lib/libwebpmux.la +0 -41
  217. package/lib/pkgconfig/spng.pc +0 -10
package/README.md CHANGED
@@ -5,29 +5,30 @@ Header files and static wasm32 libraries for libvips and dependencies to build s
5
5
  ## Licensing
6
6
 
7
7
  This software contains third-party libraries
8
- used under the terms of the following licences:
8
+ used under the terms of the following licenses:
9
9
 
10
- | Library | Used under the terms of |
11
- |---------------|-----------------------------------------------------------------------------------------------------------|
12
- | aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/) |
13
- | cgif | MIT Licence |
14
- | emscripten | [MIT Licence](https://github.com/emscripten-core/emscripten/blob/main/LICENSE) |
15
- | expat | MIT Licence |
16
- | glib | LGPLv3 |
17
- | highway | Apache-2.0 License, BSD 3-Clause |
18
- | lcms | MIT Licence |
19
- | libexif | LGPLv3 |
20
- | libffi | MIT Licence |
21
- | libheif | LGPLv3 |
22
- | libimagequant | [BSD 2-Clause](https://github.com/lovell/libimagequant/blob/main/COPYRIGHT) |
23
- | mozjpeg | [zlib License, IJG License, BSD-3-Clause](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.md) |
24
- | libnsgif | MIT Licence |
25
- | libspng | [BSD 2-Clause, libpng License](https://github.com/randy408/libspng/blob/master/LICENSE) |
26
- | libtiff | [libtiff License](https://gitlab.com/libtiff/libtiff/blob/master/LICENSE.md) (BSD-like) |
27
- | libvips | LGPLv3 |
28
- | libwebp | New BSD License |
29
- | resvg | MIT Licence |
30
- | zlib-ng | [zlib Licence](https://github.com/zlib-ng/zlib-ng/blob/develop/LICENSE.md) |
10
+ | Library | Used under the terms of |
11
+ |---------------|----------------------------------------------------------------------------------------------------------|
12
+ | aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/) |
13
+ | cgif | MIT License |
14
+ | emscripten | [MIT License](https://github.com/emscripten-core/emscripten/blob/main/LICENSE) |
15
+ | expat | MIT License |
16
+ | glib | LGPLv3 |
17
+ | highway | BSD 3-Clause |
18
+ | lcms | MIT License |
19
+ | libexif | LGPLv3 |
20
+ | libffi | MIT License |
21
+ | libheif | LGPLv3 |
22
+ | libimagequant | [BSD 2-Clause](https://github.com/lovell/libimagequant/blob/main/COPYRIGHT) |
23
+ | libnsgif | MIT License |
24
+ | libpng | [libpng License](https://github.com/pnggroup/libpng/blob/master/LICENSE) |
25
+ | libtiff | [libtiff License](https://gitlab.com/libtiff/libtiff/blob/master/LICENSE.md) (BSD-like) |
26
+ | libultrahdr | MIT License |
27
+ | libvips | LGPLv3 |
28
+ | libwebp | New BSD License |
29
+ | mozjpeg | [zlib License, IJG License, BSD 3-Clause](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.md) |
30
+ | resvg | MIT License |
31
+ | zlib-ng | [zlib License](https://github.com/zlib-ng/zlib-ng/blob/develop/LICENSE.md) |
31
32
 
32
33
  Use of libraries under the terms of the LGPLv3 is via the
33
34
  "any later version" clause of the LGPLv2 or LGPLv2.1.
@@ -52,7 +52,7 @@
52
52
  // configuration is changed based on the parameter. Note that a aom_codec_err_t
53
53
  // is returned, which indicates if the operation was successful or not.
54
54
  //
55
- // Note that for the encoder, the aom_codec_alg_priv_t points to the
55
+ // Note that for the encoder, the aom_codec_alg_priv_t points to
56
56
  // the aom_codec_alg_priv structure in av1/av1_cx_iface.c, and for the decoder,
57
57
  // the struct in av1/av1_dx_iface.c. Variables such as AV1_COMP cpi are stored
58
58
  // here and also used in the core algorithm.
@@ -106,6 +106,10 @@ typedef struct aom_codec_dec_cfg {
106
106
  * call is not thread safe and should be guarded with a lock if being used
107
107
  * in a multithreaded context.
108
108
  *
109
+ * On success, aom_codec_destroy() must be used to free resources allocated for
110
+ * the decoder context. If aom_codec_dec_init_ver() fails, it is not necessary
111
+ * to call aom_codec_destroy() on the decoder context.
112
+ *
109
113
  * \param[in] ctx Pointer to this instance's context.
110
114
  * \param[in] iface Pointer to the algorithm interface to use.
111
115
  * \param[in] cfg Configuration to use, if known. May be NULL.
@@ -379,6 +379,9 @@ typedef long aom_enc_frame_flags_t;
379
379
  #define AOM_EFLAG_FORCE_KF (1 << 0)
380
380
  /*!\brief Calculate PSNR for this frame, requires g_lag_in_frames to be 0 */
381
381
  #define AOM_EFLAG_CALCULATE_PSNR (1 << 1)
382
+ /*!\brief Freeze internal state, do not update reference buffers, entropy
383
+ * tables, rate control state, etc. Requires g_lag_in_frames to be 0. */
384
+ #define AOM_EFLAG_FREEZE_INTERNAL_STATE (1 << 2)
382
385
 
383
386
  /*!\brief Encoder configuration structure
384
387
  *
@@ -468,11 +471,15 @@ typedef struct aom_codec_enc_cfg {
468
471
  */
469
472
  aom_bit_depth_t g_bit_depth;
470
473
 
471
- /*!\brief Bit-depth of the input frames
474
+ /*!\brief Bit-depth of the input source
472
475
  *
473
- * This value identifies the bit_depth of the input frames in bits.
474
- * Note that the frames passed as input to the encoder must have
475
- * this bit-depth.
476
+ * This value identifies the actual bit-depth of the input source in bits. It
477
+ * must not exceed codec bit-depth. Note that the frames passed as input to
478
+ * the encoder must match codec bit-depth. So, if there is a mismatch between
479
+ * source bit-depth and codec bit-depth, the application is required to
480
+ * upshift the frame to the codec bit-depth before passing it for encoding.
481
+ * This is only used for computing quality metrics relative to the actual
482
+ * input source and has no effect on the encoder's output.
476
483
  */
477
484
  unsigned int g_input_bit_depth;
478
485
 
@@ -887,11 +894,14 @@ typedef struct aom_codec_enc_cfg {
887
894
  */
888
895
  int tile_heights[MAX_TILE_HEIGHTS];
889
896
 
890
- /*!\brief Whether encoder should use fixed QP offsets.
897
+ /*!\brief Controls how the encoder applies fixed QP offsets
891
898
  *
899
+ * If a value of 0 is provided, encoder will adaptively choose QP offsets for
900
+ * frames at different levels of the pyramid.
892
901
  * If a value of 1 is provided, encoder will use fixed QP offsets for frames
893
902
  * at different levels of the pyramid.
894
- * If a value of 0 is provided, encoder will NOT use fixed QP offsets.
903
+ * If a value of 2 is provided, encoder will use the same QP for all frames
904
+ * at different levels of the pyramid (i.e. no QP offsets are applied).
895
905
  * Note: This option is only relevant for --end-usage=q.
896
906
  */
897
907
  unsigned int use_fixed_qp_offsets;
@@ -919,8 +929,9 @@ typedef struct aom_codec_enc_cfg {
919
929
  * is not thread safe and should be guarded with a lock if being used
920
930
  * in a multithreaded context.
921
931
  *
922
- * If aom_codec_enc_init_ver() fails, it is not necessary to call
923
- * aom_codec_destroy() on the encoder context.
932
+ * On success, aom_codec_destroy() must be used to free resources allocated for
933
+ * the encoder context. If aom_codec_enc_init_ver() fails, it is not necessary
934
+ * to call aom_codec_destroy() on the encoder context.
924
935
  *
925
936
  * \param[in] ctx Pointer to this instance's context.
926
937
  * \param[in] iface Pointer to the algorithm interface to use.