@revizly/sharp-libvips-dev 1.0.40 → 1.0.42

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 (39) hide show
  1. package/include/archive.h +5 -4
  2. package/include/archive_entry.h +1 -1
  3. package/include/expat.h +1 -1
  4. package/include/expat_config.h +4 -4
  5. package/include/ffi.h +14 -2
  6. package/include/ffitarget.h +4 -3
  7. package/include/glib-2.0/glib/gmem.h +1 -1
  8. package/include/libheif/heif_cxx.h +100 -0
  9. package/include/libheif/heif_decoding.h +3 -0
  10. package/include/libheif/heif_export.h +2 -1
  11. package/include/libheif/heif_image_handle.h +9 -0
  12. package/include/libheif/heif_version.h +2 -2
  13. package/include/librsvg-2.0/librsvg/rsvg-version.h +2 -2
  14. package/include/pango-1.0/pango/pango-attributes.h +4 -0
  15. package/include/pango-1.0/pango/pango-color.h +1 -0
  16. package/include/pango-1.0/pango/pango-context.h +2 -0
  17. package/include/pango-1.0/pango/pango-enum-types.h +6 -0
  18. package/include/pango-1.0/pango/pango-features.h +3 -3
  19. package/include/pango-1.0/pango/pango-font.h +53 -1
  20. package/include/pango-1.0/pango/pango-fontset-simple.h +1 -0
  21. package/include/pango-1.0/pango/pango-fontset.h +1 -0
  22. package/include/pango-1.0/pango/pango-glyph-item.h +3 -0
  23. package/include/pango-1.0/pango/pango-glyph.h +1 -0
  24. package/include/pango-1.0/pango/pango-item.h +2 -0
  25. package/include/pango-1.0/pango/pango-layout.h +2 -0
  26. package/include/pango-1.0/pango/pango-matrix.h +1 -0
  27. package/include/pango-1.0/pango/pango-ot.h +5 -0
  28. package/include/pango-1.0/pango/pango-renderer.h +54 -1
  29. package/include/pango-1.0/pango/pango-version-macros.h +26 -0
  30. package/include/pango-1.0/pango/pangocairo.h +7 -0
  31. package/include/pango-1.0/pango/pangofc-decoder.h +2 -0
  32. package/include/pango-1.0/pango/pangofc-font.h +1 -0
  33. package/include/pango-1.0/pango/pangofc-fontmap.h +2 -0
  34. package/include/pango-1.0/pango/pangoft2.h +2 -0
  35. package/include/svt-av1/EbDebugMacros.h +2 -2
  36. package/include/svt-av1/EbSvtAv1Enc.h +167 -26
  37. package/include/tiffvers.h +4 -4
  38. package/package.json +1 -1
  39. package/versions.json +9 -9
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 3008007
37
+ #define ARCHIVE_VERSION_NUMBER 3008008
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.7"
180
+ #define ARCHIVE_VERSION_ONLY_STRING "3.8.8"
181
181
  #define ARCHIVE_VERSION_STRING "libarchive " ARCHIVE_VERSION_ONLY_STRING
182
182
  __LA_DECL const char * archive_version_string(void);
183
183
 
@@ -210,7 +210,9 @@ __LA_DECL const char * archive_openssl_version(void);
210
210
  __LA_DECL const char * archive_libmd_version(void);
211
211
  __LA_DECL const char * archive_commoncrypto_version(void);
212
212
  __LA_DECL const char * archive_cng_version(void);
213
+ #if ARCHIVE_VERSION_NUMBER < 4000000
213
214
  __LA_DECL const char * archive_wincrypt_version(void);
215
+ #endif
214
216
  __LA_DECL const char * archive_librichacl_version(void);
215
217
  __LA_DECL const char * archive_libacl_version(void);
216
218
  __LA_DECL const char * archive_libattr_version(void);
@@ -653,7 +655,6 @@ __LA_DECL int archive_read_data_block(struct archive *a,
653
655
  /*-
654
656
  * Some convenience functions that are built on archive_read_data:
655
657
  * 'skip': skips entire entry
656
- * 'into_buffer': writes data into memory buffer that you provide
657
658
  * 'into_fd': writes data to specified filedes
658
659
  */
659
660
  __LA_DECL int archive_read_data_skip(struct archive *);
@@ -1234,7 +1235,7 @@ __LA_DECL int archive_match_exclude_entry(struct archive *,
1234
1235
  int _flag, struct archive_entry *);
1235
1236
 
1236
1237
  /*
1237
- * Test if a file is excluded by its uid ,gid, uname or gname.
1238
+ * Test if a file is excluded by its uid, gid, uname or gname.
1238
1239
  * The conditions are set by following functions.
1239
1240
  */
1240
1241
  __LA_DECL int archive_match_owner_excluded(struct archive *,
@@ -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 3008007
31
+ #define ARCHIVE_VERSION_NUMBER 3008008
32
32
 
33
33
  /*
34
34
  * Note: archive_entry.h is for use outside of libarchive; the
package/include/expat.h CHANGED
@@ -1094,7 +1094,7 @@ XML_SetReparseDeferralEnabled(XML_Parser parser, XML_Bool enabled);
1094
1094
  */
1095
1095
  # define XML_MAJOR_VERSION 2
1096
1096
  # define XML_MINOR_VERSION 8
1097
- # define XML_MICRO_VERSION 1
1097
+ # define XML_MICRO_VERSION 2
1098
1098
 
1099
1099
  # ifdef __cplusplus
1100
1100
  }
@@ -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.1"
86
+ #define PACKAGE_STRING "expat 2.8.2"
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.1"
95
+ #define PACKAGE_VERSION "2.8.2"
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.1"
103
+ #define VERSION "2.8.2"
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). */
@@ -123,7 +123,7 @@
123
123
  #define XML_CONTEXT_BYTES 1024
124
124
 
125
125
  /* Define to include code reading entropy from `/dev/urandom'. */
126
- #define XML_DEV_URANDOM 1
126
+ /* #undef XML_DEV_URANDOM */
127
127
 
128
128
  /* Define to make parameter entity parsing functionality available. */
129
129
  #define XML_DTD 1
package/include/ffi.h CHANGED
@@ -1,5 +1,5 @@
1
1
  /* -----------------------------------------------------------------*-C-*-
2
- libffi 3.5.2
2
+ libffi 3.6.0
3
3
  - Copyright (c) 2011, 2014, 2019, 2021, 2022, 2024, 2025 Anthony Green
4
4
  - Copyright (c) 1996-2003, 2007, 2008 Red Hat, Inc.
5
5
 
@@ -77,9 +77,11 @@ extern "C" {
77
77
  #define FFI_TYPE_STRUCT 13
78
78
  #define FFI_TYPE_POINTER 14
79
79
  #define FFI_TYPE_COMPLEX 15
80
+ #define FFI_TYPE_UINT128 16
81
+ #define FFI_TYPE_SINT128 17
80
82
 
81
83
  /* This should always refer to the last type code (for sanity checks). */
82
- #define FFI_TYPE_LAST FFI_TYPE_COMPLEX
84
+ #define FFI_TYPE_LAST FFI_TYPE_SINT128
83
85
 
84
86
  #include <ffitarget.h>
85
87
 
@@ -227,6 +229,11 @@ FFI_EXTERN ffi_type ffi_type_complex_float;
227
229
  FFI_EXTERN ffi_type ffi_type_complex_double;
228
230
  FFI_EXTERN ffi_type ffi_type_complex_longdouble;
229
231
  #endif
