@revizly/sharp-libvips-dev 1.0.50 → 1.0.52

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 (34) hide show
  1. package/include/cairo/cairo-version.h +1 -1
  2. package/include/cairo/cairo.h +1 -1
  3. package/include/expat.h +7 -1
  4. package/include/expat_config.h +3 -3
  5. package/include/expat_external.h +12 -0
  6. package/include/fontconfig/fontconfig.h +1 -1
  7. package/include/fribidi/fribidi-arabic.h +1 -2
  8. package/include/fribidi/fribidi-bidi-types.h +8 -2
  9. package/include/fribidi/fribidi-brackets.h +1 -1
  10. package/include/fribidi/fribidi-char-sets.h +2 -2
  11. package/include/fribidi/fribidi-config.h +2 -2
  12. package/include/fribidi/fribidi-joining-types.h +2 -2
  13. package/include/fribidi/fribidi-unicode-version.h +2 -2
  14. package/include/fribidi/fribidi.h +2 -2
  15. package/include/glib-2.0/gio/giotypes.h +0 -1
  16. package/include/glib-2.0/gobject/gtype.h +1 -1
  17. package/include/harfbuzz/hb-common.h +19 -0
  18. package/include/harfbuzz/hb-draw.h +113 -0
  19. package/include/harfbuzz/hb-paint.h +113 -0
  20. package/include/harfbuzz/hb-script-list.h +10 -0
  21. package/include/harfbuzz/hb-version.h +2 -2
  22. package/include/libde265/de265-version.h +2 -2
  23. package/include/libde265/de265.h +19 -0
  24. package/include/libheif/heif_image.h +9 -0
  25. package/include/libheif/heif_version.h +2 -2
  26. package/include/librsvg-2.0/librsvg/rsvg-version.h +3 -3
  27. package/include/librsvg-2.0/librsvg/rsvg.h +5 -4
  28. package/include/svt-av1/EbConfigMacros.h +234 -3
  29. package/include/svt-av1/EbDebugMacros.h +8 -2
  30. package/include/svt-av1/EbSvtAv1.h +49 -1
  31. package/include/svt-av1/EbSvtAv1Enc.h +150 -38
  32. package/include/vips/version.h +4 -4
  33. package/package.json +1 -1
  34. package/versions.json +11 -11
@@ -3,6 +3,6 @@
3
3
 
4
4
  #define CAIRO_VERSION_MAJOR 1
5
5
  #define CAIRO_VERSION_MINOR 18
6
- #define CAIRO_VERSION_MICRO 4
6
+ #define CAIRO_VERSION_MICRO 6
7
7
 
8
8
  #endif
@@ -53,7 +53,7 @@
53
53
  #if (defined(_WIN32) || defined(__CYGWIN__)) && !defined(CAIRO_WIN32_STATIC_BUILD)
54
54
  # define _cairo_export __declspec(dllexport)
55
55
  # define _cairo_import __declspec(dllimport)
56
- #elif defined(__GNUC__) && (__GNUC__ >= 4)
56
+ #elif defined(__GNUC__)
57
57
  # define _cairo_export __attribute__((__visibility__("default")))
58
58
  # define _cairo_import
59
59
  #else
package/include/expat.h CHANGED
@@ -20,6 +20,7 @@
20
20
  Copyright (c) 2023 Sony Corporation / Snild Dolkow <snild@sony.com>
21
21
  Copyright (c) 2024 Taichi Haradaguchi <20001722@ymail.ne.jp>
22
22
  Copyright (c) 2025 Matthew Fernandez <matthew.fernandez@gmail.com>
23
+ Copyright (c) 2026 Braian Plaku <braianplaku@gmail.com>
23
24
  Licensed under the MIT license:
24
25
 
25
26
  Permission is hereby granted, free of charge, to any person obtaining
