@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
@@ -143,6 +143,10 @@ typedef struct _GMarkupParser GMarkupParser;
143
143
  * errors are intended to be set from these callbacks. If you set an error
144
144
  * from a callback, g_markup_parse_context_parse() will report that error
145
145
  * back to its caller.
146
+ *
147
+ * Refer to the [GMarkup](../glib/markup.html) documentation to understand
148
+ * the scope and limitations of `GMarkupParser`. In particular, it is not a
149
+ * full XML parser and it must not be used to process untrusted data.
146
150
  */
147
151
  struct _GMarkupParser
148
152
  {
@@ -117,6 +117,9 @@ GLogLevelFlags g_log_set_fatal_mask (const gchar *log_domain,
117
117
  GLIB_AVAILABLE_IN_ALL
118
118
  GLogLevelFlags g_log_set_always_fatal (GLogLevelFlags fatal_mask);
119
119
 
120
+ GLIB_AVAILABLE_IN_2_86
121
+ GLogLevelFlags g_log_get_always_fatal (void);
122
+
120
123
  /* Structured logging mechanism. */
121
124
 
122
125
  /**
@@ -587,7 +590,7 @@ GPrintFunc g_set_printerr_handler (GPrintFunc func);
587
590
  *
588
591
  * To debug failure of a g_return_if_fail() check, run the code under a debugger
589
592
  * with `G_DEBUG=fatal-criticals` or `G_DEBUG=fatal-warnings` defined in the
590
- * environment (see [Running GLib Applications](glib-running.html)):
593
+ * environment (see [Running GLib Applications](running.html)):
591
594
  *
592
595
  * |[
593
596
  * G_DEBUG=fatal-warnings gdb ./my-program
@@ -58,6 +58,8 @@ GString* g_string_new_len (const gchar *init,
58
58
  gssize len);
59
59
  GLIB_AVAILABLE_IN_ALL
60
60
  GString* g_string_sized_new (gsize dfl_size);
61
+ GLIB_AVAILABLE_IN_2_86
62
+ GString *g_string_copy (GString *string);
61
63
  GLIB_AVAILABLE_IN_ALL
62
64
  gchar* (g_string_free) (GString *string,
63
65
  gboolean free_segment);
@@ -413,6 +413,15 @@
413
413
  * Since: 2.84
414
414
  */
415
415
  #define GLIB_VERSION_2_84 (G_ENCODE_VERSION (2, 84))
416
+ /**
417
+ * GLIB_VERSION_2_86:
418
+ *
419
+ * A macro that evaluates to the 2.86 version of GLib, in a format
420
+ * that can be used by the C pre-processor.
421
+ *
422
+ * Since: 2.86
423
+ */
424
+ #define GLIB_VERSION_2_86 (G_ENCODE_VERSION (2, 86))
416
425
 
417
426
  /**
418
427
  * GLIB_VERSION_CUR_STABLE:
@@ -1052,3 +1052,37 @@
1052
1052
  #define GMODULE_AVAILABLE_ENUMERATOR_IN_2_84
1053
1053
  #define GMODULE_AVAILABLE_TYPE_IN_2_84
1054
1054
  #endif
1055
+
1056
+ #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_86
1057
+ #define GMODULE_DEPRECATED_IN_2_86 GMODULE_DEPRECATED
1058
+ #define GMODULE_DEPRECATED_IN_2_86_FOR(f) GMODULE_DEPRECATED_FOR (f)
1059
+ #define GMODULE_DEPRECATED_MACRO_IN_2_86 GLIB_DEPRECATED_MACRO
1060
+ #define GMODULE_DEPRECATED_MACRO_IN_2_86_FOR(f) GLIB_DEPRECATED_MACRO_FOR (f)
1061
+ #define GMODULE_DEPRECATED_ENUMERATOR_IN_2_86 GLIB_DEPRECATED_ENUMERATOR
1062
+ #define GMODULE_DEPRECATED_ENUMERATOR_IN_2_86_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR (f)
1063
+ #define GMODULE_DEPRECATED_TYPE_IN_2_86 GLIB_DEPRECATED_TYPE
1064
+ #define GMODULE_DEPRECATED_TYPE_IN_2_86_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f)
1065
+ #else
1066
+ #define GMODULE_DEPRECATED_IN_2_86 _GMODULE_EXTERN
1067
+ #define GMODULE_DEPRECATED_IN_2_86_FOR(f) _GMODULE_EXTERN
1068
+ #define GMODULE_DEPRECATED_MACRO_IN_2_86
1069
+ #define GMODULE_DEPRECATED_MACRO_IN_2_86_FOR(f)
1070
+ #define GMODULE_DEPRECATED_ENUMERATOR_IN_2_86
1071
+ #define GMODULE_DEPRECATED_ENUMERATOR_IN_2_86_FOR(f)
1072
+ #define GMODULE_DEPRECATED_TYPE_IN_2_86
1073
+ #define GMODULE_DEPRECATED_TYPE_IN_2_86_FOR(f)
1074
+ #endif
1075
+
1076
+ #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_86
1077
+ #define GMODULE_AVAILABLE_IN_2_86 GMODULE_UNAVAILABLE (2, 86)
1078
+ #define GMODULE_AVAILABLE_STATIC_INLINE_IN_2_86 GLIB_UNAVAILABLE_STATIC_INLINE (2, 86)
1079
+ #define GMODULE_AVAILABLE_MACRO_IN_2_86 GLIB_UNAVAILABLE_MACRO (2, 86)
1080
+ #define GMODULE_AVAILABLE_ENUMERATOR_IN_2_86 GLIB_UNAVAILABLE_ENUMERATOR (2, 86)
1081
+ #define GMODULE_AVAILABLE_TYPE_IN_2_86 GLIB_UNAVAILABLE_TYPE (2, 86)
1082
+ #else
1083
+ #define GMODULE_AVAILABLE_IN_2_86 _GMODULE_EXTERN
1084
+ #define GMODULE_AVAILABLE_STATIC_INLINE_IN_2_86
1085
+ #define GMODULE_AVAILABLE_MACRO_IN_2_86
1086
+ #define GMODULE_AVAILABLE_ENUMERATOR_IN_2_86
1087
+ #define GMODULE_AVAILABLE_TYPE_IN_2_86
1088
+ #endif
@@ -1052,3 +1052,37 @@
1052
1052
  #define GOBJECT_AVAILABLE_ENUMERATOR_IN_2_84
1053
1053
  #define GOBJECT_AVAILABLE_TYPE_IN_2_84
1054
1054
  #endif
1055
+
1056
+ #if GLIB_VERSION_MIN_REQUIRED >= GLIB_VERSION_2_86
1057
+ #define GOBJECT_DEPRECATED_IN_2_86 GOBJECT_DEPRECATED
1058
+ #define GOBJECT_DEPRECATED_IN_2_86_FOR(f) GOBJECT_DEPRECATED_FOR (f)
1059
+ #define GOBJECT_DEPRECATED_MACRO_IN_2_86 GLIB_DEPRECATED_MACRO
1060
+ #define GOBJECT_DEPRECATED_MACRO_IN_2_86_FOR(f) GLIB_DEPRECATED_MACRO_FOR (f)
1061
+ #define GOBJECT_DEPRECATED_ENUMERATOR_IN_2_86 GLIB_DEPRECATED_ENUMERATOR
1062
+ #define GOBJECT_DEPRECATED_ENUMERATOR_IN_2_86_FOR(f) GLIB_DEPRECATED_ENUMERATOR_FOR (f)
1063
+ #define GOBJECT_DEPRECATED_TYPE_IN_2_86 GLIB_DEPRECATED_TYPE
1064
+ #define GOBJECT_DEPRECATED_TYPE_IN_2_86_FOR(f) GLIB_DEPRECATED_TYPE_FOR (f)
1065
+ #else
1066
+ #define GOBJECT_DEPRECATED_IN_2_86 _GOBJECT_EXTERN
1067
+ #define GOBJECT_DEPRECATED_IN_2_86_FOR(f) _GOBJECT_EXTERN
1068
+ #define GOBJECT_DEPRECATED_MACRO_IN_2_86
1069
+ #define GOBJECT_DEPRECATED_MACRO_IN_2_86_FOR(f)
1070
+ #define GOBJECT_DEPRECATED_ENUMERATOR_IN_2_86
1071
+ #define GOBJECT_DEPRECATED_ENUMERATOR_IN_2_86_FOR(f)
1072
+ #define GOBJECT_DEPRECATED_TYPE_IN_2_86
1073
+ #define GOBJECT_DEPRECATED_TYPE_IN_2_86_FOR(f)
1074
+ #endif
1075
+
1076
+ #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_86
1077
+ #define GOBJECT_AVAILABLE_IN_2_86 GOBJECT_UNAVAILABLE (2, 86)
1078
+ #define GOBJECT_AVAILABLE_STATIC_INLINE_IN_2_86 GLIB_UNAVAILABLE_STATIC_INLINE (2, 86)
1079
+ #define GOBJECT_AVAILABLE_MACRO_IN_2_86 GLIB_UNAVAILABLE_MACRO (2, 86)
1080
+ #define GOBJECT_AVAILABLE_ENUMERATOR_IN_2_86 GLIB_UNAVAILABLE_ENUMERATOR (2, 86)
1081
+ #define GOBJECT_AVAILABLE_TYPE_IN_2_86 GLIB_UNAVAILABLE_TYPE (2, 86)
1082
+ #else
1083
+ #define GOBJECT_AVAILABLE_IN_2_86 _GOBJECT_EXTERN
1084
+ #define GOBJECT_AVAILABLE_STATIC_INLINE_IN_2_86
1085
+ #define GOBJECT_AVAILABLE_MACRO_IN_2_86
1086
+ #define GOBJECT_AVAILABLE_ENUMERATOR_IN_2_86
1087
+ #define GOBJECT_AVAILABLE_TYPE_IN_2_86
1088
+ #endif
@@ -287,7 +287,7 @@ typedef void (*hb_font_get_glyph_shape_func_t) (hb_font_t *font, void *font_data
287
287
  * A virtual method for the #hb_font_funcs_t of an #hb_font_t object.
288
288
  *
289
289
  * Since: 7.0.0
290
- * XDeprecated: REPLACEME: Use hb_font_draw_glyph_func_or_fail_t instead.
290
+ * Deprecated: 11.2.0: Use hb_font_draw_glyph_func_or_fail_t instead.
291
291
  **/
292
292
  typedef void (*hb_font_draw_glyph_func_t) (hb_font_t *font, void *font_data,
293
293
  hb_codepoint_t glyph,
@@ -308,7 +308,7 @@ typedef void (*hb_font_draw_glyph_func_t) (hb_font_t *font, void *font_data,
308
308
  * A virtual method for the #hb_font_funcs_t of an #hb_font_t object.
309
309
  *
310
310
  * Since: 7.0.0
311
- * XDeprecated: REPLACEME: Use hb_font_paint_glyph_or_fail_func_t instead.
311
+ * Deprecated: 11.2.0: Use hb_font_paint_glyph_or_fail_func_t instead.
312
312
  */
313
313
  typedef hb_bool_t (*hb_font_paint_glyph_func_t) (hb_font_t *font, void *font_data,
314
314
  hb_codepoint_t glyph,
@@ -346,7 +346,7 @@ hb_font_funcs_set_glyph_shape_func (hb_font_funcs_t *ffuncs,
346
346
  * Sets the implementation function for #hb_font_draw_glyph_func_t.
347
347
  *
348
348
  * Since: 7.0.0
349
- * XDeprecated: REPLACEME: Use hb_font_funcs_set_draw_glyph_or_fail_func instead.
349
+ * Deprecated: 11.2.0: Use hb_font_funcs_set_draw_glyph_or_fail_func instead.
350
350
  **/
351
351
  HB_DEPRECATED_FOR (hb_font_funcs_set_draw_glyph_or_fail_func)
352
352
  HB_EXTERN void
@@ -364,7 +364,7 @@ hb_font_funcs_set_draw_glyph_func (hb_font_funcs_t *ffuncs,
364
364
  * Sets the implementation function for #hb_font_paint_glyph_func_t.
365
365
  *
366
366
  * Since: 7.0.0
367
- * XDeprecated: REPLACEME: Use hb_font_funcs_set_paint_glyph_or_fail_func() instead.
367
+ * Deprecated: 11.2.0: Use hb_font_funcs_set_paint_glyph_or_fail_func() instead.
368
368
  */
369
369
  HB_DEPRECATED_FOR (hb_font_funcs_set_paint_glyph_or_fail_func)
370
370
  HB_EXTERN void
@@ -97,7 +97,7 @@ hb_font_funcs_is_immutable (hb_font_funcs_t *ffuncs);
97
97
  * @descender: The depth of typographic descenders.
98
98
  * @line_gap: The suggested line-spacing gap.
99
99
  *
100
- * Font-wide extent values, measured in font units.
100
+ * Font-wide extent values, measured in scaled units.
101
101
  *
102
102
  * Note that typically @ascender is positive and @descender
103
103
  * negative, in coordinate systems that grow up.
@@ -332,7 +332,7 @@ typedef hb_font_get_glyph_advances_func_t hb_font_get_glyph_v_advances_func_t;
332
332
  *
333
333
  * A virtual method for the #hb_font_funcs_t of an #hb_font_t object.
334
334
  *
335
- * This method should retrieve the (X,Y) coordinates (in font units) of the
335
+ * This method should retrieve the (X,Y) coordinates (in scaled units) of the
336
336
  * origin for a glyph. Each coordinate must be returned in an #hb_position_t
337
337
  * output parameter.
338
338
  *
@@ -349,7 +349,7 @@ typedef hb_bool_t (*hb_font_get_glyph_origin_func_t) (hb_font_t *font, void *fon
349
349
  *
350
350
  * A virtual method for the #hb_font_funcs_t of an #hb_font_t object.
351
351
  *
352
- * This method should retrieve the (X,Y) coordinates (in font units) of the
352
+ * This method should retrieve the (X,Y) coordinates (in scaled units) of the
353
353
  * origin for a glyph, for horizontal-direction text segments. Each
354
354
  * coordinate must be returned in an #hb_position_t output parameter.
355
355
  *
@@ -361,13 +361,72 @@ typedef hb_font_get_glyph_origin_func_t hb_font_get_glyph_h_origin_func_t;
361
361
  *
362
362
  * A virtual method for the #hb_font_funcs_t of an #hb_font_t object.
363
363
  *
364
- * This method should retrieve the (X,Y) coordinates (in font units) of the
364
+ * This method should retrieve the (X,Y) coordinates (in scaled units) of the
365
365
  * origin for a glyph, for vertical-direction text segments. Each coordinate
366
366
  * must be returned in an #hb_position_t output parameter.
367
367
  *
368
368
  **/
369
369
  typedef hb_font_get_glyph_origin_func_t hb_font_get_glyph_v_origin_func_t;
370
370
 
371
+ /**
372
+ * hb_font_get_glyph_origins_func_t:
373
+ * @font: #hb_font_t to work upon
374
+ * @font_data: @font user data pointer
375
+ * @first_glyph: The first glyph ID to query
376
+ * @count: number of glyphs to query
377
+ * @glyph_stride: The stride between successive glyph IDs
378
+ * @first_x: (out): The first origin X coordinate retrieved
379
+ * @x_stride: The stride between successive origin X coordinates
380
+ * @first_y: (out): The first origin Y coordinate retrieved
381
+ * @y_stride: The stride between successive origin Y coordinates
382
+ * @user_data: User data pointer passed by the caller
383
+ *
384
+ * A virtual method for the #hb_font_funcs_t of an #hb_font_t object.
385
+ *
386
+ * This method should retrieve the (X,Y) coordinates (in scaled units) of the
387
+ * origin for each requested glyph. Each coordinate value must be returned in
388
+ * an #hb_position_t in the two output parameters.
389
+ *
390
+ * Return value: `true` if data found, `false` otherwise
391
+ *
392
+ * Since: 11.3.0
393
+ **/
394
+ typedef hb_bool_t (*hb_font_get_glyph_origins_func_t) (hb_font_t *font, void *font_data,
395
+ unsigned int count,
396
+ const hb_codepoint_t *first_glyph,
397
+ unsigned glyph_stride,
398
+ hb_position_t *first_x,
399
+ unsigned x_stride,
400
+ hb_position_t *first_y,
401
+ unsigned y_stride,
402
+ void *user_data);
403
+
404
+ /**
405
+ * hb_font_get_glyph_h_origins_func_t:
406
+ *
407
+ * A virtual method for the #hb_font_funcs_t of an #hb_font_t object.
408
+ *
409
+ * This method should retrieve the (X,Y) coordinates (in scaled units) of the
410
+ * origin for requested glyph, for horizontal-direction text segments. Each
411
+ * coordinate must be returned in a the x/y #hb_position_t output parameters.
412
+ *
413
+ * Since: 11.3.0
414
+ **/
415
+ typedef hb_font_get_glyph_origins_func_t hb_font_get_glyph_h_origins_func_t;
416
+
417
+ /**
418
+ * hb_font_get_glyph_v_origins_func_t:
419
+ *
420
+ * A virtual method for the #hb_font_funcs_t of an #hb_font_t object.
421
+ *
422
+ * This method should retrieve the (X,Y) coordinates (in scaled units) of the
423
+ * origin for requested glyph, for vertical-direction text segments. Each
424
+ * coordinate must be returned in a the x/y #hb_position_t output parameters.
425
+ *
426
+ * Since: 11.3.0
427
+ **/
428
+ typedef hb_font_get_glyph_origins_func_t hb_font_get_glyph_v_origins_func_t;
429
+
371
430
  /**
372
431
  * hb_font_get_glyph_kerning_func_t:
373
432
  * @font: #hb_font_t to work upon
@@ -428,7 +487,7 @@ typedef hb_bool_t (*hb_font_get_glyph_extents_func_t) (hb_font_t *font, void *fo
428
487
  *
429
488
  * A virtual method for the #hb_font_funcs_t of an #hb_font_t object.
430
489
  *
431
- * This method should retrieve the (X,Y) coordinates (in font units) for a
490
+ * This method should retrieve the (X,Y) coordinates (in scaled units) for a
432
491
  * specified contour point in a glyph. Each coordinate must be returned as
433
492
  * an #hb_position_t output parameter.
434
493
  *
@@ -498,7 +557,7 @@ typedef hb_bool_t (*hb_font_get_glyph_from_name_func_t) (hb_font_t *font, void *
498
557
  *
499
558
  * Return value: `true` if glyph was drawn, `false` otherwise
500
559
  *
501
- * XSince: REPLACEME
560
+ * Since: 11.2.0
502
561
  **/
503
562
  typedef hb_bool_t (*hb_font_draw_glyph_or_fail_func_t) (hb_font_t *font, void *font_data,
504
563
  hb_codepoint_t glyph,
@@ -520,7 +579,7 @@ typedef hb_bool_t (*hb_font_draw_glyph_or_fail_func_t) (hb_font_t *font, void *f
520
579
  *
521
580
  * Return value: `true` if glyph was painted, `false` otherwise
522
581
  *
523
- * XSince: REPLACEME
582
+ * Since: 11.2.0
524
583
  */
525
584
  typedef hb_bool_t (*hb_font_paint_glyph_or_fail_func_t) (hb_font_t *font, void *font_data,
526
585
  hb_codepoint_t glyph,
@@ -707,6 +766,38 @@ hb_font_funcs_set_glyph_v_origin_func (hb_font_funcs_t *ffuncs,
707
766
  hb_font_get_glyph_v_origin_func_t func,
708
767
  void *user_data, hb_destroy_func_t destroy);
709
768
 
769
+ /**
770
+ * hb_font_funcs_set_glyph_h_origins_func:
771
+ * @ffuncs: A font-function structure
772
+ * @func: (closure user_data) (destroy destroy) (scope notified): The callback function to assign
773
+ * @user_data: Data to pass to @func
774
+ * @destroy: (nullable): The function to call when @user_data is not needed anymore
775
+ *
776
+ * Sets the implementation function for #hb_font_get_glyph_h_origins_func_t.
777
+ *
778
+ * Since: 11.3.0
779
+ **/
780
+ HB_EXTERN void
781
+ hb_font_funcs_set_glyph_h_origins_func (hb_font_funcs_t *ffuncs,
782
+ hb_font_get_glyph_h_origins_func_t func,
783
+ void *user_data, hb_destroy_func_t destroy);
784
+
785
+ /**
786
+ * hb_font_funcs_set_glyph_v_origins_func:
787
+ * @ffuncs: A font-function structure
788
+ * @func: (closure user_data) (destroy destroy) (scope notified): The callback function to assign
789
+ * @user_data: Data to pass to @func
790
+ * @destroy: (nullable): The function to call when @user_data is not needed anymore
791
+ *
792
+ * Sets the implementation function for #hb_font_get_glyph_v_origins_func_t.
793
+ *
794
+ * Since: 11.3.0
795
+ **/
796
+ HB_EXTERN void
797
+ hb_font_funcs_set_glyph_v_origins_func (hb_font_funcs_t *ffuncs,
798
+ hb_font_get_glyph_v_origins_func_t func,
799
+ void *user_data, hb_destroy_func_t destroy);
800
+
710
801
  /**
711
802
  * hb_font_funcs_set_glyph_h_kerning_func:
712
803
  * @ffuncs: A font-function structure
@@ -796,7 +887,7 @@ hb_font_funcs_set_glyph_from_name_func (hb_font_funcs_t *ffuncs,
796
887
  *
797
888
  * Sets the implementation function for #hb_font_draw_glyph_or_fail_func_t.
798
889
  *
799
- * XSince: REPLACEME
890
+ * Since: 11.2.0
800
891
  **/
801
892
  HB_EXTERN void
802
893
  hb_font_funcs_set_draw_glyph_or_fail_func (hb_font_funcs_t *ffuncs,
@@ -812,7 +903,7 @@ hb_font_funcs_set_draw_glyph_or_fail_func (hb_font_funcs_t *ffuncs,
812
903
  *
813
904
  * Sets the implementation function for #hb_font_paint_glyph_or_fail_func_t.
814
905
  *
815
- * XSince: REPLACEME
906
+ * Since: 11.2.0
816
907
  */
817
908
  HB_EXTERN void
818
909
  hb_font_funcs_set_paint_glyph_or_fail_func (hb_font_funcs_t *ffuncs,
@@ -876,6 +967,26 @@ hb_font_get_glyph_v_origin (hb_font_t *font,
876
967
  hb_codepoint_t glyph,
877
968
  hb_position_t *x, hb_position_t *y);
878
969
 
970
+ HB_EXTERN hb_bool_t
971
+ hb_font_get_glyph_h_origins (hb_font_t *font,
972
+ unsigned int count,
973
+ const hb_codepoint_t *first_glyph,
974
+ unsigned glyph_stride,
975
+ hb_position_t *first_x,
976
+ unsigned x_stride,
977
+ hb_position_t *first_y,
978
+ unsigned y_stride);
979
+
980
+ HB_EXTERN hb_bool_t
981
+ hb_font_get_glyph_v_origins (hb_font_t *font,
982
+ unsigned int count,
983
+ const hb_codepoint_t *first_glyph,
984
+ unsigned glyph_stride,
985
+ hb_position_t *first_x,
986
+ unsigned x_stride,
987
+ hb_position_t *first_y,
988
+ unsigned y_stride);
989
+
879
990
  HB_EXTERN hb_position_t
880
991
  hb_font_get_glyph_h_kerning (hb_font_t *font,
881
992
  hb_codepoint_t left_glyph, hb_codepoint_t right_glyph);
@@ -47,20 +47,20 @@ HB_BEGIN_DECLS
47
47
  *
48
48
  * The minor component of the library version available at compile-time.
49
49
  */
50
- #define HB_VERSION_MINOR 2
50
+ #define HB_VERSION_MINOR 4
51
51
  /**
52
52
  * HB_VERSION_MICRO:
53
53
  *
54
54
  * The micro component of the library version available at compile-time.
55
55
  */
56
- #define HB_VERSION_MICRO 0
56
+ #define HB_VERSION_MICRO 4
57
57
 
58
58
  /**
59
59
  * HB_VERSION_STRING:
60
60
  *
61
61
  * A string literal containing the library version available at compile-time.
62
62
  */
63
- #define HB_VERSION_STRING "11.2.0"
63
+ #define HB_VERSION_STRING "11.4.4"
64
64
 
65
65
  /**
66
66
  * HB_VERSION_ATLEAST:
@@ -5,24 +5,7 @@
5
5
  #ifndef HIGHWAY_HWY_ABORT_H_
6
6
  #define HIGHWAY_HWY_ABORT_H_
7
7
 
8
- #include "hwy/highway_export.h"
9
-
10
- namespace hwy {
11
-
12
- // Interface for custom abort handler
13
- typedef void (*AbortFunc)(const char* file, int line,
14
- const char* formatted_err);
15
-
16
- // Retrieve current abort handler
17
- // Returns null if no abort handler registered, indicating Highway should print and abort
18
- HWY_DLLEXPORT AbortFunc& GetAbortFunc();
19
-
20
- // Sets a new abort handler and returns the previous abort handler
21
- // If this handler does not do the aborting itself Highway will use its own abort mechanism
22
- // which allows this to be used to customize the handling of the error itself.
23
- // Returns null if no previous abort handler registered
24
- HWY_DLLEXPORT AbortFunc SetAbortFunc(AbortFunc func);
25
-
26
- } // namespace hwy
8
+ // Empty header for compatibility.
9
+ // All Abort/Warn functionalities are in base.h.
27
10
 
28
11
  #endif // HIGHWAY_HWY_ABORT_H_
@@ -40,6 +40,7 @@ namespace hwy {
40
40
  // access pairs of lines, and M1 L2 and POWER8 lines are also 128 bytes.
41
41
  #define HWY_ALIGNMENT 128
42
42
 
43
+ // `align` is in bytes.
43
44
  template <typename T>
44
45
  HWY_API constexpr bool IsAligned(T* ptr, size_t align = HWY_ALIGNMENT) {
45
46
  return reinterpret_cast<uintptr_t>(ptr) % align == 0;
@@ -181,14 +182,14 @@ static inline constexpr size_t ShiftCount(size_t n) {
181
182
 
182
183
  template <typename T>
183
184
  T* AllocateAlignedItems(size_t items, AllocPtr alloc_ptr, void* opaque_ptr) {
184
- constexpr size_t size = sizeof(T);
185
+ constexpr size_t kSize = sizeof(T);
185
186
 
186
- constexpr bool is_pow2 = (size & (size - 1)) == 0;
187
- constexpr size_t bits = ShiftCount(size);
188
- static_assert(!is_pow2 || (1ull << bits) == size, "ShiftCount is incorrect");
187
+ constexpr bool kIsPow2 = (kSize & (kSize - 1)) == 0;
188
+ constexpr size_t kBits = ShiftCount(kSize);
189
+ static_assert(!kIsPow2 || (1ull << kBits) == kSize, "ShiftCount has a bug");
189
190
 
190
- const size_t bytes = is_pow2 ? items << bits : items * size;
191
- const size_t check = is_pow2 ? bytes >> bits : bytes / size;
191
+ const size_t bytes = kIsPow2 ? items << kBits : items * kSize;
192
+ const size_t check = kIsPow2 ? bytes >> kBits : bytes / kSize;
192
193
  if (check != items) {
193
194
  return nullptr; // overflowed
194
195
  }
@@ -232,7 +233,6 @@ class AlignedFreer {
232
233
 
233
234
  template <typename T>
234
235
  void operator()(T* aligned_pointer) const {
235
- // TODO(deymo): assert that we are using a POD type T.
236
236
  FreeAlignedBytes(aligned_pointer, free_, opaque_ptr_);
237
237
  }
238
238
 
@@ -251,6 +251,10 @@ using AlignedFreeUniquePtr = std::unique_ptr<T, AlignedFreer>;
251
251
  template <typename T>
252
252
  AlignedFreeUniquePtr<T[]> AllocateAligned(const size_t items, AllocPtr alloc,
253
253
  FreePtr free, void* opaque) {
254
+ static_assert(std::is_trivially_copyable<T>::value,
255
+ "AllocateAligned: requires trivially copyable T");
256
+ static_assert(std::is_trivially_destructible<T>::value,
257
+ "AllocateAligned: requires trivially destructible T");
254
258
  return AlignedFreeUniquePtr<T[]>(
255
259
  detail::AllocateAlignedItems<T>(items, alloc, opaque),
256
260
  AlignedFreer(free, opaque));