@revizly/sharp-libvips-dev 1.0.30 → 1.0.32
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.
- package/include/archive.h +2 -2
- package/include/archive_entry.h +1 -1
- package/include/expat.h +14 -2
- package/include/expat_config.h +6 -3
- package/include/expat_external.h +3 -2
- package/include/glib-2.0/glib/gvarianttype.h +16 -16
- package/include/glib-2.0/glib/gversionmacros.h +13 -0
- package/include/harfbuzz/hb-cplusplus.hh +9 -1
- package/include/harfbuzz/hb-draw.h +52 -0
- package/include/harfbuzz/hb-paint.h +209 -2
- package/include/harfbuzz/hb-version.h +2 -2
- package/include/hwy/aligned_allocator.h +44 -2
- package/include/hwy/auto_tune.h +22 -6
- package/include/hwy/base.h +60 -90
- package/include/hwy/bit_set.h +410 -0
- package/include/hwy/cache_control.h +3 -2
- package/include/hwy/detect_compiler_arch.h +134 -14
- package/include/hwy/detect_targets.h +82 -36
- package/include/hwy/highway.h +15 -0
- package/include/hwy/nanobenchmark.h +12 -3
- package/include/hwy/ops/arm_neon-inl.h +96 -25
- package/include/hwy/ops/arm_sve-inl.h +250 -95
- package/include/hwy/ops/emu128-inl.h +12 -7
- package/include/hwy/ops/generic_ops-inl.h +271 -131
- package/include/hwy/ops/loongarch_lasx-inl.h +31 -9
- package/include/hwy/ops/loongarch_lsx-inl.h +33 -12
- package/include/hwy/ops/ppc_vsx-inl.h +99 -19
- package/include/hwy/ops/rvv-inl.h +239 -130
- package/include/hwy/ops/scalar-inl.h +22 -7
- package/include/hwy/ops/set_macros-inl.h +158 -107
- package/include/hwy/ops/wasm_128-inl.h +13 -22
- package/include/hwy/ops/x86_128-inl.h +223 -120
- package/include/hwy/ops/x86_256-inl.h +70 -134
- package/include/hwy/ops/x86_512-inl.h +130 -134
- package/include/hwy/print-inl.h +2 -0
- package/include/hwy/profiler.h +355 -264
- package/include/hwy/robust_statistics.h +3 -1
- package/include/hwy/timer.h +44 -0
- package/include/lcms2.h +34 -4
- package/include/libexif/exif-utils.h +1 -1
- package/include/libheif/heif_aux_images.h +2 -2
- package/include/libheif/heif_brands.h +13 -4
- package/include/libheif/heif_color.h +14 -14
- package/include/libheif/heif_context.h +17 -4
- package/include/libheif/heif_decoding.h +2 -2
- package/include/libheif/heif_encoding.h +29 -5
- package/include/libheif/heif_error.h +4 -4
- package/include/libheif/heif_image.h +52 -8
- package/include/libheif/heif_image_handle.h +42 -0
- package/include/libheif/heif_library.h +2 -2
- package/include/libheif/heif_metadata.h +2 -2
- package/include/libheif/heif_plugin.h +4 -4
- package/include/libheif/heif_properties.h +16 -4
- package/include/libheif/heif_regions.h +2 -2
- package/include/libheif/heif_security.h +5 -0
- package/include/libheif/heif_sequences.h +22 -12
- package/include/libheif/heif_uncompressed.h +327 -23
- package/include/libheif/heif_uncompressed_types.h +143 -0
- package/include/libpng16/png.h +7 -7
- package/include/libpng16/pngconf.h +1 -1
- package/include/libpng16/pnglibconf.h +1 -1
- package/include/libxml2/libxml/xmlversion.h +4 -4
- package/include/png.h +7 -7
- package/include/pngconf.h +1 -1
- package/include/pnglibconf.h +1 -1
- package/include/tiffconf.h +9 -10
- package/include/tiffio.h +9 -9
- package/include/tiffvers.h +1 -1
- package/package.json +1 -1
- package/versions.json +11 -11
package/include/archive.h
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
* assert that ARCHIVE_VERSION_NUMBER >= 2012108.
|
|
35
35
|
*/
|
|
36
36
|
/* Note: Compiler will complain if this does not match archive_entry.h! */
|
|
37
|
-
#define ARCHIVE_VERSION_NUMBER
|
|
37
|
+
#define ARCHIVE_VERSION_NUMBER 3008007
|
|
38
38
|
|
|
39
39
|
#include <sys/stat.h>
|
|
40
40
|
#include <stddef.h> /* for wchar_t */
|
|
@@ -177,7 +177,7 @@ __LA_DECL int archive_version_number(void);
|
|
|
177
177
|
/*
|
|
178
178
|
* Textual name/version of the library, useful for version displays.
|
|
179
179
|
*/
|
|
180
|
-
#define ARCHIVE_VERSION_ONLY_STRING "3.8.
|
|
180
|
+
#define ARCHIVE_VERSION_ONLY_STRING "3.8.7"
|
|
181
181
|
#define ARCHIVE_VERSION_STRING "libarchive " ARCHIVE_VERSION_ONLY_STRING
|
|
182
182
|
__LA_DECL const char * archive_version_string(void);
|
|
183
183
|
|
package/include/archive_entry.h
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
#define ARCHIVE_ENTRY_H_INCLUDED
|
|
29
29
|
|
|
30
30
|
/* Note: Compiler will complain if this does not match archive.h! */
|
|
31
|
-
#define ARCHIVE_VERSION_NUMBER
|
|
31
|
+
#define ARCHIVE_VERSION_NUMBER 3008007
|
|
32
32
|
|
|
33
33
|
/*
|
|
34
34
|
* Note: archive_entry.h is for use outside of libarchive; the
|
package/include/expat.h
CHANGED
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
#ifndef Expat_INCLUDED
|
|
46
46
|
# define Expat_INCLUDED 1
|
|
47
47
|
|
|
48
|
+
# include <stdint.h> // for uint8_t
|
|
48
49
|
# include <stdlib.h>
|
|
49
50
|
# include "expat_external.h"
|
|
50
51
|
|
|
@@ -917,10 +918,21 @@ XML_SetParamEntityParsing(XML_Parser parser,
|
|
|
917
918
|
function behavior. This must be called before parsing is started.
|
|
918
919
|
Returns 1 if successful, 0 when called after parsing has started.
|
|
919
920
|
Note: If parser == NULL, the function will do nothing and return 0.
|
|
921
|
+
DEPRECATED since Expat 2.8.0.
|
|
920
922
|
*/
|
|
921
923
|
XMLPARSEAPI(int)
|
|
922
924
|
XML_SetHashSalt(XML_Parser parser, unsigned long hash_salt);
|
|
923
925
|
|
|
926
|
+
/* Sets the hash salt to use for internal hash calculations.
|
|
927
|
+
Helps in preventing DoS attacks based on predicting hash function behavior.
|
|
928
|
+
This must be called before parsing is started.
|
|
929
|
+
Returns XML_TRUE if successful, XML_FALSE when called after parsing has
|
|
930
|
+
started or when parser is NULL.
|
|
931
|
+
Added in Expat 2.8.0.
|
|
932
|
+
*/
|
|
933
|
+
XMLPARSEAPI(XML_Bool)
|
|
934
|
+
XML_SetHashSalt16Bytes(XML_Parser parser, const uint8_t entropy[16]);
|
|
935
|
+
|
|
924
936
|
/* If XML_Parse or XML_ParseBuffer have returned XML_STATUS_ERROR, then
|
|
925
937
|
XML_GetErrorCode returns information about the error.
|
|
926
938
|
*/
|
|
@@ -1081,8 +1093,8 @@ XML_SetReparseDeferralEnabled(XML_Parser parser, XML_Bool enabled);
|
|
|
1081
1093
|
See https://semver.org
|
|
1082
1094
|
*/
|
|
1083
1095
|
# define XML_MAJOR_VERSION 2
|
|
1084
|
-
# define XML_MINOR_VERSION
|
|
1085
|
-
# define XML_MICRO_VERSION
|
|
1096
|
+
# define XML_MINOR_VERSION 8
|
|
1097
|
+
# define XML_MICRO_VERSION 0
|
|
1086
1098
|
|
|
1087
1099
|
# ifdef __cplusplus
|
|
1088
1100
|
}
|
package/include/expat_config.h
CHANGED
|
@@ -25,6 +25,9 @@
|
|
|
25
25
|
/* Define to 1 if you have the <fcntl.h> header file. */
|
|
26
26
|
#define HAVE_FCNTL_H 1
|
|
27
27
|
|
|
28
|
+
/* Define to 1 if you have the `getentropy' function. */
|
|
29
|
+
#define HAVE_GETENTROPY 1
|
|
30
|
+
|
|
28
31
|
/* Define to 1 if you have the 'getpagesize' function. */
|
|
29
32
|
#define HAVE_GETPAGESIZE 1
|
|
30
33
|
|
|
@@ -80,7 +83,7 @@
|
|
|
80
83
|
#define PACKAGE_NAME "expat"
|
|
81
84
|
|
|
82
85
|
/* Define to the full name and version of this package. */
|
|
83
|
-
#define PACKAGE_STRING "expat 2.
|
|
86
|
+
#define PACKAGE_STRING "expat 2.8.0"
|
|
84
87
|
|
|
85
88
|
/* Define to the one symbol short name of this package. */
|
|
86
89
|
#define PACKAGE_TARNAME "expat"
|
|
@@ -89,7 +92,7 @@
|
|
|
89
92
|
#define PACKAGE_URL ""
|
|
90
93
|
|
|
91
94
|
/* Define to the version of this package. */
|
|
92
|
-
#define PACKAGE_VERSION "2.
|
|
95
|
+
#define PACKAGE_VERSION "2.8.0"
|
|
93
96
|
|
|
94
97
|
/* Define to 1 if all of the C89 standard headers exist (not just the ones
|
|
95
98
|
required in a freestanding environment). This macro is provided for
|
|
@@ -97,7 +100,7 @@
|
|
|
97
100
|
#define STDC_HEADERS 1
|
|
98
101
|
|
|
99
102
|
/* Version number of package */
|
|
100
|
-
#define VERSION "2.
|
|
103
|
+
#define VERSION "2.8.0"
|
|
101
104
|
|
|
102
105
|
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
|
103
106
|
significant byte first (like Motorola and SPARC, unlike Intel). */
|
package/include/expat_external.h
CHANGED
|
@@ -12,9 +12,10 @@
|
|
|
12
12
|
Copyright (c) 2001-2002 Greg Stein <gstein@users.sourceforge.net>
|
|
13
13
|
Copyright (c) 2002-2006 Karl Waclawek <karl@waclawek.net>
|
|
14
14
|
Copyright (c) 2016 Cristian Rodríguez <crrodriguez@opensuse.org>
|
|
15
|
-
Copyright (c) 2016-
|
|
15
|
+
Copyright (c) 2016-2025 Sebastian Pipping <sebastian@pipping.org>
|
|
16
16
|
Copyright (c) 2017 Rhodri James <rhodri@wildebeest.org.uk>
|
|
17
17
|
Copyright (c) 2018 Yury Gribov <tetra2005@gmail.com>
|
|
18
|
+
Copyright (c) 2026 Matthew Fernandez <matthew.fernandez@gmail.com>
|
|
18
19
|
Licensed under the MIT license:
|
|
19
20
|
|
|
20
21
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
/* Expat tries very hard to make the API boundary very specifically
|
|
46
47
|
defined. There are two macros defined to control this boundary;
|
|
47
48
|
each of these can be defined before including this header to
|
|
48
|
-
achieve some different behavior, but doing so
|
|
49
|
+
achieve some different behavior, but doing so is not recommended or
|
|
49
50
|
tested frequently.
|
|
50
51
|
|
|
51
52
|
XMLCALL - The calling convention to use for all calls across the
|
|
@@ -302,7 +302,7 @@ typedef struct _GVariantType GVariantType;
|
|
|
302
302
|
|
|
303
303
|
/* type string checking */
|
|
304
304
|
GLIB_AVAILABLE_IN_ALL
|
|
305
|
-
gboolean g_variant_type_string_is_valid (const gchar *type_string)
|
|
305
|
+
gboolean g_variant_type_string_is_valid (const gchar *type_string) G_GNUC_PURE;
|
|
306
306
|
GLIB_AVAILABLE_IN_ALL
|
|
307
307
|
gboolean g_variant_type_string_scan (const gchar *string,
|
|
308
308
|
const gchar *limit,
|
|
@@ -326,21 +326,21 @@ gchar * g_variant_type_dup_string (const G
|
|
|
326
326
|
|
|
327
327
|
/* classification */
|
|
328
328
|
GLIB_AVAILABLE_IN_ALL
|
|
329
|
-
gboolean g_variant_type_is_definite (const GVariantType *type)
|
|
329
|
+
gboolean g_variant_type_is_definite (const GVariantType *type) G_GNUC_PURE;
|
|
330
330
|
GLIB_AVAILABLE_IN_ALL
|
|
331
|
-
gboolean g_variant_type_is_container (const GVariantType *type)
|
|
331
|
+
gboolean g_variant_type_is_container (const GVariantType *type) G_GNUC_PURE;
|
|
332
332
|
GLIB_AVAILABLE_IN_ALL
|
|
333
|
-
gboolean g_variant_type_is_basic (const GVariantType *type)
|
|
333
|
+
gboolean g_variant_type_is_basic (const GVariantType *type) G_GNUC_PURE;
|
|
334
334
|
GLIB_AVAILABLE_IN_ALL
|
|
335
|
-
gboolean g_variant_type_is_maybe (const GVariantType *type)
|
|
335
|
+
gboolean g_variant_type_is_maybe (const GVariantType *type) G_GNUC_PURE;
|
|
336
336
|
GLIB_AVAILABLE_IN_ALL
|
|
337
|
-
gboolean g_variant_type_is_array (const GVariantType *type)
|
|
337
|
+
gboolean g_variant_type_is_array (const GVariantType *type) G_GNUC_PURE;
|
|
338
338
|
GLIB_AVAILABLE_IN_ALL
|
|
339
|
-
gboolean g_variant_type_is_tuple (const GVariantType *type)
|
|
339
|
+
gboolean g_variant_type_is_tuple (const GVariantType *type) G_GNUC_PURE;
|
|
340
340
|
GLIB_AVAILABLE_IN_ALL
|
|
341
|
-
gboolean g_variant_type_is_dict_entry (const GVariantType *type)
|
|
341
|
+
gboolean g_variant_type_is_dict_entry (const GVariantType *type) G_GNUC_PURE;
|
|
342
342
|
GLIB_AVAILABLE_IN_ALL
|
|
343
|
-
gboolean g_variant_type_is_variant (const GVariantType *type)
|
|
343
|
+
gboolean g_variant_type_is_variant (const GVariantType *type) G_GNUC_PURE;
|
|
344
344
|
|
|
345
345
|
/* for hash tables */
|
|
346
346
|
GLIB_AVAILABLE_IN_ALL
|
|
@@ -352,21 +352,21 @@ gboolean g_variant_type_equal (gconstp
|
|
|
352
352
|
/* subtypes */
|
|
353
353
|
GLIB_AVAILABLE_IN_ALL
|
|
354
354
|
gboolean g_variant_type_is_subtype_of (const GVariantType *type,
|
|
355
|
-
const GVariantType *supertype)
|
|
355
|
+
const GVariantType *supertype) G_GNUC_PURE;
|
|
356
356
|
|
|
357
357
|
/* type iterator interface */
|
|
358
358
|
GLIB_AVAILABLE_IN_ALL
|
|
359
|
-
const GVariantType * g_variant_type_element (const GVariantType *type)
|
|
359
|
+
const GVariantType * g_variant_type_element (const GVariantType *type) G_GNUC_PURE;
|
|
360
360
|
GLIB_AVAILABLE_IN_ALL
|
|
361
|
-
const GVariantType * g_variant_type_first (const GVariantType *type)
|
|
361
|
+
const GVariantType * g_variant_type_first (const GVariantType *type) G_GNUC_PURE;
|
|
362
362
|
GLIB_AVAILABLE_IN_ALL
|
|
363
|
-
const GVariantType * g_variant_type_next (const GVariantType *type)
|
|
363
|
+
const GVariantType * g_variant_type_next (const GVariantType *type) G_GNUC_PURE;
|
|
364
364
|
GLIB_AVAILABLE_IN_ALL
|
|
365
|
-
gsize g_variant_type_n_items (const GVariantType *type)
|
|
365
|
+
gsize g_variant_type_n_items (const GVariantType *type) G_GNUC_PURE;
|
|
366
366
|
GLIB_AVAILABLE_IN_ALL
|
|
367
|
-
const GVariantType * g_variant_type_key (const GVariantType *type)
|
|
367
|
+
const GVariantType * g_variant_type_key (const GVariantType *type) G_GNUC_PURE;
|
|
368
368
|
GLIB_AVAILABLE_IN_ALL
|
|
369
|
-
const GVariantType * g_variant_type_value (const GVariantType *type)
|
|
369
|
+
const GVariantType * g_variant_type_value (const GVariantType *type) G_GNUC_PURE;
|
|
370
370
|
|
|
371
371
|
/* constructors */
|
|
372
372
|
GLIB_AVAILABLE_IN_ALL
|
|
@@ -33,6 +33,19 @@
|
|
|
33
33
|
|
|
34
34
|
/* Version boundaries checks */
|
|
35
35
|
|
|
36
|
+
/**
|
|
37
|
+
* G_ENCODE_VERSION:
|
|
38
|
+
* @major: major version number
|
|
39
|
+
* @minor: minor version number
|
|
40
|
+
*
|
|
41
|
+
* Encode a major.minor version as a single integer.
|
|
42
|
+
*
|
|
43
|
+
* This is the encoding used by macros such as `GLIB_VERSION_2_84` and
|
|
44
|
+
* `GLIB_VERSION_CUR_STABLE`, and is intended to be used when (for example)
|
|
45
|
+
* setting the value of `GLIB_VERSION_MAX_ALLOWED`.
|
|
46
|
+
*
|
|
47
|
+
* Since: 2.32
|
|
48
|
+
*/
|
|
36
49
|
#define G_ENCODE_VERSION(major, minor) ((major) << 16 | (minor) << 8)
|
|
37
50
|
|
|
38
51
|
/**
|
|
@@ -185,7 +185,15 @@ HB_DEFINE_VTABLE (vector_paint, nullptr);
|
|
|
185
185
|
|
|
186
186
|
#endif
|
|
187
187
|
|
|
188
|
-
|
|
188
|
+
|
|
189
|
+
#ifdef HB_GPU_H
|
|
190
|
+
|
|
191
|
+
HB_DEFINE_VTABLE (gpu_draw, nullptr);
|
|
192
|
+
|
|
193
|
+
#endif
|
|
194
|
+
|
|
195
|
+
/* HB_DEFINE_VTABLE stays available for subsystem headers' paired tail
|
|
196
|
+
* blocks (see hb-raster.h, hb-vector.h, hb-gpu.h, hb-subset.h). */
|
|
189
197
|
|
|
190
198
|
|
|
191
199
|
} // namespace hb
|
|
@@ -335,6 +335,58 @@ hb_draw_close_path (hb_draw_funcs_t *dfuncs, void *draw_data,
|
|
|
335
335
|
hb_draw_state_t *st);
|
|
336
336
|
|
|
337
337
|
|
|
338
|
+
/* Shape helpers.
|
|
339
|
+
*
|
|
340
|
+
* Emit common primitives (tapered line, rectangle, circle) into
|
|
341
|
+
* any pen. The helpers are thin wrappers over the individual
|
|
342
|
+
* move_to / line_to / cubic_to / close_path calls: callers can
|
|
343
|
+
* always hand-roll the same shapes if they need a variation.
|
|
344
|
+
*
|
|
345
|
+
* For rect / circle the @stroke_width parameter selects between
|
|
346
|
+
* filled and stroked: a positive finite value is the stroke
|
|
347
|
+
* width of the outline; NaN means "filled" (no stroke).
|
|
348
|
+
*/
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* hb_draw_line_cap_t:
|
|
352
|
+
* @HB_DRAW_LINE_CAP_BUTT: No cap; the line ends exactly at
|
|
353
|
+
* its endpoint.
|
|
354
|
+
* @HB_DRAW_LINE_CAP_SQUARE: Square cap; the line is extended
|
|
355
|
+
* past its endpoint by half the local stroke width. Useful
|
|
356
|
+
* for composing closed shapes from line segments (e.g. a
|
|
357
|
+
* rectangle made from four lines).
|
|
358
|
+
*
|
|
359
|
+
* End-cap shape for hb_draw_line().
|
|
360
|
+
*
|
|
361
|
+
* Since: 14.2.0
|
|
362
|
+
**/
|
|
363
|
+
typedef enum {
|
|
364
|
+
HB_DRAW_LINE_CAP_BUTT = 0,
|
|
365
|
+
HB_DRAW_LINE_CAP_SQUARE = 1,
|
|
366
|
+
} hb_draw_line_cap_t;
|
|
367
|
+
|
|
368
|
+
HB_EXTERN void
|
|
369
|
+
hb_draw_line (hb_draw_funcs_t *dfuncs, void *draw_data,
|
|
370
|
+
hb_draw_state_t *st,
|
|
371
|
+
float x0, float y0, float w0,
|
|
372
|
+
float x1, float y1, float w1,
|
|
373
|
+
hb_draw_line_cap_t cap);
|
|
374
|
+
|
|
375
|
+
HB_EXTERN void
|
|
376
|
+
hb_draw_rectangle (hb_draw_funcs_t *dfuncs, void *draw_data,
|
|
377
|
+
hb_draw_state_t *st,
|
|
378
|
+
float x, float y,
|
|
379
|
+
float w, float h,
|
|
380
|
+
float stroke_width);
|
|
381
|
+
|
|
382
|
+
HB_EXTERN void
|
|
383
|
+
hb_draw_circle (hb_draw_funcs_t *dfuncs, void *draw_data,
|
|
384
|
+
hb_draw_state_t *st,
|
|
385
|
+
float cx, float cy,
|
|
386
|
+
float r,
|
|
387
|
+
float stroke_width);
|
|
388
|
+
|
|
389
|
+
|
|
338
390
|
HB_END_DECLS
|
|
339
391
|
|
|
340
392
|
#endif /* HB_DRAW_H */
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
#define HB_PAINT_H
|
|
31
31
|
|
|
32
32
|
#include "hb-common.h"
|
|
33
|
+
#include "hb-draw.h"
|
|
33
34
|
|
|
34
35
|
HB_BEGIN_DECLS
|
|
35
36
|
|
|
@@ -212,6 +213,53 @@ typedef void (*hb_paint_push_clip_rectangle_func_t) (hb_paint_funcs_t *funcs,
|
|
|
212
213
|
float xmax, float ymax,
|
|
213
214
|
void *user_data);
|
|
214
215
|
|
|
216
|
+
/**
|
|
217
|
+
* hb_paint_push_clip_path_start_func_t:
|
|
218
|
+
* @funcs: paint functions object
|
|
219
|
+
* @paint_data: The data accompanying the paint functions in hb_font_paint_glyph()
|
|
220
|
+
* @draw_data: (out): location to store the draw data the caller should
|
|
221
|
+
* pass alongside the returned draw funcs.
|
|
222
|
+
* @user_data: User data pointer passed to hb_paint_funcs_set_push_clip_path_start_func()
|
|
223
|
+
*
|
|
224
|
+
* A virtual method for the #hb_paint_funcs_t to begin clipping
|
|
225
|
+
* to an arbitrary path. The backend returns an
|
|
226
|
+
* #hb_draw_funcs_t it owns (the caller must not free it)
|
|
227
|
+
* that the caller feeds the clip outline to via hb_draw_*()
|
|
228
|
+
* calls, plus a @draw_data value to pass alongside those
|
|
229
|
+
* calls. Both are only valid until the matching
|
|
230
|
+
* #hb_paint_push_clip_path_end_func_t call; no other paint
|
|
231
|
+
* calls should be made in between. The clip remains
|
|
232
|
+
* in effect until a later #hb_paint_pop_clip_func_t call.
|
|
233
|
+
*
|
|
234
|
+
* Return value: (transfer none): draw funcs that accumulate
|
|
235
|
+
* the clip path, or `NULL` if arbitrary-path clipping is not
|
|
236
|
+
* supported.
|
|
237
|
+
*
|
|
238
|
+
* Since: 14.2.0
|
|
239
|
+
*/
|
|
240
|
+
typedef hb_draw_funcs_t * (*hb_paint_push_clip_path_start_func_t) (hb_paint_funcs_t *funcs,
|
|
241
|
+
void *paint_data,
|
|
242
|
+
void **draw_data,
|
|
243
|
+
void *user_data);
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* hb_paint_push_clip_path_end_func_t:
|
|
247
|
+
* @funcs: paint functions object
|
|
248
|
+
* @paint_data: The data accompanying the paint functions in hb_font_paint_glyph()
|
|
249
|
+
* @user_data: User data pointer passed to hb_paint_funcs_set_push_clip_path_end_func()
|
|
250
|
+
*
|
|
251
|
+
* A virtual method for the #hb_paint_funcs_t to close the
|
|
252
|
+
* clip path started by the #hb_paint_push_clip_path_start_func_t
|
|
253
|
+
* vfunc. The emitted path is now active as a clip; subsequent
|
|
254
|
+
* paint ops are masked by it until a matching
|
|
255
|
+
* #hb_paint_pop_clip_func_t call.
|
|
256
|
+
*
|
|
257
|
+
* Since: 14.2.0
|
|
258
|
+
*/
|
|
259
|
+
typedef void (*hb_paint_push_clip_path_end_func_t) (hb_paint_funcs_t *funcs,
|
|
260
|
+
void *paint_data,
|
|
261
|
+
void *user_data);
|
|
262
|
+
|
|
215
263
|
/**
|
|
216
264
|
* hb_paint_pop_clip_func_t:
|
|
217
265
|
* @funcs: paint functions object
|
|
@@ -219,8 +267,9 @@ typedef void (*hb_paint_push_clip_rectangle_func_t) (hb_paint_funcs_t *funcs,
|
|
|
219
267
|
* @user_data: User data pointer passed to hb_paint_funcs_set_pop_clip_func()
|
|
220
268
|
*
|
|
221
269
|
* A virtual method for the #hb_paint_funcs_t to undo
|
|
222
|
-
* the effect of a prior call to the #hb_paint_funcs_push_clip_glyph_func_t
|
|
223
|
-
*
|
|
270
|
+
* the effect of a prior call to the #hb_paint_funcs_push_clip_glyph_func_t,
|
|
271
|
+
* #hb_paint_funcs_push_clip_rectangle_func_t, or
|
|
272
|
+
* #hb_paint_funcs_push_clip_path_end_func_t vfuncs.
|
|
224
273
|
*
|
|
225
274
|
* Since: 7.0.0
|
|
226
275
|
*/
|
|
@@ -239,6 +288,23 @@ typedef void (*hb_paint_pop_clip_func_t) (hb_paint_funcs_t *funcs,
|
|
|
239
288
|
* A virtual method for the #hb_paint_funcs_t to paint a
|
|
240
289
|
* color everywhere within the current clip.
|
|
241
290
|
*
|
|
291
|
+
* When @is_foreground is true, this color originates from the
|
|
292
|
+
* foreground-color sentinel in the font's color data. The
|
|
293
|
+
* @color parameter still carries a fully resolved RGBA value
|
|
294
|
+
* (with any paint-tree alpha already applied), so backends
|
|
295
|
+
* that do not need to distinguish the foreground can simply
|
|
296
|
+
* use @color directly.
|
|
297
|
+
*
|
|
298
|
+
* Backends that defer foreground resolution (e.g. to honor a
|
|
299
|
+
* CSS `currentColor` or a runtime uniform) should substitute
|
|
300
|
+
* their own foreground RGB when @is_foreground is true, but
|
|
301
|
+
* must combine the alpha from @color with their foreground
|
|
302
|
+
* alpha, since it encodes additional modulation from the
|
|
303
|
+
* paint tree. For this mode to work correctly, the caller
|
|
304
|
+
* should pass a fully-opaque foreground color to
|
|
305
|
+
* hb_font_paint_glyph(), so that the alpha in @color
|
|
306
|
+
* reflects only the paint-tree contribution.
|
|
307
|
+
*
|
|
242
308
|
* Since: 7.0.0
|
|
243
309
|
*/
|
|
244
310
|
typedef void (*hb_paint_color_func_t) (hb_paint_funcs_t *funcs,
|
|
@@ -322,6 +388,9 @@ typedef hb_bool_t (*hb_paint_image_func_t) (hb_paint_funcs_t *funcs,
|
|
|
322
388
|
* Color lines typically have offsets ranging between 0 and 1,
|
|
323
389
|
* but that is not required.
|
|
324
390
|
*
|
|
391
|
+
* The @is_foreground and @color fields have the same semantics
|
|
392
|
+
* as in #hb_paint_color_func_t.
|
|
393
|
+
*
|
|
325
394
|
* Note: despite @color being unpremultiplied here, interpolation in
|
|
326
395
|
* gradients shall happen in premultiplied space. See the OpenType spec
|
|
327
396
|
* [COLR](https://learn.microsoft.com/en-us/typography/opentype/spec/colr)
|
|
@@ -660,6 +729,28 @@ typedef void (*hb_paint_push_group_func_t) (hb_paint_funcs_t *funcs,
|
|
|
660
729
|
void *paint_data,
|
|
661
730
|
void *user_data);
|
|
662
731
|
|
|
732
|
+
/**
|
|
733
|
+
* hb_paint_push_group_for_func_t:
|
|
734
|
+
* @funcs: paint functions object
|
|
735
|
+
* @paint_data: The data accompanying the paint functions in hb_font_paint_glyph()
|
|
736
|
+
* @mode: the compositing mode that will be used when the group is popped
|
|
737
|
+
* @user_data: User data pointer passed to hb_paint_funcs_set_push_group_for_func()
|
|
738
|
+
*
|
|
739
|
+
* A virtual method for the #hb_paint_funcs_t to use
|
|
740
|
+
* an intermediate surface for subsequent paint calls,
|
|
741
|
+
* with the compositing mode known in advance.
|
|
742
|
+
*
|
|
743
|
+
* This is like #hb_paint_push_group_func_t, but the
|
|
744
|
+
* compositing mode is provided at push time. By default
|
|
745
|
+
* this calls #hb_paint_push_group_func_t.
|
|
746
|
+
*
|
|
747
|
+
* Since: 14.2.0
|
|
748
|
+
*/
|
|
749
|
+
typedef void (*hb_paint_push_group_for_func_t) (hb_paint_funcs_t *funcs,
|
|
750
|
+
void *paint_data,
|
|
751
|
+
hb_paint_composite_mode_t mode,
|
|
752
|
+
void *user_data);
|
|
753
|
+
|
|
663
754
|
/**
|
|
664
755
|
* hb_paint_pop_group_func_t:
|
|
665
756
|
* @funcs: paint functions object
|
|
@@ -797,6 +888,40 @@ hb_paint_funcs_set_push_clip_rectangle_func (hb_paint_funcs_t
|
|
|
797
888
|
void *user_data,
|
|
798
889
|
hb_destroy_func_t destroy);
|
|
799
890
|
|
|
891
|
+
/**
|
|
892
|
+
* hb_paint_funcs_set_push_clip_path_start_func:
|
|
893
|
+
* @funcs: A paint functions struct
|
|
894
|
+
* @func: (closure user_data) (destroy destroy) (scope notified): The push-clip-path-start callback
|
|
895
|
+
* @user_data: Data to pass to @func
|
|
896
|
+
* @destroy: (nullable): Function to call when @user_data is no longer needed
|
|
897
|
+
*
|
|
898
|
+
* Sets the push-clip-path-start callback on the paint functions struct.
|
|
899
|
+
*
|
|
900
|
+
* Since: 14.2.0
|
|
901
|
+
*/
|
|
902
|
+
HB_EXTERN void
|
|
903
|
+
hb_paint_funcs_set_push_clip_path_start_func (hb_paint_funcs_t *funcs,
|
|
904
|
+
hb_paint_push_clip_path_start_func_t func,
|
|
905
|
+
void *user_data,
|
|
906
|
+
hb_destroy_func_t destroy);
|
|
907
|
+
|
|
908
|
+
/**
|
|
909
|
+
* hb_paint_funcs_set_push_clip_path_end_func:
|
|
910
|
+
* @funcs: A paint functions struct
|
|
911
|
+
* @func: (closure user_data) (destroy destroy) (scope notified): The push-clip-path-end callback
|
|
912
|
+
* @user_data: Data to pass to @func
|
|
913
|
+
* @destroy: (nullable): Function to call when @user_data is no longer needed
|
|
914
|
+
*
|
|
915
|
+
* Sets the push-clip-path-end callback on the paint functions struct.
|
|
916
|
+
*
|
|
917
|
+
* Since: 14.2.0
|
|
918
|
+
*/
|
|
919
|
+
HB_EXTERN void
|
|
920
|
+
hb_paint_funcs_set_push_clip_path_end_func (hb_paint_funcs_t *funcs,
|
|
921
|
+
hb_paint_push_clip_path_end_func_t func,
|
|
922
|
+
void *user_data,
|
|
923
|
+
hb_destroy_func_t destroy);
|
|
924
|
+
|
|
800
925
|
/**
|
|
801
926
|
* hb_paint_funcs_set_pop_clip_func:
|
|
802
927
|
* @funcs: A paint functions struct
|
|
@@ -916,6 +1041,23 @@ hb_paint_funcs_set_push_group_func (hb_paint_funcs_t *funcs,
|
|
|
916
1041
|
void *user_data,
|
|
917
1042
|
hb_destroy_func_t destroy);
|
|
918
1043
|
|
|
1044
|
+
/**
|
|
1045
|
+
* hb_paint_funcs_set_push_group_for_func:
|
|
1046
|
+
* @funcs: A paint functions struct
|
|
1047
|
+
* @func: (closure user_data) (destroy destroy) (scope notified): The push-group-for callback
|
|
1048
|
+
* @user_data: Data to pass to @func
|
|
1049
|
+
* @destroy: (nullable): Function to call when @user_data is no longer needed
|
|
1050
|
+
*
|
|
1051
|
+
* Sets the push-group-for callback on the paint functions struct.
|
|
1052
|
+
*
|
|
1053
|
+
* Since: 14.2.0
|
|
1054
|
+
*/
|
|
1055
|
+
HB_EXTERN void
|
|
1056
|
+
hb_paint_funcs_set_push_group_for_func (hb_paint_funcs_t *funcs,
|
|
1057
|
+
hb_paint_push_group_for_func_t func,
|
|
1058
|
+
void *user_data,
|
|
1059
|
+
hb_destroy_func_t destroy);
|
|
1060
|
+
|
|
919
1061
|
/**
|
|
920
1062
|
* hb_paint_funcs_set_pop_group_func:
|
|
921
1063
|
* @funcs: A paint functions struct
|
|
@@ -985,6 +1127,15 @@ hb_paint_push_clip_rectangle (hb_paint_funcs_t *funcs, void *paint_data,
|
|
|
985
1127
|
float xmin, float ymin,
|
|
986
1128
|
float xmax, float ymax);
|
|
987
1129
|
|
|
1130
|
+
HB_EXTERN hb_draw_funcs_t *
|
|
1131
|
+
hb_paint_push_clip_path_start (hb_paint_funcs_t *funcs,
|
|
1132
|
+
void *paint_data,
|
|
1133
|
+
void **draw_data);
|
|
1134
|
+
|
|
1135
|
+
HB_EXTERN void
|
|
1136
|
+
hb_paint_push_clip_path_end (hb_paint_funcs_t *funcs,
|
|
1137
|
+
void *paint_data);
|
|
1138
|
+
|
|
988
1139
|
HB_EXTERN void
|
|
989
1140
|
hb_paint_pop_clip (hb_paint_funcs_t *funcs, void *paint_data);
|
|
990
1141
|
|
|
@@ -1026,6 +1177,10 @@ hb_paint_sweep_gradient (hb_paint_funcs_t *funcs, void *paint_data,
|
|
|
1026
1177
|
HB_EXTERN void
|
|
1027
1178
|
hb_paint_push_group (hb_paint_funcs_t *funcs, void *paint_data);
|
|
1028
1179
|
|
|
1180
|
+
HB_EXTERN void
|
|
1181
|
+
hb_paint_push_group_for (hb_paint_funcs_t *funcs, void *paint_data,
|
|
1182
|
+
hb_paint_composite_mode_t mode);
|
|
1183
|
+
|
|
1029
1184
|
HB_EXTERN void
|
|
1030
1185
|
hb_paint_pop_group (hb_paint_funcs_t *funcs, void *paint_data,
|
|
1031
1186
|
hb_paint_composite_mode_t mode);
|
|
@@ -1035,6 +1190,58 @@ hb_paint_custom_palette_color (hb_paint_funcs_t *funcs, void *paint_data,
|
|
|
1035
1190
|
unsigned int color_index,
|
|
1036
1191
|
hb_color_t *color);
|
|
1037
1192
|
|
|
1193
|
+
|
|
1194
|
+
/*
|
|
1195
|
+
* Gradient helpers for paint backends.
|
|
1196
|
+
*
|
|
1197
|
+
* These are small, self-contained utilities that every COLRv1
|
|
1198
|
+
* renderer ends up reinventing. Exposed here so third-party
|
|
1199
|
+
* paint backends can consume a single canonical implementation
|
|
1200
|
+
* instead of forking one per project.
|
|
1201
|
+
*/
|
|
1202
|
+
|
|
1203
|
+
HB_EXTERN void
|
|
1204
|
+
hb_paint_reduce_linear_anchors (float x0, float y0,
|
|
1205
|
+
float x1, float y1,
|
|
1206
|
+
float x2, float y2,
|
|
1207
|
+
float *xx0, float *yy0,
|
|
1208
|
+
float *xx1, float *yy1);
|
|
1209
|
+
|
|
1210
|
+
HB_EXTERN void
|
|
1211
|
+
hb_paint_normalize_color_line (hb_color_stop_t *stops,
|
|
1212
|
+
unsigned int len,
|
|
1213
|
+
float *min,
|
|
1214
|
+
float *max);
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* hb_paint_sweep_gradient_tile_func_t:
|
|
1218
|
+
* @a0: segment start angle, in radians.
|
|
1219
|
+
* @c0: segment start color.
|
|
1220
|
+
* @a1: segment end angle, in radians.
|
|
1221
|
+
* @c1: segment end color.
|
|
1222
|
+
* @user_data: user data passed to hb_paint_sweep_gradient_tiles().
|
|
1223
|
+
*
|
|
1224
|
+
* Callback invoked once per (a0, a1) sector of a sweep
|
|
1225
|
+
* gradient tiling. See hb_paint_sweep_gradient_tiles().
|
|
1226
|
+
*
|
|
1227
|
+
* Since: 14.2.0
|
|
1228
|
+
**/
|
|
1229
|
+
typedef void (*hb_paint_sweep_gradient_tile_func_t) (float a0,
|
|
1230
|
+
hb_color_t c0,
|
|
1231
|
+
float a1,
|
|
1232
|
+
hb_color_t c1,
|
|
1233
|
+
void *user_data);
|
|
1234
|
+
|
|
1235
|
+
HB_EXTERN void
|
|
1236
|
+
hb_paint_sweep_gradient_tiles (hb_color_stop_t *stops,
|
|
1237
|
+
unsigned int n_stops,
|
|
1238
|
+
hb_paint_extend_t extend,
|
|
1239
|
+
float start_angle,
|
|
1240
|
+
float end_angle,
|
|
1241
|
+
hb_paint_sweep_gradient_tile_func_t emit_patch,
|
|
1242
|
+
void *user_data);
|
|
1243
|
+
|
|
1244
|
+
|
|
1038
1245
|
HB_END_DECLS
|
|
1039
1246
|
|
|
1040
1247
|
#endif /* HB_PAINT_H */
|
|
@@ -47,7 +47,7 @@ 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
|
|
50
|
+
#define HB_VERSION_MINOR 2
|
|
51
51
|
/**
|
|
52
52
|
* HB_VERSION_MICRO:
|
|
53
53
|
*
|
|
@@ -60,7 +60,7 @@ HB_BEGIN_DECLS
|
|
|
60
60
|
*
|
|
61
61
|
* A string literal containing the library version available at compile-time.
|
|
62
62
|
*/
|
|
63
|
-
#define HB_VERSION_STRING "14.
|
|
63
|
+
#define HB_VERSION_STRING "14.2.0"
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
66
|
* HB_VERSION_ATLEAST:
|