@@ -921,7 +922,9 @@ XML_SetParamEntityParsing(XML_Parser parser,
921
922
  Returns 1 if successful, 0 when called after parsing has started.
922
923
  Note: If parser == NULL, the function will do nothing and return 0.
923
924
  DEPRECATED since Expat 2.8.0.
925
+ Please use XML_SetHashSalt16Bytes instead.
924
926
  */
927
+ XML_ATTR_DEPRECATED("please use XML_SetHashSalt16Bytes instead")
925
928
  XMLPARSEAPI(int)
926
929
  XML_SetHashSalt(XML_Parser parser, unsigned long hash_salt);
927
930
 
@@ -1040,8 +1043,11 @@ enum XML_FeatureEnum {
1040
1043
  XML_FEATURE_MIN_SIZE,
1041
1044
  XML_FEATURE_SIZEOF_XML_CHAR,
1042
1045
  XML_FEATURE_SIZEOF_XML_LCHAR,
1046
+ /* Added in Expat 2.0.0. */
1043
1047
  XML_FEATURE_NS,
1048
+ /* Added in Expat 2.0.1. */
1044
1049
  XML_FEATURE_LARGE_SIZE,
1050
+ /* Added in Expat 2.1.0. */
1045
1051
  XML_FEATURE_ATTR_INFO,
1046
1052
  /* Added in Expat 2.4.0. */
1047
1053
  XML_FEATURE_BILLION_LAUGHS_ATTACK_PROTECTION_MAXIMUM_AMPLIFICATION_DEFAULT,
@@ -1096,7 +1102,7 @@ XML_SetReparseDeferralEnabled(XML_Parser parser, XML_Bool enabled);
1096
1102
  */
1097
1103
  # define XML_MAJOR_VERSION 2
1098
1104
  # define XML_MINOR_VERSION 8
1099
- # define XML_MICRO_VERSION 4
1105
+ # define XML_MICRO_VERSION 5
1100
1106
 
1101
1107
  # ifdef __cplusplus
1102
1108
  }
@@ -83,7 +83,7 @@
83
83
  #define PACKAGE_NAME "expat"
84
84
 
85
85
  /* Define to the full name and version of this package. */
86
- #define PACKAGE_STRING "expat 2.8.4"
86
+ #define PACKAGE_STRING "expat 2.8.5"
87
87
 
88
88
  /* Define to the one symbol short name of this package. */
89
89
  #define PACKAGE_TARNAME "expat"
@@ -92,7 +92,7 @@
92
92
  #define PACKAGE_URL ""
93
93
 
94
94
  /* Define to the version of this package. */
95
- #define PACKAGE_VERSION "2.8.4"
95
+ #define PACKAGE_VERSION "2.8.5"
96
96
 
97
97
  /* Define to 1 if all of the C89 standard headers exist (not just the ones
98
98
  required in a freestanding environment). This macro is provided for
@@ -100,7 +100,7 @@
100
100
  #define STDC_HEADERS 1
101
101
 
102
102
  /* Version number of package */
103
- #define VERSION "2.8.4"
103
+ #define VERSION "2.8.5"
104
104
 
105
105
  /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
106
106
  significant byte first (like Motorola and SPARC, unlike Intel). */
@@ -16,6 +16,7 @@
16
16
  Copyright (c) 2017 Rhodri James <rhodri@wildebeest.org.uk>
17
17
  Copyright (c) 2018 Yury Gribov <tetra2005@gmail.com>
18
18
  Copyright (c) 2026 Matthew Fernandez <matthew.fernandez@gmail.com>
19
+ Copyright (c) 2026 Braian Plaku <braianplaku@gmail.com>
19
20
  Licensed under the MIT license:
20
21
 
21
22
  Permission is hereby granted, free of charge, to any person obtaining
@@ -125,6 +126,17 @@
125
126
  # define XML_ATTR_ALLOC_SIZE(x)
126
127
  # endif
127
128
 
129
+ /* Marks a function that Expat still provides but that callers should move off
130
+ of. */
131
+ # if defined(__clang__) || defined(__GNUC__)
132
+ # define XML_ATTR_DEPRECATED(message) \
133
+ __attribute__((__deprecated__(message)))
134
+ # elif defined(_MSC_VER)
135
+ # define XML_ATTR_DEPRECATED(message) __declspec(deprecated(message))
136
+ # else
137
+ # define XML_ATTR_DEPRECATED(message) // empty i.e. no deprecation
138
+ # endif
139
+
128
140
  # define XMLPARSEAPI(type) XMLIMPORT type XMLCALL
129
141
 
130
142
  # ifdef __cplusplus
@@ -72,7 +72,7 @@ typedef int FcBool;
72
72
  #define FC_CACHE_VERSION_NUMBER 12
73
73
  #define FC_CACHE_SNAP_VERSION_NUMBER 0
74
74
  #define FC_NEXT_CACHE_VERSION_NUMBER 0
75
- #define FC_CACHE_MIN_COMPAT_VERSION 9
75
+ #define FC_CACHE_MIN_COMPAT_VERSION 12
76
76
 
77
77
  #define _FC_STRINGIFY_(s) #s
78
78
  #define _FC_STRINGIFY(s) _FC_STRINGIFY_ (s)
@@ -15,8 +15,7 @@
15
15
  * GNU Lesser General Public License for more details.
16
16
  *
17
17
  * You should have received a copy of the GNU Lesser General Public License
18
- * along with GNU FriBidi; if not, write to the Free Software
19
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+ * along with GNU FriBidi; if not, see: <https://www.gnu.org/licenses/>.
20
19
  *
21
20
  * For licensing issues, contact <fribidi.license@gmail.com> or write to
22
21
  * Sharif FarsiWeb, Inc., PO Box 13445-389, Tehran, Iran.
@@ -235,6 +235,12 @@ typedef uint32_t FriBidiParType;
235
235
  # define FRIBIDI_PAR_WLTR FRIBIDI_TYPE_WLTR_VAL
236
236
  # define FRIBIDI_PAR_WRTL FRIBIDI_TYPE_WRTL_VAL
237
237
 
238
+ /* _FRIBIDI_TYPE_SENTINEL and _FRIBIDI_PAR_SENTINEL must be defined in
239
+ * both branches of this #if, so that code using them (e.g. Pango's
240
+ * pango-bidi-type.c) compiles regardless of which branch was taken. */
241
+ # define _FRIBIDI_TYPE_SENTINEL FRIBIDI_TYPE_SENTINEL
242
+ # define _FRIBIDI_PAR_SENTINEL FRIBIDI_TYPE_SENTINEL
243
+
238
244
  #endif
239
245
 
240
246
  /* Please don't use these two type names, use FRIBIDI_PAR_* form instead. */
@@ -371,9 +377,9 @@ fribidi_get_bidi_type (
371
377
  FriBidiChar ch /* input character */
372
378
  ) FRIBIDI_GNUC_CONST;
373
379
 
374
- /* fribidi_get_bidi_types - get bidi types for an string of characters
380
+ /* fribidi_get_bidi_types - get bidi types for a string of characters
375
381
  *
376
- * This function finds the bidi types of an string of characters. See
382
+ * This function finds the bidi types of a string of characters. See
377
383
  * fribidi_get_bidi_type() for more information about the bidi types returned
378
384
  * by this function.
379
385
  */
@@ -58,7 +58,7 @@ FRIBIDI_ENTRY FriBidiBracketType fribidi_get_bracket (
58
58
 
59
59
  /* fribidi_get_bracket_types - get bracketed characters
60
60
  *
61
- * This function finds the bracketed characters of an string of characters.
61
+ * This function finds the bracketed characters of a string of characters.
62
62
  * See fribidi_get_bracket() for more information about the bracketed
63
63
  * characters returned by this function.
64
64
  */
@@ -51,7 +51,7 @@ FriBidiCharSet;
51
51
 
52
52
  /* fribidi_charset_to_unicode - convert string to Unicode
53
53
  *
54
- * This function converts an string from a character set, to a Unicode string.
54
+ * This function converts a string from a character set, to a Unicode string.
55
55
  *
56
56
  * Returns: The length of the new string.
57
57
  */
@@ -64,7 +64,7 @@ FRIBIDI_ENTRY FriBidiStrIndex fribidi_charset_to_unicode (
64
64
 
65
65
  /* fribidi_unicode_to_charset - convert string from Unicode
66
66
  *
67
- * This function converts a Unicode string to an string in another character
67
+ * This function converts a Unicode string to a string in another character
68
68
  * set. It also null-terminates the output string.
69
69
  *
70
70
  * Returns: The length of the new string.
@@ -7,10 +7,10 @@
7
7
  #define FRIBIDI_NAME "GNU FriBidi"
8
8
  #define FRIBIDI_BUGREPORT "https://github.com/fribidi/fribidi/issues/new"
9
9
 
10
- #define FRIBIDI_VERSION "1.0.16"
10
+ #define FRIBIDI_VERSION "1.0.17"
11
11
  #define FRIBIDI_MAJOR_VERSION 1
12
12
  #define FRIBIDI_MINOR_VERSION 0
13
- #define FRIBIDI_MICRO_VERSION 16
13
+ #define FRIBIDI_MICRO_VERSION 17
14
14
  #define FRIBIDI_INTERFACE_VERSION 4
15
15
  #define FRIBIDI_INTERFACE_VERSION_STRING "4"
16
16
 
@@ -216,9 +216,9 @@ fribidi_get_joining_type (
216
216
  FriBidiChar ch /* input character */
217
217
  ) FRIBIDI_GNUC_CONST;
218
218
 
219
- /* fribidi_get_joining_types - get joining types for an string of characters
219
+ /* fribidi_get_joining_types - get joining types for a string of characters
220
220
  *
221
- * This function finds the joining types of an string of characters. See
221
+ * This function finds the joining types of a string of characters. See
222
222
  * fribidi_get_joining_type for more information about the joining types
223
223
  * returned by this function.
224
224
  */
@@ -2,8 +2,8 @@
2
2
  * generated by gen-unicode-version (fribidi unknown)
3
3
  * from the file ReadMe.txt */
4
4
 
5
- #define FRIBIDI_UNICODE_VERSION "16.0.0"
6
- #define FRIBIDI_UNICODE_MAJOR_VERSION 16
5
+ #define FRIBIDI_UNICODE_VERSION "18.0.0"
6
+ #define FRIBIDI_UNICODE_MAJOR_VERSION 18
7
7
  #define FRIBIDI_UNICODE_MINOR_VERSION 0
8
8
  #define FRIBIDI_UNICODE_MICRO_VERSION 0
9
9
 
@@ -43,9 +43,9 @@
43
43
 
44
44
  #include "fribidi-begindecls.h"
45
45
 
46
- /* fribidi_remove_bidi_marks - remove bidi marks out of an string
46
+ /* fribidi_remove_bidi_marks - remove bidi marks out of a string
47
47
  *
48
- * This function removes the bidi and boundary-neutral marks out of an string
48
+ * This function removes the bidi and boundary-neutral marks out of a string
49
49
  * and the accompanying lists. It implements rule X9 of the Unicode
50
50
  * Bidirectional Algorithm available at
51
51
  * http://www.unicode.org/reports/tr9/#X9, with the exception that it removes
@@ -50,7 +50,6 @@ typedef struct _GZlibDecompressor GZlibDecompressor;
50
50
 
51
51
  typedef struct _GSimpleActionGroup GSimpleActionGroup;
52
52
  typedef struct _GRemoteActionGroup GRemoteActionGroup;
53
- typedef struct _GDBusActionGroup GDBusActionGroup;
54
53
  typedef struct _GActionMap GActionMap;
55
54
  typedef struct _GActionGroup GActionGroup;
56
55
  typedef struct _GPropertyAction GPropertyAction;
@@ -2295,7 +2295,7 @@ static void type_name##_class_intern_init (gpointer klass) \
2295
2295
  static void type_name##_init (TypeName *self); \
2296
2296
  static void type_name##_class_init (TypeName##Class *klass); \
2297
2297
  static GType type_name##_get_type_once (void); \
2298
- static gpointer type_name##_parent_class = NULL; \
2298
+ G_GNUC_UNUSED static gpointer type_name##_parent_class = NULL; \
2299
2299
  static gint TypeName##_private_offset; \
2300
2300
  \
2301
2301
  _G_DEFINE_TYPE_EXTENDED_CLASS_INIT(TypeName, type_name) \
@@ -94,6 +94,25 @@ HB_BEGIN_DECLS
94
94
  **/
95
95
  typedef int hb_bool_t;
96
96
 
97
+ /**
98
+ * HB_BUDGET_DEFAULT:
99
+ *
100
+ * Use the implementation's finite default work budget.
101
+ *
102
+ * Since: 14.5.0
103
+ **/
104
+ #define HB_BUDGET_DEFAULT ((int64_t) (-0x7FFFFFFFFFFFFFFF - 1))
105
+
106
+ /**
107
+ * HB_BUDGET_UNLIMITED:
108
+ *
109
+ * Use an effectively unlimited work budget. Structural safety limits remain
110
+ * active.
111
+ *
112
+ * Since: 14.5.0
113
+ **/
114
+ #define HB_BUDGET_UNLIMITED ((int64_t) 0x7FFFFFFFFFFFFFFF)
115
+
97
116
  /**
98
117
  * hb_codepoint_t:
99
118
  *
@@ -195,6 +195,61 @@ typedef void (*hb_draw_close_path_func_t) (hb_draw_funcs_t *dfuncs, void *draw_d
195
195
  hb_draw_state_t *st,
196
196
  void *user_data);
197
197
 
198
+ /**
199
+ * hb_draw_set_budget_func_t:
200
+ * @dfuncs: draw functions object
201
+ * @draw_data: The data accompanying the draw functions
202
+ * @budget: the new work-budget policy
203
+ * @user_data: User data pointer passed to hb_draw_funcs_set_set_budget_func()
204
+ *
205
+ * Sets the work-budget policy and recharges the live work budget. @budget is
206
+ * #HB_BUDGET_DEFAULT, #HB_BUDGET_UNLIMITED, or a non-negative concrete value.
207
+ *
208
+ * Return value: `true` if the budget was set, `false` if unsupported
209
+ *
210
+ * Since: 14.5.0
211
+ **/
212
+ typedef hb_bool_t (*hb_draw_set_budget_func_t) (hb_draw_funcs_t *dfuncs,
213
+ void *draw_data,
214
+ int64_t budget,
215
+ void *user_data);
216
+
217
+ /**
218
+ * hb_draw_get_budget_func_t:
219
+ * @dfuncs: draw functions object
220
+ * @draw_data: The data accompanying the draw functions
221
+ * @user_data: User data pointer passed to hb_draw_funcs_set_get_budget_func()
222
+ *
223
+ * Fetches the configured work-budget policy.
224
+ *
225
+ * Return value: the configured work-budget policy
226
+ *
227
+ * Since: 14.5.0
228
+ **/
229
+ typedef int64_t (*hb_draw_get_budget_func_t) (hb_draw_funcs_t *dfuncs,
230
+ void *draw_data,
231
+ void *user_data);
232
+
233
+ /**
234
+ * hb_draw_get_budget_remaining_func_t:
235
+ * @dfuncs: draw functions object
236
+ * @draw_data: The data accompanying the draw functions
237
+ * @user_data: User data pointer passed to
238
+ * hb_draw_funcs_set_get_budget_remaining_func()
239
+ *
240
+ * Fetches the address of the live work budget. The returned address must stay
241
+ * valid while @draw_data is used with @dfuncs. The live value must be concrete;
242
+ * it must not contain #HB_BUDGET_DEFAULT.
243
+ *
244
+ * Return value: (nullable) (transfer none): the live work budget, or `NULL` if
245
+ * live budget accounting is unsupported
246
+ *
247
+ * Since: 14.5.0
248
+ **/
249
+ typedef int64_t *(*hb_draw_get_budget_remaining_func_t) (hb_draw_funcs_t *dfuncs,
250
+ void *draw_data,
251
+ void *user_data);
252
+
198
253
  /**
199
254
  * hb_draw_funcs_set_move_to_func:
200
255
  * @dfuncs: draw functions object
@@ -275,6 +330,54 @@ hb_draw_funcs_set_close_path_func (hb_draw_funcs_t *dfuncs,
275
330
  hb_draw_close_path_func_t func,
276
331
  void *user_data, hb_destroy_func_t destroy);
277
332
 
333
+ /**
334
+ * hb_draw_funcs_set_set_budget_func:
335
+ * @dfuncs: draw functions object
336
+ * @func: (closure user_data) (destroy destroy) (scope notified): budget setter
337
+ * @user_data: Data to pass to @func
338
+ * @destroy: (nullable): callback to destroy @user_data
339
+ *
340
+ * Sets the budget setter callback.
341
+ *
342
+ * Since: 14.5.0
343
+ **/
344
+ HB_EXTERN void
345
+ hb_draw_funcs_set_set_budget_func (hb_draw_funcs_t *dfuncs,
346
+ hb_draw_set_budget_func_t func,
347
+ void *user_data, hb_destroy_func_t destroy);
348
+
349
+ /**
350
+ * hb_draw_funcs_set_get_budget_func:
351
+ * @dfuncs: draw functions object
352
+ * @func: (closure user_data) (destroy destroy) (scope notified): budget getter
353
+ * @user_data: Data to pass to @func
354
+ * @destroy: (nullable): callback to destroy @user_data
355
+ *
356
+ * Sets the budget-policy getter callback.
357
+ *
358
+ * Since: 14.5.0
359
+ **/
360
+ HB_EXTERN void
361
+ hb_draw_funcs_set_get_budget_func (hb_draw_funcs_t *dfuncs,
362
+ hb_draw_get_budget_func_t func,
363
+ void *user_data, hb_destroy_func_t destroy);
364
+
365
+ /**
366
+ * hb_draw_funcs_set_get_budget_remaining_func:
367
+ * @dfuncs: draw functions object
368
+ * @func: (closure user_data) (destroy destroy) (scope notified): live-budget getter
369
+ * @user_data: Data to pass to @func
370
+ * @destroy: (nullable): callback to destroy @user_data
371
+ *
372
+ * Sets the live-budget getter callback.
373
+ *
374
+ * Since: 14.5.0
375
+ **/
376
+ HB_EXTERN void
377
+ hb_draw_funcs_set_get_budget_remaining_func (hb_draw_funcs_t *dfuncs,
378
+ hb_draw_get_budget_remaining_func_t func,
379
+ void *user_data, hb_destroy_func_t destroy);
380
+
278
381
 
279
382
  HB_EXTERN hb_draw_funcs_t *
280
383
  hb_draw_funcs_create (void);
@@ -306,6 +409,16 @@ hb_draw_funcs_make_immutable (hb_draw_funcs_t *dfuncs);
306
409
  HB_EXTERN hb_bool_t
307
410
  hb_draw_funcs_is_immutable (hb_draw_funcs_t *dfuncs);
308
411
 
412
+ HB_EXTERN hb_bool_t
413
+ hb_draw_set_budget (hb_draw_funcs_t *dfuncs, void *draw_data,
414
+ int64_t budget);
415
+
416
+ HB_EXTERN int64_t
417
+ hb_draw_get_budget (hb_draw_funcs_t *dfuncs, void *draw_data);
418
+
419
+ HB_EXTERN int64_t
420
+ hb_draw_get_budget_remaining (hb_draw_funcs_t *dfuncs, void *draw_data);
421
+
309
422
 
310
423
  HB_EXTERN void
311
424
  hb_draw_move_to (hb_draw_funcs_t *dfuncs, void *draw_data,
@@ -63,6 +63,109 @@ HB_BEGIN_DECLS
63
63
  **/
64
64
  typedef struct hb_paint_funcs_t hb_paint_funcs_t;
65
65
 
66
+ /**
67
+ * hb_paint_set_budget_func_t:
68
+ * @funcs: paint functions object
69
+ * @paint_data: The data accompanying the paint functions
70
+ * @budget: the new work-budget policy
71
+ * @user_data: User data pointer passed to hb_paint_funcs_set_set_budget_func()
72
+ *
73
+ * Sets the work-budget policy and recharges the live work budget. @budget is
74
+ * #HB_BUDGET_DEFAULT, #HB_BUDGET_UNLIMITED, or a non-negative concrete value.
75
+ *
76
+ * Return value: `true` if the budget was set, `false` if unsupported
77
+ *
78
+ * Since: 14.5.0
79
+ **/
80
+ typedef hb_bool_t (*hb_paint_set_budget_func_t) (hb_paint_funcs_t *funcs,
81
+ void *paint_data,
82
+ int64_t budget,
83
+ void *user_data);
84
+
85
+ /**
86
+ * hb_paint_get_budget_func_t:
87
+ * @funcs: paint functions object
88
+ * @paint_data: The data accompanying the paint functions
89
+ * @user_data: User data pointer passed to hb_paint_funcs_set_get_budget_func()
90
+ *
91
+ * Fetches the configured work-budget policy.
92
+ *
93
+ * Return value: the configured work-budget policy
94
+ *
95
+ * Since: 14.5.0
96
+ **/
97
+ typedef int64_t (*hb_paint_get_budget_func_t) (hb_paint_funcs_t *funcs,
98
+ void *paint_data,
99
+ void *user_data);
100
+
101
+ /**
102
+ * hb_paint_get_budget_remaining_func_t:
103
+ * @funcs: paint functions object
104
+ * @paint_data: The data accompanying the paint functions
105
+ * @user_data: User data pointer passed to
106
+ * hb_paint_funcs_set_get_budget_remaining_func()
107
+ *
108
+ * Fetches the address of the live work budget. The returned address must stay
109
+ * valid while @paint_data is used with @funcs. The live value must be concrete;
110
+ * it must not contain #HB_BUDGET_DEFAULT.
111
+ *
112
+ * Return value: (nullable) (transfer none): the live work budget, or `NULL` if
113
+ * live budget accounting is unsupported
114
+ *
115
+ * Since: 14.5.0
116
+ **/
117
+ typedef int64_t *(*hb_paint_get_budget_remaining_func_t) (hb_paint_funcs_t *funcs,
118
+ void *paint_data,
119
+ void *user_data);
120
+
121
+ /**
122
+ * hb_paint_funcs_set_set_budget_func:
123
+ * @funcs: paint functions object
124
+ * @func: (closure user_data) (destroy destroy) (scope notified): budget setter
125
+ * @user_data: Data to pass to @func
126
+ * @destroy: (nullable): callback to destroy @user_data
127
+ *
128
+ * Sets the budget setter callback.
129
+ *
130
+ * Since: 14.5.0
131
+ **/
132
+ HB_EXTERN void
133
+ hb_paint_funcs_set_set_budget_func (hb_paint_funcs_t *funcs,
134
+ hb_paint_set_budget_func_t func,
135
+ void *user_data, hb_destroy_func_t destroy);
136
+
137
+ /**
138
+ * hb_paint_funcs_set_get_budget_func:
139
+ * @funcs: paint functions object
140
+ * @func: (closure user_data) (destroy destroy) (scope notified): budget getter
141
+ * @user_data: Data to pass to @func
142
+ * @destroy: (nullable): callback to destroy @user_data
143
+ *
144
+ * Sets the budget-policy getter callback.
145
+ *
146
+ * Since: 14.5.0
147
+ **/
148
+ HB_EXTERN void
149
+ hb_paint_funcs_set_get_budget_func (hb_paint_funcs_t *funcs,
150
+ hb_paint_get_budget_func_t func,
151
+ void *user_data, hb_destroy_func_t destroy);
152
+
153
+ /**
154
+ * hb_paint_funcs_set_get_budget_remaining_func:
155
+ * @funcs: paint functions object
156
+ * @func: (closure user_data) (destroy destroy) (scope notified): live-budget getter
157
+ * @user_data: Data to pass to @func
158
+ * @destroy: (nullable): callback to destroy @user_data
159
+ *
160
+ * Sets the live-budget getter callback.
161
+ *
162
+ * Since: 14.5.0
163
+ **/
164
+ HB_EXTERN void
165
+ hb_paint_funcs_set_get_budget_remaining_func (hb_paint_funcs_t *funcs,
166
+ hb_paint_get_budget_remaining_func_t func,
167
+ void *user_data, hb_destroy_func_t destroy);
168
+
66
169
  HB_EXTERN hb_paint_funcs_t *
67
170
  hb_paint_funcs_create (void);
68
171
 
@@ -93,6 +196,16 @@ hb_paint_funcs_make_immutable (hb_paint_funcs_t *funcs);
93
196
  HB_EXTERN hb_bool_t
94
197
  hb_paint_funcs_is_immutable (hb_paint_funcs_t *funcs);
95
198
 
199
+ HB_EXTERN hb_bool_t
200
+ hb_paint_set_budget (hb_paint_funcs_t *funcs, void *paint_data,
201
+ int64_t budget);
202
+
203
+ HB_EXTERN int64_t
204
+ hb_paint_get_budget (hb_paint_funcs_t *funcs, void *paint_data);
205
+
206
+ HB_EXTERN int64_t
207
+ hb_paint_get_budget_remaining (hb_paint_funcs_t *funcs, void *paint_data);
208
+
96
209
  /**
97
210
  * hb_paint_push_transform_func_t:
98
211
  * @funcs: paint functions object
@@ -227,6 +227,9 @@ HB_END_DECLS
227
227
  * @HB_SCRIPT_SIDETIC: `Sidt`, Since: 11.5.0
228
228
  * @HB_SCRIPT_TAI_YO: `Tayo`, Since: 11.5.0
229
229
  * @HB_SCRIPT_TOLONG_SIKI: `Tols`, Since: 11.5.0
230
+ * @HB_SCRIPT_JURCHEN: `Jurc`, Since: 14.5.0
231
+ * @HB_SCRIPT_PROTO_CUNEIFORM: `Pcun`, Since: 14.5.0
232
+ * @HB_SCRIPT_SEAL: `Seal`, Since: 14.5.0
230
233
  * @HB_SCRIPT_INVALID: No script set
231
234
  *
232
235
  * Data type for scripts. Each #hb_script_t's value is an #hb_tag_t corresponding
@@ -473,6 +476,13 @@ typedef enum
473
476
  HB_SCRIPT_TAI_YO = HB_TAG ('T','a','y','o'), /*17.0*/
474
477
  HB_SCRIPT_TOLONG_SIKI = HB_TAG ('T','o','l','s'), /*17.0*/
475
478
 
479
+ /*
480
+ * Since: 14.5.0
481
+ */
482
+ HB_SCRIPT_JURCHEN = HB_TAG ('J','u','r','c'), /*18.0*/
483
+ HB_SCRIPT_PROTO_CUNEIFORM = HB_TAG ('P','c','u','n'), /*18.0*/
484
+ HB_SCRIPT_SEAL = HB_TAG ('S','e','a','l'), /*18.0*/
485
+
476
486
  /* No script set. */
477
487
  HB_SCRIPT_INVALID = HB_TAG_NONE,
478
488
 
@@ -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 4
50
+ #define HB_VERSION_MINOR 5
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.4.0"
63
+ #define HB_VERSION_STRING "14.5.0"
64
64
 
65
65
  /**
66
66
  * HB_VERSION_ATLEAST:
@@ -28,9 +28,9 @@
28
28
  #define LIBDE265_VERSION_H
29
29
 
30
30
  /* Numeric representation of the version */
31
- #define LIBDE265_NUMERIC_VERSION 0x1010200
31
+ #define LIBDE265_NUMERIC_VERSION 0x1010300
32
32
 
33
33
  /* Version string */
34
- #define LIBDE265_VERSION "1.1.2"
34
+ #define LIBDE265_VERSION "1.1.3"
35
35
 
36
36
  #endif
@@ -352,6 +352,25 @@ typedef struct de265_image_spec
352
352
  int visible_height; // convenience, height - crop_top - crop_bottom
353
353
  } de265_image_spec;
354
354
 
355
+ /* Custom image buffer allocation.
356
+
357
+ get_buffer() has to provide the image planes by calling de265_set_image_plane()
358
+ for each of them. The buffers have to be large enough for the image described by
359
+ 'spec', taking spec->alignment into account when computing the stride, plus at
360
+ least 16 trailing bytes beyond the last row. The SIMD code processes whole vectors
361
+ and may read up to a vector past the pixels it actually uses, so a plane allocated
362
+ with no slack is read out of bounds. Allocate the trailing bytes unconditionally;
363
+ whether they are touched depends on which SIMD paths libde265 was built with and
364
+ on the CPU it runs on.
365
+
366
+ The memory handed back has to be zero-initialized (or otherwise fully initialized).
367
+ libde265 does not clear buffers obtained from get_buffer(); only the built-in
368
+ allocator returned by de265_get_default_image_allocation_functions() clears them
369
+ itself. If an allocator returns uninitialized memory, any part of an image that the
370
+ decoder does not write -- for example a picture that a corrupted stream covers only
371
+ partially with slices -- shows up in the decoded output, exposing whatever the
372
+ application previously kept in that memory.
373
+ */
355
374
  typedef struct de265_image_allocation
356
375
  {
357
376
  int (*get_buffer)(de265_decoder_context* ctx, // first parameter deprecated
@@ -298,6 +298,10 @@ heif_error heif_image_scale_image(const heif_image* input,
298
298
 
299
299
  // Extends the image size to match the given size by extending the right and bottom borders.
300
300
  // The border areas are filled with zero.
301
+ // The target 'width' and 'height' must each be at least the image's current size; this
302
+ // function only grows the image and cannot shrink it. If a smaller size is requested,
303
+ // 'heif_error_Usage_error' / 'heif_suberror_Invalid_parameter_value' is returned and the
304
+ // image is left unchanged.
301
305
  LIBHEIF_API
302
306
  heif_error heif_image_extend_to_size_fill_with_zero(heif_image* image,
303
307
  uint32_t width, uint32_t height);
@@ -367,6 +371,11 @@ heif_error heif_image_create(int width, int height,
367
371
  * <p>For backward compatibility, one can also specify 24bits for RGB and 32bits for RGBA,
368
372
  * instead of the preferred 8 bits. However, this use is deprecated.
369
373
  *
374
+ * <p>An image with an interleaved chroma format carries its alpha inside the interleaved
375
+ * plane. Adding a separate {@code heif_channel_Alpha} plane to such an image is rejected
376
+ * with an error. Use one of the interleaved formats with alpha
377
+ * (e.g. {@code heif_chroma_interleaved_RGBA}) instead.
378
+ *
370
379
  * @param image the parent image to add the channel plane to
371
380
  * @param channel the channel of the plane to add
372
381
  * @param width the width of the plane
@@ -28,10 +28,10 @@
28
28
  #define LIBHEIF_HEIF_VERSION_H
29
29
 
30
30
  /* Numeric representation of the version */
31
- #define LIBHEIF_NUMERIC_VERSION ((1<<24) | (23<<16) | (4<<8) | 0)
31
+ #define LIBHEIF_NUMERIC_VERSION ((1<<24) | (23<<16) | (5<<8) | 0)
32
32
 
33
33
  /* Version string */
34
- #define LIBHEIF_VERSION "1.23.4"
34
+ #define LIBHEIF_VERSION "1.23.5"
35
35
 
36
36
  #define LIBHEIF_PLUGIN_DIRECTORY "/target/lib/libheif"
37
37