232
+
233
+ #ifdef FFI_TARGET_HAS_INT128
234
+ FFI_EXTERN ffi_type ffi_type_uint128;
235
+ FFI_EXTERN ffi_type ffi_type_sint128;
236
+ #endif
230
237
  #endif /* LIBFFI_HIDE_BASIC_TYPES */
231
238
 
232
239
  typedef enum {
@@ -344,6 +351,11 @@ typedef struct {
344
351
  void *trampoline_table;
345
352
  void *trampoline_table_entry;
346
353
  #else
354
+ /* Anonymous unions are C11 (a GNU extension in C99); __extension__ keeps
355
+ the field names without tripping -Wpedantic under -std=c99 (#795). */
356
+ #ifdef __GNUC__
357
+ __extension__
358
+ #endif
347
359
  union {
348
360
  char tramp[FFI_TRAMPOLINE_SIZE];
349
361
  void *ftramp;
@@ -41,9 +41,6 @@
41
41
 
42
42
  #if defined (X86_64) && defined (__i386__)
43
43
  #undef X86_64
44
- #warning ******************************************************
45
- #warning ********** X86 IS DEFINED ****************************
46
- #warning ******************************************************
47
44
  #define X86
48
45
  #endif
49
46
 
@@ -57,6 +54,10 @@
57
54
  #define FFI_TARGET_HAS_COMPLEX_TYPE
58
55
  #endif
59
56
 
57
+ #ifdef X86_64
58
+ #define FFI_TARGET_HAS_INT128
59
+ #endif
60
+
60
61
  /* ---- Generic type definitions ----------------------------------------- */
61
62
 
62
63
  #ifndef LIBFFI_ASM
@@ -355,7 +355,7 @@ g_steal_pointer (gpointer pp)
355
355
  * Attempts to allocate @n_structs elements of type @struct_type, and returns
356
356
  * %NULL on failure. Contrast with g_new(), which aborts the program on failure.
357
357
  * The returned pointer is cast to a pointer to the given type.
358
- * The function returns %NULL when @n_structs is 0 of if an overflow occurs.
358
+ * The function returns %NULL when @n_structs is 0 or if an overflow occurs.
359
359
  *
360
360
  * Since: 2.8
361
361
  * Returns: a pointer to the allocated memory, cast to a pointer to @struct_type
@@ -232,6 +232,22 @@ namespace heif {
232
232
 
233
233
  int get_ispe_height() const noexcept;
234
234
 
235
+ // ------------------------- HDR metadata -------------------------
236
+
237
+ bool has_content_light_level() const noexcept;
238
+
239
+ // Returns a zero-initialized struct if the image has no such information.
240
+ heif_content_light_level get_content_light_level() const noexcept;
241
+
242
+ void set_content_light_level(const heif_content_light_level&) noexcept;
243
+
244
+ bool has_mastering_display_colour_volume() const noexcept;
245
+
246
+ // Returns a zero-initialized struct if the image has no such information.
247
+ heif_mastering_display_colour_volume get_mastering_display_colour_volume() const noexcept;
248
+
249
+ void set_mastering_display_colour_volume(const heif_mastering_display_colour_volume&) noexcept;
250
+
235
251
  // ------------------------- depth images -------------------------
236
252
 
237
253
  // TODO
@@ -368,6 +384,22 @@ namespace heif {
368
384
  void set_raw_color_profile(heif_color_profile_type type,
369
385
  const std::vector<uint8_t>& data);
370
386
 
387
+ // ------------------------- HDR metadata -------------------------
388
+
389
+ bool has_content_light_level() const noexcept;
390
+
391
+ // Returns a zero-initialized struct if the image has no such information.
392
+ heif_content_light_level get_content_light_level() const noexcept;
393
+
394
+ void set_content_light_level(const heif_content_light_level&) noexcept;
395
+
396
+ bool has_mastering_display_colour_volume() const noexcept;
397
+
398
+ // Returns a zero-initialized struct if the image has no such information.
399
+ heif_mastering_display_colour_volume get_mastering_display_colour_volume() const noexcept;
400
+
401
+ void set_mastering_display_colour_volume(const heif_mastering_display_colour_volume&) noexcept;
402
+
371
403
  bool is_premultiplied_alpha() const noexcept;
372
404
 
373
405
  void set_premultiplied_alpha(bool is_premultiplied_alpha) noexcept;
@@ -722,6 +754,40 @@ namespace heif {
722
754
  return heif_image_handle_get_ispe_height(m_image_handle.get());
723
755
  }
724
756
 
757
+ inline bool ImageHandle::has_content_light_level() const noexcept
758
+ {
759
+ return heif_image_handle_has_content_light_level(m_image_handle.get()) != 0;
760
+ }
761
+
762
+ inline heif_content_light_level ImageHandle::get_content_light_level() const noexcept
763
+ {
764
+ heif_content_light_level clli{};
765
+ heif_image_handle_get_content_light_level(m_image_handle.get(), &clli);
766
+ return clli;
767
+ }
768
+
769
+ inline void ImageHandle::set_content_light_level(const heif_content_light_level& clli) noexcept
770
+ {
771
+ heif_image_handle_set_content_light_level(m_image_handle.get(), &clli);
772
+ }
773
+
774
+ inline bool ImageHandle::has_mastering_display_colour_volume() const noexcept
775
+ {
776
+ return heif_image_handle_has_mastering_display_colour_volume(m_image_handle.get()) != 0;
777
+ }
778
+
779
+ inline heif_mastering_display_colour_volume ImageHandle::get_mastering_display_colour_volume() const noexcept
780
+ {
781
+ heif_mastering_display_colour_volume mdcv{};
782
+ heif_image_handle_get_mastering_display_colour_volume(m_image_handle.get(), &mdcv);
783
+ return mdcv;
784
+ }
785
+
786
+ inline void ImageHandle::set_mastering_display_colour_volume(const heif_mastering_display_colour_volume& mdcv) noexcept
787
+ {
788
+ heif_image_handle_set_mastering_display_colour_volume(m_image_handle.get(), &mdcv);
789
+ }
790
+
725
791
  // ------------------------- depth images -------------------------
726
792
 
727
793
  // TODO
@@ -998,6 +1064,40 @@ namespace heif {
998
1064
  }
999
1065
  }
1000
1066
 
1067
+ inline bool Image::has_content_light_level() const noexcept
1068
+ {
1069
+ return heif_image_has_content_light_level(m_image.get()) != 0;
1070
+ }
1071
+
1072
+ inline heif_content_light_level Image::get_content_light_level() const noexcept
1073
+ {
1074
+ heif_content_light_level clli{};
1075
+ heif_image_get_content_light_level(m_image.get(), &clli);
1076
+ return clli;
1077
+ }
1078
+
1079
+ inline void Image::set_content_light_level(const heif_content_light_level& clli) noexcept
1080
+ {
1081
+ heif_image_set_content_light_level(m_image.get(), &clli);
1082
+ }
1083
+
1084
+ inline bool Image::has_mastering_display_colour_volume() const noexcept
1085
+ {
1086
+ return heif_image_has_mastering_display_colour_volume(m_image.get()) != 0;
1087
+ }
1088
+
1089
+ inline heif_mastering_display_colour_volume Image::get_mastering_display_colour_volume() const noexcept
1090
+ {
1091
+ heif_mastering_display_colour_volume mdcv{};
1092
+ heif_image_get_mastering_display_colour_volume(m_image.get(), &mdcv);
1093
+ return mdcv;
1094
+ }
1095
+
1096
+ inline void Image::set_mastering_display_colour_volume(const heif_mastering_display_colour_volume& mdcv) noexcept
1097
+ {
1098
+ heif_image_set_mastering_display_colour_volume(m_image.get(), &mdcv);
1099
+ }
1100
+
1001
1101
  inline bool Image::is_premultiplied_alpha() const noexcept
1002
1102
  {
1003
1103
  return heif_image_is_premultiplied_alpha(m_image.get()) != 0;
@@ -200,6 +200,9 @@ const char* heif_decoder_descriptor_get_id_name(const heif_decoder_descriptor*);
200
200
  //
201
201
  // If colorspace or chroma is set to heif_colorspace_undefined or heif_chroma_undefined,
202
202
  // respectively, the original colorspace is taken.
203
+ // Note: for images with matrix_coefficients=0 the "original colorspace" is YCbCr
204
+ // (tagged with matrix_coefficients=0); this is not specified and may change in a future
205
+ // version. See heif_image_handle_get_preferred_decoding_colorspace().
203
206
  // Decoding options may be NULL. If you want to supply options, always use
204
207
  // heif_decoding_options_alloc() to get the structure.
205
208
  LIBHEIF_API
@@ -35,7 +35,8 @@
35
35
  #else
36
36
  #define LIBHEIF_API __declspec(dllimport)
37
37
  #endif
38
- #elif defined(HAVE_VISIBILITY) && HAVE_VISIBILITY
38
+ #elif (defined(__GNUC__) || defined(__clang__)) && defined(HAVE_VISIBILITY) && HAVE_VISIBILITY
39
+ // GCC-style visibility attributes.
39
40
  #ifdef LIBHEIF_EXPORTS
40
41
  #define LIBHEIF_API __attribute__((__visibility__("default")))
41
42
  #else
@@ -89,6 +89,15 @@ int heif_image_handle_get_chroma_bits_per_pixel(const heif_image_handle*);
89
89
  // It may also return *_undefined if the file misses relevant information to determine this without decoding.
90
90
  // These are only proposed values that avoid colorspace conversions as much as possible.
91
91
  // You can still request the output in your preferred colorspace, but this may involve an internal conversion.
92
+ //
93
+ // Note on matrix_coefficients=0 (H.273 identity, i.e. RGB carried in YCbCr planes):
94
+ // for such images this function proposes RGB. However, heif_decode_image() called with
95
+ // heif_colorspace_undefined currently returns the image still tagged as YCbCr (with
96
+ // matrix_coefficients=0). That tagging is self-consistent. Converting it to RGB applies
97
+ // the identity mapping and yields correct colors, so request heif_colorspace_RGB
98
+ // explicitly if you need RGB output. This exact behavior is not specified and may change.
99
+ // A later version may return RGB directly when decoding with an undefined colorspace.
100
+ // See heif_decode_image().
92
101
  LIBHEIF_API
93
102
  heif_error heif_image_handle_get_preferred_decoding_colorspace(const heif_image_handle* image_handle,
94
103
  heif_colorspace* out_colorspace,
@@ -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) | (0<<8) | 0)
31
+ #define LIBHEIF_NUMERIC_VERSION ((1<<24) | (23<<16) | (1<<8) | 0)
32
32
 
33
33
  /* Version string */
34
- #define LIBHEIF_VERSION "1.23.0"
34
+ #define LIBHEIF_VERSION "1.23.1"
35
35
 
36
36
  #define LIBHEIF_PLUGIN_DIRECTORY "/target/lib/libheif"
37
37
 
@@ -7,7 +7,7 @@
7
7
 
8
8
  #define LIBRSVG_MAJOR_VERSION (2)
9
9
  #define LIBRSVG_MINOR_VERSION (62)
10
- #define LIBRSVG_MICRO_VERSION (3)
11
- #define LIBRSVG_VERSION "2.62.3"
10
+ #define LIBRSVG_MICRO_VERSION (90)
11
+ #define LIBRSVG_VERSION "2.62.90"
12
12
 
13
13
  #endif
@@ -81,6 +81,7 @@ typedef struct _PangoAttrFontFeatures PangoAttrFontFeatures;
81
81
  * @PANGO_ATTR_SENTENCE: override segmentation to classify the range of the attribute as a single sentence ([struct@Pango.AttrInt]). Since 1.50
82
82
  * @PANGO_ATTR_BASELINE_SHIFT: baseline displacement ([struct@Pango.AttrInt]). Since 1.50
83
83
  * @PANGO_ATTR_FONT_SCALE: font-relative size change ([struct@Pango.AttrInt]). Since 1.50
84
+ * @PANGO_ATTR_WIDTH: font width ([struct@Pango.AttrInt]). Since: 1.58
84
85
  *
85
86
  * The `PangoAttrType` distinguishes between different types of attributes.
86
87
  *
@@ -129,6 +130,7 @@ typedef enum
129
130
  PANGO_ATTR_SENTENCE, /* PangoAttrInt */
130
131
  PANGO_ATTR_BASELINE_SHIFT, /* PangoAttrSize */
131
132
  PANGO_ATTR_FONT_SCALE, /* PangoAttrInt */
133
+ PANGO_ATTR_WIDTH, /* PangoAttrInt */
132
134
  } PangoAttrType;
133
135
 
134
136
  /**
@@ -609,6 +611,8 @@ PANGO_AVAILABLE_IN_1_50
609
611
  PangoAttribute * pango_attr_line_height_new_absolute (int height);
610
612
  PANGO_AVAILABLE_IN_1_50
611
613
  PangoAttribute * pango_attr_text_transform_new (PangoTextTransform transform);
614
+ PANGO_AVAILABLE_IN_1_58
615
+ PangoAttribute * pango_attr_width_new (PangoWidth width);
612
616
 
613
617
  PANGO_AVAILABLE_IN_1_50
614
618
  PangoAttrString * pango_attribute_as_string (PangoAttribute *attr);
@@ -69,6 +69,7 @@ gboolean pango_color_parse_with_alpha (PangoColor *color,
69
69
  PANGO_AVAILABLE_IN_1_16
70
70
  char *pango_color_to_string (const PangoColor *color);
71
71
 
72
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC (PangoColor, pango_color_free)
72
73
 
73
74
  G_END_DECLS
74
75
 
@@ -111,6 +111,8 @@ void pango_context_set_round_glyph_positions (PangoContext
111
111
  PANGO_AVAILABLE_IN_1_44
112
112
  gboolean pango_context_get_round_glyph_positions (PangoContext *context);
113
113
 
114
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC (PangoContext, g_object_unref)
115
+
114
116
  G_END_DECLS
115
117
 
116
118
  #endif /* __PANGO_CONTEXT_H__ */
@@ -62,6 +62,9 @@ PANGO_AVAILABLE_IN_ALL
62
62
  GType pango_stretch_get_type (void) G_GNUC_CONST;
63
63
  #define PANGO_TYPE_STRETCH (pango_stretch_get_type ())
64
64
  PANGO_AVAILABLE_IN_ALL
65
+ GType pango_width_get_type (void) G_GNUC_CONST;
66
+ #define PANGO_TYPE_WIDTH (pango_width_get_type ())
67
+ PANGO_AVAILABLE_IN_ALL
65
68
  GType pango_font_mask_get_type (void) G_GNUC_CONST;
66
69
  #define PANGO_TYPE_FONT_MASK (pango_font_mask_get_type ())
67
70
  PANGO_AVAILABLE_IN_ALL
@@ -105,6 +108,9 @@ GType pango_layout_deserialize_flags_get_type (void) G_GNUC_CONST;
105
108
  PANGO_AVAILABLE_IN_ALL
106
109
  GType pango_render_part_get_type (void) G_GNUC_CONST;
107
110
  #define PANGO_TYPE_RENDER_PART (pango_render_part_get_type ())
111
+ PANGO_AVAILABLE_IN_ALL
112
+ GType pango_render_component_get_type (void) G_GNUC_CONST;
113
+ #define PANGO_TYPE_RENDER_COMPONENT (pango_render_component_get_type ())
108
114
 
109
115
  /* enumerations from "pango-script.h" */
110
116
  PANGO_AVAILABLE_IN_ALL
@@ -2,9 +2,9 @@
2
2
  #define PANGO_FEATURES_H
3
3
 
4
4
  #define PANGO_VERSION_MAJOR 1
5
- #define PANGO_VERSION_MINOR 57
6
- #define PANGO_VERSION_MICRO 1
5
+ #define PANGO_VERSION_MINOR 58
6
+ #define PANGO_VERSION_MICRO 0
7
7
 
8
- #define PANGO_VERSION_STRING "1.57.1"
8
+ #define PANGO_VERSION_STRING "1.58.0"
9
9
 
10
10
  #endif /* PANGO_FEATURES_H */
@@ -169,13 +169,46 @@ typedef enum {
169
169
  PANGO_STRETCH_ULTRA_EXPANDED
170
170
  } PangoStretch;
171
171
 
172
+ /**
173
+ * PangoWidth:
174
+ * @PANGO_WIDTH_ULTRA_CONDENSED: ultra condensed width
175
+ * @PANGO_WIDTH_EXTRA_CONDENSED: extra condensed width
176
+ * @PANGO_WIDTH_CONDENSED: condensed width
177
+ * @PANGO_WIDTH_SEMI_CONDENSED: semi condensed width
178
+ * @PANGO_WIDTH_NORMAL: the normal width
179
+ * @PANGO_WIDTH_SEMI_EXPANDED: semi expanded width
180
+ * @PANGO_WIDTH_EXPANDED: expanded width
181
+ * @PANGO_WIDTH_EXTRA_EXPANDED: extra expanded width
182
+ * @PANGO_WIDTH_ULTRA_EXPANDED: ultra expanded width
183
+ *
184
+ * An enumeration specifying the width of the font relative to other designs
185
+ * within a family.
186
+ *
187
+ * The enumeration values match [enum@PangoStretch], but
188
+ * the numeric values are expanded to allow intermediate
189
+ * values.
190
+ *
191
+ * Since: 1.58
192
+ */
193
+ typedef enum {
194
+ PANGO_WIDTH_ULTRA_CONDENSED = 500,
195
+ PANGO_WIDTH_EXTRA_CONDENSED = 625,
196
+ PANGO_WIDTH_CONDENSED = 750,
197
+ PANGO_WIDTH_SEMI_CONDENSED = 875,
198
+ PANGO_WIDTH_NORMAL = 1000,
199
+ PANGO_WIDTH_SEMI_EXPANDED = 1125,
200
+ PANGO_WIDTH_EXPANDED = 1250,
201
+ PANGO_WIDTH_EXTRA_EXPANDED = 1500,
202
+ PANGO_WIDTH_ULTRA_EXPANDED = 2000,
203
+ } PangoWidth;
204
+
172
205
  /**
173
206
  * PangoFontMask:
174
207
  * @PANGO_FONT_MASK_FAMILY: the font family is specified.
175
208
  * @PANGO_FONT_MASK_STYLE: the font style is specified.
176
209
  * @PANGO_FONT_MASK_VARIANT: the font variant is specified.
177
210
  * @PANGO_FONT_MASK_WEIGHT: the font weight is specified.
178
- * @PANGO_FONT_MASK_STRETCH: the font stretch is specified.
211
+ * @PANGO_FONT_MASK_STRETCH: the font stretch/width is specified.
179
212
  * @PANGO_FONT_MASK_SIZE: the font size is specified.
180
213
  *
181
214
  * The bits in a `PangoFontMask` correspond to the set fields in a
@@ -209,11 +242,21 @@ typedef enum {
209
242
  *
210
243
  * Since: 1.57
211
244
  */
245
+ /**
246
+ * PANGO_FONT_MASK_WIDTH:
247
+ *
248
+ * Font width is specified.
249
+ *
250
+ * This is an alias for [enum@Pango.FontMask.STRETCH].
251
+ *
252
+ * 1.58
253
+ */
212
254
  typedef enum {
213
255
  PANGO_FONT_MASK_FAMILY = 1 << 0,
214
256
  PANGO_FONT_MASK_STYLE = 1 << 1,
215
257
  PANGO_FONT_MASK_VARIANT = 1 << 2,
216
258
  PANGO_FONT_MASK_WEIGHT = 1 << 3,
259
+ PANGO_FONT_MASK_WIDTH = 1 << 4,
217
260
  PANGO_FONT_MASK_STRETCH = 1 << 4,
218
261
  PANGO_FONT_MASK_SIZE = 1 << 5,
219
262
  PANGO_FONT_MASK_GRAVITY = 1 << 6,
@@ -335,6 +378,13 @@ void pango_font_description_set_stretch (PangoFontDescript
335
378
  PangoStretch stretch);
336
379
  PANGO_AVAILABLE_IN_ALL
337
380
  PangoStretch pango_font_description_get_stretch (const PangoFontDescription *desc) G_GNUC_PURE;
381
+
382
+ PANGO_AVAILABLE_IN_1_58
383
+ void pango_font_description_set_width (PangoFontDescription *desc,
384
+ PangoWidth width);
385
+ PANGO_AVAILABLE_IN_1_58
386
+ PangoWidth pango_font_description_get_width (const PangoFontDescription *desc);
387
+
338
388
  PANGO_AVAILABLE_IN_ALL
339
389
  void pango_font_description_set_size (PangoFontDescription *desc,
340
390
  gint size);
@@ -753,6 +803,8 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(PangoFontFace, g_object_unref)
753
803
  G_DEFINE_AUTOPTR_CLEANUP_FUNC(PangoFont, g_object_unref)
754
804
  G_DEFINE_AUTOPTR_CLEANUP_FUNC(PangoFontDescription, pango_font_description_free)
755
805
 
806
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC (PangoFontMetrics, pango_font_metrics_unref)
807
+
756
808
  G_END_DECLS
757
809
 
758
810
  #endif /* __PANGO_FONT_H__ */
@@ -58,6 +58,7 @@ void pango_fontset_simple_append (PangoFontsetSimple *fontset
58
58
  PANGO_AVAILABLE_IN_ALL
59
59
  int pango_fontset_simple_size (PangoFontsetSimple *fontset);
60
60
 
61
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC (PangoFontsetSimple, g_object_unref)
61
62
 
62
63
  G_END_DECLS
63
64
 
@@ -128,6 +128,7 @@ void pango_fontset_foreach (PangoFontset
128
128
  PangoFontsetForeachFunc func,
129
129
  gpointer data);
130
130
 
131
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC (PangoFontset, g_object_unref)
131
132
 
132
133
  G_END_DECLS
133
134
 
@@ -170,6 +170,9 @@ gboolean pango_glyph_item_iter_next_cluster (PangoGlyphItemIter *iter);
170
170
  PANGO_AVAILABLE_IN_1_22
171
171
  gboolean pango_glyph_item_iter_prev_cluster (PangoGlyphItemIter *iter);
172
172
 
173
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC (PangoGlyphItemIter, pango_glyph_item_iter_free)
174
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC (PangoGlyphItem, pango_glyph_item_free)
175
+
173
176
  G_END_DECLS
174
177
 
175
178
  #endif /* __PANGO_GLYPH_ITEM_H__ */
@@ -264,6 +264,7 @@ void pango_shape_item (PangoItem
264
264
  PangoGlyphString *glyphs,
265
265
  PangoShapeFlags flags);
266
266
 
267
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC (PangoGlyphString, pango_glyph_string_free)
267
268
 
268
269
  G_END_DECLS
269
270
 
@@ -162,6 +162,8 @@ GList * pango_itemize_with_base_dir (PangoContext *context
162
162
  PangoAttrList *attrs,
163
163
  PangoAttrIterator *cached_iter);
164
164
 
165
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC (PangoItem, pango_item_free)
166
+
165
167
  G_END_DECLS
166
168
 
167
169
  #endif /* __PANGO_ITEM_H__ */
@@ -557,6 +557,8 @@ int pango_layout_iter_get_run_baseline (PangoLayoutIter *iter);
557
557
  G_DEFINE_AUTOPTR_CLEANUP_FUNC(PangoLayout, g_object_unref)
558
558
  G_DEFINE_AUTOPTR_CLEANUP_FUNC(PangoLayoutIter, pango_layout_iter_free)
559
559
 
560
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC (PangoLayoutLine, pango_layout_line_unref)
561
+
560
562
  G_END_DECLS
561
563
 
562
564
  #endif /* __PANGO_LAYOUT_H__ */
@@ -124,6 +124,7 @@ void pango_matrix_get_font_scale_factors (const PangoMatrix *matrix,
124
124
  PANGO_AVAILABLE_IN_1_50
125
125
  double pango_matrix_get_slant_ratio (const PangoMatrix *matrix) G_GNUC_PURE;
126
126
 
127
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC (PangoMatrix, pango_matrix_free)
127
128
 
128
129
  G_END_DECLS
129
130
 
@@ -422,6 +422,11 @@ void pango_ot_ruleset_description_free (PangoOTRulesetDescription
422
422
 
423
423
  #endif /* PANGO_DISABLE_DEPRECATED */
424
424
 
425
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC (PangoOTRulesetDescription, pango_ot_ruleset_description_free)
426
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC (PangoOTBuffer, pango_ot_buffer_destroy)
427
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC (PangoOTRuleset, g_object_unref)
428
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC (PangoOTInfo, g_object_unref)
429
+
425
430
  G_END_DECLS
426
431
 
427
432
  #endif /* __PANGO_OT_H__ */
@@ -56,7 +56,7 @@ typedef enum
56
56
  PANGO_RENDER_PART_BACKGROUND,
57
57
  PANGO_RENDER_PART_UNDERLINE,
58
58
  PANGO_RENDER_PART_STRIKETHROUGH,
59
- PANGO_RENDER_PART_OVERLINE
59
+ PANGO_RENDER_PART_OVERLINE,
60
60
  } PangoRenderPart;
61
61
 
62
62
  /**
@@ -126,6 +126,12 @@ struct _PangoRenderer
126
126
  * - draw_trapezoid
127
127
  * - draw_glyph
128
128
  *
129
+ * The following vfuncs should look at the components value and
130
+ * skip color or plain glyphs accordingly:
131
+ * - draw_glyphs
132
+ * - draw_glyph_item
133
+ * - draw_glyph
134
+ *
129
135
  * Since: 1.8
130
136
  */
131
137
  struct _PangoRendererClass
@@ -284,6 +290,53 @@ PangoLayout *pango_renderer_get_layout (PangoRenderer *renderer);
284
290
  PANGO_AVAILABLE_IN_1_20
285
291
  PangoLayoutLine *pango_renderer_get_layout_line (PangoRenderer *renderer);
286
292
 
293
+
294
+ /**
295
+ * PangoRenderComponent:
296
+ * @PANGO_RENDER_COMPONENT_NONE: No components
297
+ * @PANGO_RENDER_COMPONENT_PLAIN_GLYPH: The plain glyphs of the layout
298
+ * @PANGO_RENDER_COMPONENT_COLOR_GLYPH: The color glyphs of the layout
299
+ * @PANGO_RENDER_COMPONENT_BACKGROUND: Background of the layout
300
+ * @PANGO_RENDER_COMPONENT_UNDERLINE: Underlines of the layout
301
+ * @PANGO_RENDER_COMPONENT_STRIKETHROUGH: Strikethrough lines of the layout
302
+ * @PANGO_RENDER_COMPONENT_OVERLINE: Overlines of the layout
303
+ *
304
+ * Flags that specify which components of a layout to include
305
+ * in renderer output.
306
+ *
307
+ * This is more or less parallel to the [enum@Pango.RenderPart] enum,
308
+ * but allows separating plain and color glyphs, and specifying more
309
+ * than one component.
310
+ *
311
+ * Since: 1.58
312
+ */
313
+ typedef enum
314
+ {
315
+ PANGO_RENDER_COMPONENT_NONE = 0,
316
+ PANGO_RENDER_COMPONENT_PLAIN_GLYPH = 1 << 1,
317
+ PANGO_RENDER_COMPONENT_COLOR_GLYPH = 1 << 2,
318
+ PANGO_RENDER_COMPONENT_BACKGROUND = 1 << 3,
319
+ PANGO_RENDER_COMPONENT_UNDERLINE = 1 << 3,
320
+ PANGO_RENDER_COMPONENT_STRIKETHROUGH = 1 << 4,
321
+ PANGO_RENDER_COMPONENT_OVERLINE = 1 << 5,
322
+ } PangoRenderComponent;
323
+
324
+ #define PANGO_RENDER_COMPONENT_ALL (PANGO_RENDER_COMPONENT_PLAIN_GLYPH | \
325
+ PANGO_RENDER_COMPONENT_COLOR_GLYPH | \
326
+ PANGO_RENDER_COMPONENT_BACKGROUND | \
327
+ PANGO_RENDER_COMPONENT_UNDERLINE | \
328
+ PANGO_RENDER_COMPONENT_STRIKETHROUGH | \
329
+ PANGO_RENDER_COMPONENT_OVERLINE)
330
+
331
+ PANGO_AVAILABLE_IN_1_58
332
+ void pango_renderer_set_components (PangoRenderer *renderer,
333
+ PangoRenderComponent components);
334
+ PANGO_AVAILABLE_IN_1_58
335
+ PangoRenderComponent pango_renderer_get_components (PangoRenderer *renderer);
336
+
337
+
338
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC (PangoRenderer, g_object_unref)
339
+
287
340
  G_END_DECLS
288
341
 
289
342
  #endif /* __PANGO_RENDERER_H_ */
@@ -332,6 +332,16 @@
332
332
  */
333
333
  #define PANGO_VERSION_1_57 (G_ENCODE_VERSION (1, 57))
334
334
 
335
+ /**
336
+ * PANGO_VERSION_1_58:
337
+ *
338
+ * A macro that evaluates to the 1.58 version of Pango, in a format
339
+ * that can be used by the C pre-processor.
340
+ *
341
+ * Since: 1.58
342
+ */
343
+ #define PANGO_VERSION_1_58 (G_ENCODE_VERSION (1, 58))
344
+
335
345
  /* evaluates to the current stable version; for development cycles,
336
346
  * this means the next stable target
337
347
  */
@@ -855,5 +865,21 @@
855
865
  # define PANGO_AVAILABLE_ENUMERATOR_IN_1_57
856
866
  #endif
857
867
 
868
+ #if PANGO_VERSION_MIN_REQUIRED >= PANGO_VERSION_1_58
869
+ # define PANGO_DEPRECATED_IN_1_58 PANGO_DEPRECATED
870
+ # define PANGO_DEPRECATED_IN_1_58_FOR(f) PANGO_DEPRECATED_FOR(f)
871
+ #else
872
+ # define PANGO_DEPRECATED_IN_1_58 _PANGO_EXTERN
873
+ # define PANGO_DEPRECATED_IN_1_58_FOR(f) _PANGO_EXTERN
874
+ #endif
875
+
876
+ #if PANGO_VERSION_MAX_ALLOWED < PANGO_VERSION_1_58
877
+ # define PANGO_AVAILABLE_IN_1_58 PANGO_UNAVAILABLE(1, 58)
878
+ # define PANGO_AVAILABLE_ENUMERATOR_IN_1_58 PANGO_UNAVAILABLE (1, 58)
879
+ #else
880
+ # define PANGO_AVAILABLE_IN_1_58 _PANGO_EXTERN
881
+ # define PANGO_AVAILABLE_ENUMERATOR_IN_1_58
882
+ #endif
883
+
858
884
  #endif /* __PANGO_VERSION_H__ */
859
885
 
@@ -207,6 +207,10 @@ void pango_cairo_layout_line_path (cairo_t *cr,
207
207
  PANGO_AVAILABLE_IN_1_10
208
208
  void pango_cairo_layout_path (cairo_t *cr,
209
209
  PangoLayout *layout);
210
+ PANGO_AVAILABLE_IN_1_58
211
+ void pango_cairo_layout_path_for_components (cairo_t *cr,
212
+ PangoLayout *layout,
213
+ PangoRenderComponent components);
210
214
 
211
215
  PANGO_AVAILABLE_IN_1_14
212
216
  void pango_cairo_error_underline_path (cairo_t *cr,
@@ -215,6 +219,9 @@ void pango_cairo_error_underline_path (cairo_t *cr,
215
219
  double width,
216
220
  double height);
217
221
 
222
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC (PangoCairoFont, g_object_unref)
223
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC (PangoCairoFontMap, g_object_unref)
224
+
218
225
  G_END_DECLS
219
226
 
220
227
  #endif /* __PANGOCAIRO_H__ */
@@ -116,6 +116,8 @@ PangoGlyph pango_fc_decoder_get_glyph (PangoFcDecoder *decoder,
116
116
  PangoFcFont *fcfont,
117
117
  guint32 wc);
118
118
 
119
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC (PangoFcDecoder, g_object_unref)
120
+
119
121
  G_END_DECLS
120
122
 
121
123
  #endif /* __PANGO_DECODER_H_ */
@@ -116,6 +116,7 @@ FT_Face pango_fc_font_lock_face (PangoFcFont *font);
116
116
  PANGO_DEPRECATED_IN_1_44_FOR(pango_font_get_hb_font)
117
117
  void pango_fc_font_unlock_face (PangoFcFont *font);
118
118
 
119
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC (PangoFcFont, g_object_unref)
119
120
 
120
121
  G_END_DECLS
121
122
  #endif /* __PANGO_FC_FONT_H__ */
@@ -245,6 +245,8 @@ void pango_fc_font_map_substitute_changed (PangoFcFontMap *fontmap);
245
245
  */
246
246
  #define PANGO_FC_FONT_VARIATIONS "fontvariations"
247
247
 
248
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC (PangoFcFontMap, g_object_unref)
249
+
248
250
  G_END_DECLS
249
251
 
250
252
  #endif /* __PANGO_FC_FONT_MAP_H__ */
@@ -153,6 +153,8 @@ PangoCoverage *pango_ft2_font_get_coverage (PangoFont *font,
153
153
  PangoLanguage *language);
154
154
  #endif /* PANGO_DISABLE_DEPRECATED */
155
155
 
156
+ G_DEFINE_AUTOPTR_CLEANUP_FUNC (PangoFT2FontMap, g_object_unref)
157
+
156
158
  G_END_DECLS
157
159
 
158
160
  #endif /* __PANGOFT2_H__ */
@@ -39,8 +39,8 @@ extern "C" {
39
39
  #define DEBUG_TPL 0 // Prints to debug TPL
40
40
  #define DETAILED_FRAME_OUTPUT 0 // Prints detailed frame output from the library for debugging
41
41
  #define DEBUG_BUFFERS 0 // Print process count and segments info
42
- #define TUNE_CHROMA_SSIM 0 // Allows for Chroma and SSIM BDR-based Tuning
43
- #define TUNE_CQP_CHROMA_SSIM 0 // Tune CQP qp scaling towards improved chroma and SSIM BDR
42
+ #define TUNE_CHROMA_SSIM 1 // Allows for Chroma and SSIM BDR-based Tuning
43
+ #define TUNE_CQP_CHROMA_SSIM 1 // Tune CQP qp scaling towards improved chroma and SSIM BDR
44
44
 
45
45
  #define MIN_PIC_PARALLELIZATION 0 // Use the minimum amount of picture parallelization
46
46
  #define SRM_REPORT 0 // Report SRM status
@@ -42,6 +42,8 @@ extern "C" {
42
42
  #endif
43
43
  #endif /* ATTRIBUTE_PACKED */
44
44
  typedef enum ATTRIBUTE_PACKED {
45
+ ENC_MRS = -3, // Highest quality research mode (slowest)
46
+ ENC_MRP = -2, // Previous research mode with quality/speed tradeoffs found in v1.8.0
45
47
  ENC_MR = -1, //Research mode with higher quality than M0
46
48
  ENC_M0 = 0,
47
49
  ENC_M1 = 1,
@@ -209,13 +211,13 @@ typedef struct SvtAv1SFramePositions {
209
211
  typedef struct EbSvtAv1EncConfiguration {
210
212
  /**
211
213
  * @brief Encoder preset used.
212
- * -2 and -1 are for debug purposes and should not be used.
214
+ * -3, -2 and -1 are for research purposes and are extremely slow.
213
215
  * 0 is the highest quality mode but is the slowest,
214
216
  * 13 is the fastest mode but is not as high quality.
215
217
  *
216
- * Min value is -2.
218
+ * Min value is -3.
217
219
  * Max value is 13.
218
- * Default is 12.
220
+ * Default is 4.
219
221
  */
220
222
  int8_t enc_mode;
221
223
 
@@ -304,7 +306,7 @@ typedef struct EbSvtAv1EncConfiguration {
304
306
  * 8 = 8 bit.
305
307
  * 10 = 10 bit.
306
308
  *
307
- * Default is 8. */
309
+ * Default is 10 for SVT-AV1-HDR, mainline default is 8. */
308
310
  uint32_t encoder_bit_depth;
309
311
 
310
312
  /**
@@ -569,7 +571,7 @@ typedef struct EbSvtAv1EncConfiguration {
569
571
  * @brief Determines how much denoising is used.
570
572
  * Only applicable when film grain is ON.
571
573
  *
572
- * 0 is no denoising
574
+ * 0 is no denoising (default)
573
575
  * 1 is full denoising
574
576
  *
575
577
  * Default is 0. */
@@ -645,7 +647,7 @@ typedef struct EbSvtAv1EncConfiguration {
645
647
 
646
648
  bool enable_overlays;
647
649
  /**
648
- * @brief Tune for a particular metric; 0: VQ, 1: PSNR, 2: SSIM, 3: IQ (Image Quality), 4: MS-SSIM.
650
+ * @brief Tune for a particular metric; 0: VQ, 1: PSNR, 2: SSIM, 3: IQ (Image Quality), 4: MS_SSIM, 5: Film Grain.
649
651
  *
650
652
  * Default is 1.
651
653
  */
@@ -741,7 +743,7 @@ typedef struct EbSvtAv1EncConfiguration {
741
743
  /**
742
744
  * @brief Signal to the library to enable quantisation matrices
743
745
  *
744
- * Default is false.
746
+ * Default is true in SVT-AV1-HDR.
745
747
  */
746
748
  bool enable_qm;
747
749
 
@@ -749,14 +751,14 @@ typedef struct EbSvtAv1EncConfiguration {
749
751
  * @brief Min quant matrix flatness. Applicable when enable_qm is true.
750
752
  * Min value is 0.
751
753
  * Max value is 15.
752
- * Default is 8.
754
+ * Default is 6 in SVT-AV1-HDR, mainline default is 8.
753
755
  */
754
756
  uint8_t min_qm_level;
755
757
  /**
756
758
  * @brief Max quant matrix flatness. Applicable when enable_qm is true.
757
759
  * Min value is 0.
758
760
  * Max value is 15.
759
- * Default is 15.
761
+ * Default is 10 in SVT-AV1-HDR, mainline default is 15.
760
762
  */
761
763
  uint8_t max_qm_level;
762
764
 
@@ -826,7 +828,7 @@ typedef struct EbSvtAv1EncConfiguration {
826
828
 
827
829
  /* Manually adjust temporal filtering strength
828
830
  * 10 + (4 - 0) = 14 (8x weaker)
829
- * 10 + (4 - 1) = 13 (4x weaker, PSY default)
831
+ * 10 + (4 - 1) = 13 (4x weaker, SVT-AV1-HDR default)
830
832
  * 10 + (4 - 2) = 12 (2x weaker)
831
833
  * 10 + (4 - 3) = 11 (mainline default)
832
834
  * 10 + (4 - 4) = 10 (2x stronger) */
@@ -841,7 +843,7 @@ typedef struct EbSvtAv1EncConfiguration {
841
843
  /* Variance Boost
842
844
  * false = disable Variance Boost
843
845
  * true = enable Variance Boost
844
- * Default is false. */
846
+ * Default is true in SVT-AV1-HDR. */
845
847
  bool enable_variance_boost;
846
848
  /* @brief Selects the curve strength to boost low variance regions according to a fast-growing formula
847
849
  * Default is 2 */
@@ -858,7 +860,7 @@ typedef struct EbSvtAv1EncConfiguration {
858
860
  /* @brief Bias towards decreased/increased sharpness in the deblocking loop filter & during rate distortion
859
861
  * Minimum value is -7 (less sharp).
860
862
  * Maximum value is 7 (more sharp).
861
- * Default is 0 (medium sharpness). */
863
+ * Default is 1 in SVT-AV1-HDR, mainline default is 0. */
862
864
  int8_t sharpness;
863
865
 
864
866
  /* @brief Enable the user to configure which curve variance boost uses.
@@ -866,7 +868,8 @@ typedef struct EbSvtAv1EncConfiguration {
866
868
  * 0: default curve
867
869
  * 1: low-medium contrast boost curve
868
870
  * 2: still picture curve, tuned for SSIMULACRA2 performance on the CID22 Validation Set
869
- * Default is 0. */
871
+ * 3: PQ-optimized perceptual curve
872
+ * Default is 0, or 3 if encoding PQ transfer content */
870
873
  uint8_t variance_boost_curve;
871
874
 
872
875
  /* @brief Frame-level luminance-based QP bias to improve quality in low luma scenarios
@@ -910,13 +913,8 @@ typedef struct EbSvtAv1EncConfiguration {
910
913
  */
911
914
  bool rtc;
912
915
 
913
- /* @brief compresses the QP hierarchical layer scale to improve temporal video consistency
914
- * 0: no compression, original SVT-AV1 scaling
915
- * 1-3: enable compression, the higher the number the stronger the compression
916
- * (different frame quality fluctuation/mean quality tradeoffs)
917
- * Default is 1
918
- */
919
- uint8_t qp_scale_compress_strength;
916
+ /* @brief unused field for QP scale compress strength, which is now a double */
917
+ uint8_t qp_scale_compress_strength_unused;
920
918
 
921
919
  /* @brief Indicates where to insert an S-Frame, only available when sframe_mode is SFRAME_FLEXIBLE_ARF */
922
920
  SvtAv1SFramePositions sframe_posi;
@@ -961,15 +959,152 @@ typedef struct EbSvtAv1EncConfiguration {
961
959
  * @brief Strength of the internal RD metric to bias toward high-frequency error (helps with texture preservation and film grain retention)
962
960
  * 0.00: disable AC bias
963
961
  * 1.00: enable AC bias with a strength of 1.00
964
- * Default is 0.00.
962
+ * Default is 1.00 in SVT-AV1-HDR, mainline default is 0.00
965
963
  */
966
964
  double ac_bias;
967
965
 
968
- // clang-format off
969
- /* Add 128 Byte Padding to Struct to avoid changing the size of the public configuration struct */
970
- uint8_t padding[128
971
- - sizeof(PredStructure) + sizeof (uint8_t) // pred_strucutre type was changed from uint8_t to PredStructure
972
- ];
966
+ /**
967
+ * @brief Noise normalization strength; modifies the encoder's willingness
968
+ * to boost AC coefficients in low-noise blocks.
969
+ * Min value is 0.
970
+ * Max value is 4.
971
+ * Default is 1.
972
+ */
973
+ uint8_t noise_norm_strength;
974
+
975
+ /* Manually adjust TF strength on keyframes
976
+ * 0: disable alt-ref TF on keyframes
977
+ * 1: 10 + (4 - 1) = 13 (4x weaker, HDR default)
978
+ * 2: 10 + (4 - 2) = 12 (2x weaker)
979
+ * 3: 10 + (4 - 3) = 11 (mainline default)
980
+ * 4: 10 + (4 - 4) = 10 (2x stronger) */
981
+ uint8_t kf_tf_strength;
982
+
983
+ /**
984
+ * @brief Use alternative lambda factors
985
+ * false = use regular lambda factors
986
+ * true = use alternative lambda factors (from SVT-AV1 3.0.2)
987
+ * Default is true in SVT-AV1-HDR. */
988
+ bool alt_lambda_factors;
989
+
990
+ /* @brief compresses the QP hierarchical layer scale to improve temporal video consistency
991
+ * 0.0: no compression, original SVT-AV1 scaling
992
+ * 0.0-8.0: enable compression, the higher the number the stronger the compression
993
+ * (different frame quality fluctuation/mean quality tradeoffs)
994
+ * Default is 1.0 in SVT-AV1-HDR, mainline default is 0.0
995
+ */
996
+ double qp_scale_compress_strength;
997
+
998
+ /* @brief Alternative SSIM tuning, enables VQ enhancements and different rdmult calculations
999
+ * 0: disabled, use stock SSIM tuning
1000
+ * 1: enabled, use alternative SSIM tuning with VQ enhacnements and different rdmult calculations
1001
+ * Default is 0
1002
+ */
1003
+ bool alt_ssim_tuning;
1004
+
1005
+ /**
1006
+ * @brief Enable sharp-tx, a toggle that enables much sharper transforms decisions for higher fidelity ouput,
1007
+ at the possible cost of increasing artifacting
1008
+ * 0: disabled
1009
+ * 1: enabled
1010
+ * Default is 1
1011
+ */
1012
+ uint8_t sharp_tx;
1013
+
1014
+ /**
1015
+ * @brief High Bit-Depth Mode Decision, used to control the bit-depth of the mode decision path.
1016
+ * 0: preset-determined
1017
+ * 1: full 10-bit MD
1018
+ * 2: hybrid 8/10-bit MD
1019
+ * Default is 0
1020
+ */
1021
+ uint8_t hbd_mds;
1022
+
1023
+ /**
1024
+ * @brief Transform size/type bias type
1025
+ * 0: disabled
1026
+ * 1: full
1027
+ * 2: transform size only
1028
+ * 3: interpolation filter tweaks only
1029
+ * Default is 0
1030
+ */
1031
+ uint8_t tx_bias;
1032
+
1033
+ /**
1034
+ * @brief Enable complex-hvs, a feature that enables the highest complexity and highest fidelity
1035
+ HVS model at the cost of higher CPU time
1036
+ * 0: default preset behavior
1037
+ * 1: highest complexity HVS model (SSD-Psy)
1038
+ * Default is 0
1039
+ */
1040
+ uint8_t complex_hvs;
1041
+
1042
+ /**
1043
+ * @brief Controls noise detection for CDEF/restoration filtering
1044
+ * 0: off
1045
+ * 1: always-on noise-adaptive filters
1046
+ * 2: default tune behavior
1047
+ * 3: noise-adaptive CDEF only
1048
+ * 4: noise-adaptive restoration filtering only
1049
+ * Default is 2
1050
+ */
1051
+ uint8_t noise_adaptive_filtering;
1052
+
1053
+ /* @brief Controls scaling of the CDEF strength computation
1054
+ * 1: minimum CDEF scaling
1055
+ * 8: ~0.5x CDEF scaling
1056
+ * 30: 2x CDEF scaling
1057
+ * Default is 15 (1x scaling). */
1058
+ uint8_t cdef_scaling;
1059
+
1060
+ /**
1061
+ * @brief Enables static noise table generation
1062
+ *
1063
+ * 0: off
1064
+ * 1-200: noise strength
1065
+ * Default is 0.
1066
+ */
1067
+ uint8_t noise_strength;
1068
+
1069
+ /**
1070
+ * @brief Control whether chroma noise is scaled from luma or as a separate strength value
1071
+ *
1072
+ * -1: chroma noise strength is ~60% of noise_strength value
1073
+ * 0: disable chroma noise
1074
+ * 1-200: chroma noise strength
1075
+ * Default is -1.
1076
+ */
1077
+ int32_t noise_strength_chroma;
1078
+
1079
+ /*
1080
+ * @brief Enable noise on chroma planes based on luma plane
1081
+ *
1082
+ * 0: off, chroma noise is applied based on chroma planes
1083
+ * 1: on, chroma noise application is based on luma plane
1084
+ * Default is 0.
1085
+ */
1086
+ uint8_t noise_chroma_from_luma;
1087
+
1088
+ /**
1089
+ * @brief Control the grain size of noise
1090
+ *
1091
+ * -1: auto adjustment based on resolution
1092
+ * 0-13: adjust grain size
1093
+ * Default is -1.
1094
+ */
1095
+ int8_t noise_size;
1096
+
1097
+ /**
1098
+ * @brief Check if color range is provided by the user
1099
+ */
1100
+ bool color_range_provided;
1101
+
1102
+ /*Add 128 Byte Padding to Struct to avoid changing the size of the public configuration struct*/
1103
+ uint8_t padding[128 - sizeof(PredStructure) +
1104
+ sizeof(uint8_t) // pred_strucutre type was changed from uint8_t to PredStructure
1105
+ /* SVT-AV1-HDR additions */
1106
+ - (sizeof(uint8_t) * 10) - (sizeof(int8_t) * 1) - (sizeof(int32_t) * 1) - (sizeof(bool) * 3) -
1107
+ (sizeof(double))];
973
1108
  // clang-format on
974
1109
  } EbSvtAv1EncConfiguration;
975
1110
 
@@ -979,6 +1114,12 @@ typedef struct EbSvtAv1EncConfiguration {
979
1114
  */
980
1115
  EB_API const char* svt_av1_get_version(void);
981
1116
 
1117
+ /**
1118
+ * Returns a string containing only the SVT-AV1-HDR micro-release letter
1119
+ * @param[out] SVT_AV1_HDR_RELEASE
1120
+ */
1121
+ EB_API const char* svt_hdr_get_version(void);
1122
+
982
1123
  /**
983
1124
  * Prints the version header and build information to the file
984
1125
  * specified by the SVT_LOG_FILE environment variable or stderr
@@ -8,7 +8,7 @@
8
8
  * Furthermore, configure_file variables of type "" are
9
9
  * modified by clang-format and won't be substituted by CMake.
10
10
  */
11
- #define TIFFLIB_VERSION_STR "LIBTIFF, Version 4.7.1\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc."
11
+ #define TIFFLIB_VERSION_STR "LIBTIFF, Version 4.7.2\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc."
12
12
  /*
13
13
  * This define can be used in code that requires
14
14
  * compilation-related definitions specific to a
@@ -16,13 +16,13 @@
16
16
  * version checking should be done based on the
17
17
  * string returned by TIFFGetVersion.
18
18
  */
19
- #define TIFFLIB_VERSION 20250911
19
+ #define TIFFLIB_VERSION 20260626
20
20
 
21
21
  /* The following defines have been added in 4.5.0 */
22
22
  #define TIFFLIB_MAJOR_VERSION 4
23
23
  #define TIFFLIB_MINOR_VERSION 7
24
- #define TIFFLIB_MICRO_VERSION 1
25
- #define TIFFLIB_VERSION_STR_MAJ_MIN_MIC "4.7.1"
24
+ #define TIFFLIB_MICRO_VERSION 2
25
+ #define TIFFLIB_VERSION_STR_MAJ_MIN_MIC "4.7.2"
26
26
 
27
27
  /* Macro added in 4.5.0. Returns TRUE if the current libtiff version is
28
28
  * greater or equal to major.minor.micro
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revizly/sharp-libvips-dev",
3
- "version": "1.0.40",
3
+ "version": "1.0.42",
4
4
  "description": "Header files and C++ sources for libvips and dependencies required when compiling sharp from source",
5
5
  "author": "Lovell Fuller <npm@lovell.info>",
6
6
  "homepage": "https://sharp.pixelplumbing.com",
package/versions.json CHANGED
@@ -1,30 +1,30 @@
1
1
  {
2
2
  "aom": "3.14.1",
3
- "archive": "3.8.7",
3
+ "archive": "3.8.8",
4
4
  "cairo": "1.18.4",
5
5
  "cgif": "0.5.3",
6
6
  "de265": "1.1.1",
7
7
  "exif": "0.6.26",
8
- "expat": "2.8.1",
9
- "ffi": "3.5.2",
8
+ "expat": "2.8.2",
9
+ "ffi": "3.6.0",
10
10
  "fontconfig": "2.18.1",
11
11
  "freetype": "2.14.3",
12
12
  "fribidi": "1.0.16",
13
- "glib": "2.89.0",
13
+ "glib": "2.89.1",
14
14
  "harfbuzz": "14.2.1",
15
- "heif": "1.23.0",
15
+ "heif": "1.23.1",
16
16
  "highway": "1.4.0",
17
17
  "imagequant": "2.4.1",
18
18
  "lcms": "2.19.1",
19
19
  "mozjpeg": "0826579",
20
- "pango": "1.57.1",
20
+ "pango": "1.58.0",
21
21
  "pixman": "0.46.4",
22
22
  "png": "1.6.58",
23
23
  "proxy-libintl": "0.5",
24
- "rsvg": "2.62.3",
24
+ "rsvg": "2.62.90",
25
25
  "svt-av1": "4.1.0",
26
- "tiff": "072ca92",
27
- "uhdr": "13a058f",
26
+ "tiff": "decd6e0",
27
+ "uhdr": "1acdbed",
28
28
  "vips": "8.18.3",
29
29
  "webp": "1.6.0",
30
30
  "xml2": "2.15.3",