@revizly/sharp-libvips-dev 1.0.21 → 1.0.23

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 (130) hide show
  1. package/include/aom/aom_decoder.h +1 -1
  2. package/include/aom/aom_encoder.h +2 -0
  3. package/include/aom/aomcx.h +106 -25
  4. package/include/expat.h +37 -24
  5. package/include/expat_config.h +9 -9
  6. package/include/expat_external.h +62 -61
  7. package/include/freetype2/freetype/config/ftconfig.h +1 -1
  8. package/include/freetype2/freetype/config/ftheader.h +1 -1
  9. package/include/freetype2/freetype/config/ftoption.h +37 -12
  10. package/include/freetype2/freetype/config/ftstdlib.h +1 -1
  11. package/include/freetype2/freetype/config/integer-types.h +29 -2
  12. package/include/freetype2/freetype/config/mac-support.h +1 -1
  13. package/include/freetype2/freetype/config/public-macros.h +3 -3
  14. package/include/freetype2/freetype/freetype.h +51 -47
  15. package/include/freetype2/freetype/ftadvanc.h +1 -1
  16. package/include/freetype2/freetype/ftbbox.h +1 -1
  17. package/include/freetype2/freetype/ftbdf.h +1 -1
  18. package/include/freetype2/freetype/ftbitmap.h +1 -1
  19. package/include/freetype2/freetype/ftbzip2.h +1 -1
  20. package/include/freetype2/freetype/ftcache.h +1 -1
  21. package/include/freetype2/freetype/ftcid.h +1 -1
  22. package/include/freetype2/freetype/ftcolor.h +13 -4
  23. package/include/freetype2/freetype/ftdriver.h +3 -3
  24. package/include/freetype2/freetype/fterrdef.h +1 -1
  25. package/include/freetype2/freetype/fterrors.h +1 -1
  26. package/include/freetype2/freetype/ftfntfmt.h +1 -1
  27. package/include/freetype2/freetype/ftgasp.h +1 -1
  28. package/include/freetype2/freetype/ftglyph.h +1 -1
  29. package/include/freetype2/freetype/ftgxval.h +1 -1
  30. package/include/freetype2/freetype/ftgzip.h +1 -1
  31. package/include/freetype2/freetype/ftimage.h +6 -2
  32. package/include/freetype2/freetype/ftincrem.h +1 -1
  33. package/include/freetype2/freetype/ftlcdfil.h +1 -1
  34. package/include/freetype2/freetype/ftlist.h +1 -1
  35. package/include/freetype2/freetype/ftlogging.h +184 -0
  36. package/include/freetype2/freetype/ftlzw.h +1 -1
  37. package/include/freetype2/freetype/ftmac.h +1 -1
  38. package/include/freetype2/freetype/ftmm.h +159 -103
  39. package/include/freetype2/freetype/ftmodapi.h +1 -1
  40. package/include/freetype2/freetype/ftmoderr.h +1 -1
  41. package/include/freetype2/freetype/ftotval.h +1 -1
  42. package/include/freetype2/freetype/ftoutln.h +1 -1
  43. package/include/freetype2/freetype/ftparams.h +1 -1
  44. package/include/freetype2/freetype/ftpfr.h +1 -1
  45. package/include/freetype2/freetype/ftrender.h +1 -1
  46. package/include/freetype2/freetype/ftsizes.h +1 -1
  47. package/include/freetype2/freetype/ftsnames.h +1 -1
  48. package/include/freetype2/freetype/ftstroke.h +1 -1
  49. package/include/freetype2/freetype/ftsynth.h +1 -1
  50. package/include/freetype2/freetype/ftsystem.h +1 -1
  51. package/include/freetype2/freetype/fttrigon.h +1 -1
  52. package/include/freetype2/freetype/fttypes.h +1 -1
  53. package/include/freetype2/freetype/ftwinfnt.h +2 -3
  54. package/include/freetype2/freetype/otsvg.h +1 -1
  55. package/include/freetype2/freetype/t1tables.h +1 -1
  56. package/include/freetype2/freetype/ttnameid.h +129 -129
  57. package/include/freetype2/freetype/tttables.h +8 -5
  58. package/include/freetype2/freetype/tttags.h +1 -1
  59. package/include/freetype2/ft2build.h +1 -1
  60. package/include/glib-2.0/gio/gdbuserror.h +9 -8
  61. package/include/glib-2.0/gio/ginetaddress.h +12 -0
  62. package/include/glib-2.0/gio/gioenums.h +9 -2
  63. package/include/glib-2.0/glib/gstring.h +2 -2
  64. package/include/glib-2.0/glib/gunicode.h +1 -1
  65. package/include/glib-2.0/gobject/glib-types.h +1 -1
  66. package/include/glib-2.0/gobject/gparam.h +1 -1
  67. package/include/glib-2.0/gobject/gvalue.h +78 -35
  68. package/include/harfbuzz/hb-script-list.h +12 -0
  69. package/include/harfbuzz/hb-subset.h +5 -0
  70. package/include/harfbuzz/hb-version.h +3 -3
  71. package/include/hwy/ops/set_macros-inl.h +5 -0
  72. package/include/librsvg-2.0/librsvg/rsvg-version.h +2 -2
  73. package/include/libxml2/libxml/HTMLparser.h +159 -101
  74. package/include/libxml2/libxml/HTMLtree.h +49 -74
  75. package/include/libxml2/libxml/SAX.h +8 -5
  76. package/include/libxml2/libxml/SAX2.h +18 -15
  77. package/include/libxml2/libxml/c14n.h +30 -29
  78. package/include/libxml2/libxml/catalog.h +47 -22
  79. package/include/libxml2/libxml/chvalid.h +52 -64
  80. package/include/libxml2/libxml/debugXML.h +18 -15
  81. package/include/libxml2/libxml/dict.h +22 -19
  82. package/include/libxml2/libxml/encoding.h +144 -111
  83. package/include/libxml2/libxml/entities.h +95 -75
  84. package/include/libxml2/libxml/globals.h +7 -4
  85. package/include/libxml2/libxml/hash.h +61 -64
  86. package/include/libxml2/libxml/list.h +59 -51
  87. package/include/libxml2/libxml/nanoftp.h +7 -4
  88. package/include/libxml2/libxml/nanohttp.h +10 -7
  89. package/include/libxml2/libxml/parser.h +1091 -563
  90. package/include/libxml2/libxml/parserInternals.h +167 -214
  91. package/include/libxml2/libxml/pattern.h +29 -31
  92. package/include/libxml2/libxml/relaxng.h +59 -58
  93. package/include/libxml2/libxml/schemasInternals.h +114 -268
  94. package/include/libxml2/libxml/schematron.h +59 -51
  95. package/include/libxml2/libxml/threads.h +19 -20
  96. package/include/libxml2/libxml/tree.h +873 -623
  97. package/include/libxml2/libxml/uri.h +21 -22
  98. package/include/libxml2/libxml/valid.h +170 -202
  99. package/include/libxml2/libxml/xinclude.h +24 -43
  100. package/include/libxml2/libxml/xlink.h +55 -51
  101. package/include/libxml2/libxml/xmlIO.h +133 -151
  102. package/include/libxml2/libxml/xmlautomata.h +66 -65
  103. package/include/libxml2/libxml/xmlerror.h +198 -95
  104. package/include/libxml2/libxml/xmlexports.h +17 -19
  105. package/include/libxml2/libxml/xmlmemory.h +44 -29
  106. package/include/libxml2/libxml/xmlmodule.h +14 -15
  107. package/include/libxml2/libxml/xmlreader.h +137 -131
  108. package/include/libxml2/libxml/xmlregexp.h +28 -31
  109. package/include/libxml2/libxml/xmlsave.h +81 -36
  110. package/include/libxml2/libxml/xmlschemas.h +61 -67
  111. package/include/libxml2/libxml/xmlschemastypes.h +60 -54
  112. package/include/libxml2/libxml/xmlstring.h +8 -9
  113. package/include/libxml2/libxml/xmlunicode.h +6 -3
  114. package/include/libxml2/libxml/xmlversion.h +44 -121
  115. package/include/libxml2/libxml/xmlwriter.h +97 -97
  116. package/include/libxml2/libxml/xpath.h +235 -232
  117. package/include/libxml2/libxml/xpathInternals.h +247 -277
  118. package/include/libxml2/libxml/xpointer.h +21 -17
  119. package/include/pango-1.0/pango/pango-enum-types.h +3 -0
  120. package/include/pango-1.0/pango/pango-features.h +3 -3
  121. package/include/pango-1.0/pango/pango-font.h +30 -0
  122. package/include/pango-1.0/pango/pango-version-macros.h +26 -0
  123. package/include/tiff.h +1 -0
  124. package/include/tiffconf.h +1 -1
  125. package/include/tiffio.h +23 -5
  126. package/include/tiffvers.h +4 -4
  127. package/include/vips/connection.h +4 -4
  128. package/include/vips/version.h +4 -4
  129. package/package.json +1 -1
  130. package/versions.json +11 -11
@@ -52,7 +52,7 @@ extern "C" {
52
52
  *
53
53
  * The available flags are specified by AOM_CODEC_CAP_* defines.
54
54
  */
55
- /*!brief Can support external frame buffers */
55
+ /*!\brief Can support external frame buffers */
56
56
  #define AOM_CODEC_CAP_EXTERNAL_FRAME_BUFFER 0x200000
57
57
 
58
58
  /*! \brief Initialization-time Feature Enabling
@@ -377,6 +377,8 @@ typedef struct cfg_options {
377
377
  typedef long aom_enc_frame_flags_t;
378
378
  /*!\brief Force this frame to be a keyframe */
379
379
  #define AOM_EFLAG_FORCE_KF (1 << 0)
380
+ /*!\brief Calculate PSNR for this frame, requires g_lag_in_frames to be 0 */
381
+ #define AOM_EFLAG_CALCULATE_PSNR (1 << 1)
380
382
 
381
383
  /*!\brief Encoder configuration structure
382
384
  *
@@ -208,11 +208,11 @@ enum aome_enc_control_id {
208
208
  * encoding process, values greater than 0 will increase encoder speed at
209
209
  * the expense of quality.
210
210
  *
211
- * Valid range: 0..11. 0 runs the slowest, and 11 runs the fastest;
211
+ * Valid range: 0..12. 0 runs the slowest, and 12 runs the fastest;
212
212
  * quality improves as speed decreases (since more compression
213
213
  * possibilities are explored).
214
214
  *
215
- * NOTE: 10 and 11 are only allowed in AOM_USAGE_REALTIME. In
215
+ * NOTE: 10 - 12 are only allowed in AOM_USAGE_REALTIME. In
216
216
  * AOM_USAGE_GOOD_QUALITY and AOM_USAGE_ALL_INTRA, 9 is the highest allowed
217
217
  * value. However, AOM_USAGE_GOOD_QUALITY treats 7..9 the same as 6. Also,
218
218
  * AOM_USAGE_REALTIME treats 0..4 the same as 5.
@@ -313,6 +313,10 @@ enum aome_enc_control_id {
313
313
 
314
314
  /*!\brief Codec control function to set number of spatial layers, int
315
315
  * parameter
316
+ *
317
+ * Valid range:
318
+ * \li When using #AV1E_SET_SVC_REF_FRAME_CONFIG: [1, #AOM_MAX_SS_LAYERS]
319
+ * \li When \em not using #AV1E_SET_SVC_REF_FRAME_CONFIG: [1, 3]
316
320
  */
317
321
  AOME_SET_NUMBER_SPATIAL_LAYERS = 27,
318
322
 
@@ -1136,6 +1140,10 @@ enum aome_enc_control_id {
1136
1140
  * - 4 = use modulation for user rating based perceptual quality optimization
1137
1141
  * - 5 = use modulation for HDR video
1138
1142
  * - 6 = use modulation for all intra using Variance Boost
1143
+ *
1144
+ * \attention Delta q modes 1-5 are unsupported and are silently ignored in
1145
+ * non-RD mode. Non-RD mode is enabled by setting cpu-used >= 8 (all intra
1146
+ * usage) and cpu-used >= 7 (realtime usage).
1139
1147
  */
1140
1148
  AV1E_SET_DELTAQ_MODE = 107,
1141
1149
 
@@ -1399,7 +1407,8 @@ enum aome_enc_control_id {
1399
1407
  */
1400
1408
  AV1E_SET_SVC_REF_FRAME_COMP_PRED = 147,
1401
1409
 
1402
- /*!\brief Set --deltaq-mode strength.
1410
+ /*!\brief Set --deltaq-mode strength, where the value is a percentage,
1411
+ * unsigned int parameter.
1403
1412
  *
1404
1413
  * Valid range: [0, 1000]
1405
1414
  */
@@ -1578,6 +1587,36 @@ enum aome_enc_control_id {
1578
1587
  */
1579
1588
  AV1E_SET_MAX_CONSEC_FRAME_DROP_MS_CBR = 169,
1580
1589
 
1590
+ /*!\brief Codec control to enable the low complexity decode mode, unsigned
1591
+ * int parameter. Value of zero means this mode is disabled.
1592
+ */
1593
+ AV1E_SET_ENABLE_LOW_COMPLEXITY_DECODE = 170,
1594
+
1595
+ /*!\brief Codec control to set the screen content detection mode,
1596
+ * aom_screen_detection_mode parameter.
1597
+ *
1598
+ * - 1: AOM_SCREEN_DETECTION_STANDARD = standard (default)
1599
+ * - 2: AOM_SCREEN_DETECTION_ANTIALIASING_AWARE = anti-aliased text and
1600
+ * graphics aware
1601
+ */
1602
+ AV1E_SET_SCREEN_CONTENT_DETECTION_MODE = 171,
1603
+
1604
+ /*!\brief Codec control to enable adaptive sharpness, which modulates
1605
+ * sharpness based on frame QP, unsigned int parameter.
1606
+ *
1607
+ * Adaptive sharpness helps mitigate blocking artifacts in the low to medium
1608
+ * quality range.
1609
+ *
1610
+ * - 0 = disable (default)
1611
+ * - 1 = enable
1612
+ *
1613
+ * \note When adaptive sharpness is enabled, AOME_SET_SHARPNESS acts as a
1614
+ * "maximum sharpness" value. Adaptive sharpness can still modulate effective
1615
+ * sharpness between 0 and the maximum sharpness. As a consequence, adaptive
1616
+ * sharpness only has effects when sharpness is greater than 0.
1617
+ */
1618
+ AV1E_SET_ENABLE_ADAPTIVE_SHARPNESS = 172,
1619
+
1581
1620
  // Any new encoder control IDs should be added above.
1582
1621
  // Maximum allowed encoder control ID is 229.
1583
1622
  // No encoder control ID should be added below.
@@ -1611,19 +1650,21 @@ typedef enum aom_scaling_mode_1d {
1611
1650
  /*!\brief aom region of interest map
1612
1651
  *
1613
1652
  * These defines the data structures for the region of interest map
1614
- *
1615
- * TODO(yaowu): create a unit test for ROI map related APIs
1616
- *
1617
1653
  */
1618
1654
  typedef struct aom_roi_map {
1619
- /*! An id between 0 and 7 for each 8x8 region within a frame. */
1655
+ /*! If ROI is enabled. */
1656
+ uint8_t enabled;
1657
+ /*! An id between 0 and 7 for each 4x4 region within a frame. */
1620
1658
  unsigned char *roi_map;
1621
- unsigned int rows; /**< Number of rows. */
1622
- unsigned int cols; /**< Number of columns. */
1623
- int delta_q[AOM_MAX_SEGMENTS]; /**< Quantizer deltas. */
1624
- int delta_lf[AOM_MAX_SEGMENTS]; /**< Loop filter deltas. */
1625
- /*! Static breakout threshold for each segment. */
1626
- unsigned int static_threshold[AOM_MAX_SEGMENTS];
1659
+ unsigned int rows; /**< Number of rows. */
1660
+ unsigned int cols; /**< Number of columns. */
1661
+ int delta_q[AOM_MAX_SEGMENTS]; /**< Quantizer deltas. */
1662
+ int delta_lf[AOM_MAX_SEGMENTS]; /**< Loop filter deltas. */
1663
+ int skip[AOM_MAX_SEGMENTS]; /**< Skip this block. */
1664
+ int ref_frame[AOM_MAX_SEGMENTS]; /**< Reference frame for this block. */
1665
+ int delta_qp_enabled; /**< Delta qp feature enabled. */
1666
+ int reference_enabled; /**< Reference frame feature enabled. */
1667
+ int rdmult_delta_qp; /**< RD mult for delta qp feature. */
1627
1668
  } aom_roi_map_t;
1628
1669
 
1629
1670
  /*!\brief aom active region map
@@ -1649,7 +1690,7 @@ typedef struct aom_scaling_mode {
1649
1690
  AOM_SCALING_MODE v_scaling_mode; /**< vertical scaling mode */
1650
1691
  } aom_scaling_mode_t;
1651
1692
 
1652
- /*!brief AV1 encoder content type */
1693
+ /*!\brief AV1 encoder content type */
1653
1694
  typedef enum {
1654
1695
  AOM_CONTENT_DEFAULT,
1655
1696
  AOM_CONTENT_SCREEN,
@@ -1657,7 +1698,15 @@ typedef enum {
1657
1698
  AOM_CONTENT_INVALID
1658
1699
  } aom_tune_content;
1659
1700
 
1660
- /*!brief AV1 encoder timing info type signaling */
1701
+ /*!\brief Screen content detection mode */
1702
+ typedef enum {
1703
+ /** Standard */
1704
+ AOM_SCREEN_DETECTION_STANDARD = 1,
1705
+ /** Anti-aliased text and graphics aware */
1706
+ AOM_SCREEN_DETECTION_ANTIALIASING_AWARE = 2
1707
+ } aom_screen_detection_mode;
1708
+
1709
+ /*!\brief AV1 encoder timing info type signaling */
1661
1710
  typedef enum {
1662
1711
  AOM_TIMING_UNSPECIFIED,
1663
1712
  AOM_TIMING_EQUAL,
@@ -1669,9 +1718,10 @@ typedef enum {
1669
1718
  * Changes the encoder to tune for certain types of input material.
1670
1719
  *
1671
1720
  * \note
1672
- * AOM_TUNE_IQ is restricted to all intra mode (AOM_USAGE_ALL_INTRA). Setting
1673
- * the tuning option to AOM_TUNE_IQ causes the following options to be set
1674
- * (expressed as command-line options):
1721
+ * AOM_TUNE_IQ and AOM_TUNE_SSIMULACRA2 are restricted to all intra mode
1722
+ * (AOM_USAGE_ALL_INTRA). Setting the tuning option to either AOM_TUNE_IQ or
1723
+ * AOM_TUNE_SSIMULACRA2 causes the following options to be set (expressed as
1724
+ * command-line options):
1675
1725
  * * --enable-qm=1
1676
1726
  * * --qm-min=2
1677
1727
  * * --qm-max=10
@@ -1680,6 +1730,9 @@ typedef enum {
1680
1730
  * * --enable-cdef=3
1681
1731
  * * --enable-chroma-deltaq=1
1682
1732
  * * --deltaq-mode=6
1733
+ * * --screen-detection-mode=2
1734
+ * AOM_TUNE_IQ additionally sets the following options:
1735
+ * * --enable-adaptive-sharpness=1
1683
1736
  */
1684
1737
  typedef enum {
1685
1738
  AOM_TUNE_PSNR = 0,
@@ -1698,6 +1751,12 @@ typedef enum {
1698
1751
  * the rdmult code with AOM_TUNE_SSIM.
1699
1752
  */
1700
1753
  AOM_TUNE_IQ = 10,
1754
+ /*!\brief Allows detection of the presence of AOM_TUNE_SSIMULACRA2 at compile
1755
+ * time. */
1756
+ #define AOM_HAVE_TUNE_SSIMULACRA2 1
1757
+ /* Tune that optimizes for maximum SSIMULACRA 2 scores. Shares the rdmult code
1758
+ with AOM_TUNE_SSIM. */
1759
+ AOM_TUNE_SSIMULACRA2 = 11,
1701
1760
  } aom_tune_metric;
1702
1761
 
1703
1762
  /*!\brief Distortion metric to use for RD optimization.
@@ -1721,21 +1780,33 @@ typedef enum {
1721
1780
  #define AOM_MAX_SS_LAYERS 4 /**< Max number of spatial layers */
1722
1781
  #define AOM_MAX_TS_LAYERS 8 /**< Max number of temporal layers */
1723
1782
 
1724
- /*!brief Struct for spatial and temporal layer ID */
1783
+ /*!\brief Struct for spatial and temporal layer ID */
1725
1784
  typedef struct aom_svc_layer_id {
1726
1785
  int spatial_layer_id; /**< Spatial layer ID */
1727
1786
  int temporal_layer_id; /**< Temporal layer ID */
1728
1787
  } aom_svc_layer_id_t;
1729
1788
 
1730
- /*!brief Parameter type for SVC
1789
+ /*!\brief Parameter type for SVC
1731
1790
  *
1732
1791
  * In the arrays of size AOM_MAX_LAYERS, the index for spatial layer `sl` and
1733
1792
  * temporal layer `tl` is sl * number_temporal_layers + tl.
1734
1793
  *
1735
1794
  */
1736
1795
  typedef struct aom_svc_params {
1737
- int number_spatial_layers; /**< Number of spatial layers */
1738
- int number_temporal_layers; /**< Number of temporal layers */
1796
+ /*!Number of spatial layers
1797
+ *
1798
+ * Valid range:
1799
+ * \li When using #AV1E_SET_SVC_REF_FRAME_CONFIG: [1, #AOM_MAX_SS_LAYERS]
1800
+ * \li When \em not using #AV1E_SET_SVC_REF_FRAME_CONFIG: [1, 3]
1801
+ */
1802
+ int number_spatial_layers;
1803
+ /*!Number of temporal layers
1804
+ *
1805
+ * Valid range:
1806
+ * \li When using #AV1E_SET_SVC_REF_FRAME_CONFIG: [1, #AOM_MAX_TS_LAYERS]
1807
+ * \li When \em not using #AV1E_SET_SVC_REF_FRAME_CONFIG: [1, 3]
1808
+ */
1809
+ int number_temporal_layers;
1739
1810
  int max_quantizers[AOM_MAX_LAYERS]; /**< Max Q for each layer */
1740
1811
  int min_quantizers[AOM_MAX_LAYERS]; /**< Min Q for each layer */
1741
1812
  int scaling_factor_num[AOM_MAX_SS_LAYERS]; /**< Scaling factor-numerator */
@@ -1746,7 +1817,7 @@ typedef struct aom_svc_params {
1746
1817
  int framerate_factor[AOM_MAX_TS_LAYERS];
1747
1818
  } aom_svc_params_t;
1748
1819
 
1749
- /*!brief Parameters for setting ref frame config */
1820
+ /*!\brief Parameters for setting ref frame config */
1750
1821
  typedef struct aom_svc_ref_frame_config {
1751
1822
  // Three arrays need to be set: reference[], ref_id[], refresh[].
1752
1823
  // reference[i]: is a boolean flag to indicate which of the 7 possible
@@ -1769,14 +1840,14 @@ typedef struct aom_svc_ref_frame_config {
1769
1840
  int refresh[8]; /**< Refresh flag for each of the 8 buffer slots. */
1770
1841
  } aom_svc_ref_frame_config_t;
1771
1842
 
1772
- /*!brief Parameters for setting ref frame compound prediction */
1843
+ /*!\brief Parameters for setting ref frame compound prediction */
1773
1844
  typedef struct aom_svc_ref_frame_comp_pred {
1774
1845
  // Use compound prediction for the ref_frame pairs GOLDEN_LAST (0),
1775
1846
  // LAST2_LAST (1), and ALTREF_LAST (2).
1776
1847
  int use_comp_pred[3]; /**<Compound reference flag. */
1777
1848
  } aom_svc_ref_frame_comp_pred_t;
1778
1849
 
1779
- /*!brief Frame drop modes for spatial/quality layer SVC */
1850
+ /*!\brief Frame drop modes for spatial/quality layer SVC */
1780
1851
  typedef enum {
1781
1852
  AOM_LAYER_DROP, /**< Any spatial layer can drop. */
1782
1853
  AOM_FULL_SUPERFRAME_DROP, /**< Only full superframe can drop. */
@@ -2279,6 +2350,16 @@ AOM_CTRL_USE_TYPE(AV1E_SET_POSTENCODE_DROP_RTC, int)
2279
2350
  AOM_CTRL_USE_TYPE(AV1E_SET_MAX_CONSEC_FRAME_DROP_MS_CBR, int)
2280
2351
  #define AOM_CTRL_AV1E_SET_MAX_CONSEC_FRAME_DROP_MS_CBR
2281
2352
 
2353
+ AOM_CTRL_USE_TYPE(AV1E_SET_ENABLE_LOW_COMPLEXITY_DECODE, unsigned int)
2354
+ #define AOM_CTRL_AV1E_SET_ENABLE_LOW_COMPLEXITY_DECODE
2355
+
2356
+ AOM_CTRL_USE_TYPE(AV1E_SET_SCREEN_CONTENT_DETECTION_MODE,
2357
+ int) /* aom_screen_detection_mode */
2358
+ #define AOM_CTRL_SET_SCREEN_CONTENT_DETECTION_MODE
2359
+
2360
+ AOM_CTRL_USE_TYPE(AV1E_SET_ENABLE_ADAPTIVE_SHARPNESS, unsigned int)
2361
+ #define AOM_CTRL_AV1E_SET_ENABLE_ADAPTIVE_SHARPNESS
2362
+
2282
2363
  /*!\endcond */
2283
2364
  /*! @} - end defgroup aom_encoder */
2284
2365
  #ifdef __cplusplus
package/include/expat.h CHANGED
@@ -42,21 +42,21 @@
42
42
  */
43
43
 
44
44
  #ifndef Expat_INCLUDED
45
- #define Expat_INCLUDED 1
45
+ # define Expat_INCLUDED 1
46
46
 
47
- #include <stdlib.h>
48
- #include "expat_external.h"
47
+ # include <stdlib.h>
48
+ # include "expat_external.h"
49
49
 
50
- #ifdef __cplusplus
50
+ # ifdef __cplusplus
51
51
  extern "C" {
52
- #endif
52
+ # endif
53
53
 
54
54
  struct XML_ParserStruct;
55
55
  typedef struct XML_ParserStruct *XML_Parser;
56
56
 
57
57
  typedef unsigned char XML_Bool;
58
- #define XML_TRUE ((XML_Bool)1)
59
- #define XML_FALSE ((XML_Bool)0)
58
+ # define XML_TRUE ((XML_Bool)1)
59
+ # define XML_FALSE ((XML_Bool)0)
60
60
 
61
61
  /* The XML_Status enum gives the possible return values for several
62
62
  API functions. The preprocessor #defines are included so this
@@ -73,11 +73,11 @@ typedef unsigned char XML_Bool;
73
73
  */
74
74
  enum XML_Status {
75
75
  XML_STATUS_ERROR = 0,
76
- #define XML_STATUS_ERROR XML_STATUS_ERROR
76
+ # define XML_STATUS_ERROR XML_STATUS_ERROR
77
77
  XML_STATUS_OK = 1,
78
- #define XML_STATUS_OK XML_STATUS_OK
78
+ # define XML_STATUS_OK XML_STATUS_OK
79
79
  XML_STATUS_SUSPENDED = 2
80
- #define XML_STATUS_SUSPENDED XML_STATUS_SUSPENDED
80
+ # define XML_STATUS_SUSPENDED XML_STATUS_SUSPENDED
81
81
  };
82
82
 
83
83
  enum XML_Error {
@@ -680,7 +680,7 @@ XMLPARSEAPI(void)
680
680
  XML_SetUserData(XML_Parser parser, void *userData);
681
681
 
682
682
  /* Returns the last value set by XML_SetUserData or NULL. */
683
- #define XML_GetUserData(parser) (*(void **)(parser))
683
+ # define XML_GetUserData(parser) (*(void **)(parser))
684
684
 
685
685
  /* This is equivalent to supplying an encoding argument to
686
686
  XML_ParserCreate. On success XML_SetEncoding returns non-zero,
@@ -752,7 +752,7 @@ XML_GetSpecifiedAttributeCount(XML_Parser parser);
752
752
  XMLPARSEAPI(int)
753
753
  XML_GetIdAttributeIndex(XML_Parser parser);
754
754
 
755
- #ifdef XML_ATTR_INFO
755
+ # ifdef XML_ATTR_INFO
756
756
  /* Source file byte offsets for the start and end of attribute names and values.
757
757
  The value indices are exclusive of surrounding quotes; thus in a UTF-8 source
758
758
  file an attribute value of "blah" will yield:
@@ -773,7 +773,7 @@ typedef struct {
773
773
  */
774
774
  XMLPARSEAPI(const XML_AttrInfo *)
775
775
  XML_GetAttributeInfo(XML_Parser parser);
776
- #endif
776
+ # endif
777
777
 
778
778
  /* Parses some input. Returns XML_STATUS_ERROR if a fatal error is
779
779
  detected. The last call to XML_Parse must have isFinal true; len
@@ -970,9 +970,9 @@ XMLPARSEAPI(const char *)
970
970
  XML_GetInputContext(XML_Parser parser, int *offset, int *size);
971
971
 
972
972
  /* For backwards compatibility with previous versions. */
973
- #define XML_GetErrorLineNumber XML_GetCurrentLineNumber
974
- #define XML_GetErrorColumnNumber XML_GetCurrentColumnNumber
975
- #define XML_GetErrorByteIndex XML_GetCurrentByteIndex
973
+ # define XML_GetErrorLineNumber XML_GetCurrentLineNumber
974
+ # define XML_GetErrorColumnNumber XML_GetCurrentColumnNumber
975
+ # define XML_GetErrorByteIndex XML_GetCurrentByteIndex
976
976
 
977
977
  /* Frees the content model passed to the element declaration handler */
978
978
  XMLPARSEAPI(void)
@@ -1032,7 +1032,10 @@ enum XML_FeatureEnum {
1032
1032
  XML_FEATURE_BILLION_LAUGHS_ATTACK_PROTECTION_MAXIMUM_AMPLIFICATION_DEFAULT,
1033
1033
  XML_FEATURE_BILLION_LAUGHS_ATTACK_PROTECTION_ACTIVATION_THRESHOLD_DEFAULT,
1034
1034
  /* Added in Expat 2.6.0. */
1035
- XML_FEATURE_GE
1035
+ XML_FEATURE_GE,
1036
+ /* Added in Expat 2.7.2. */
1037
+ XML_FEATURE_ALLOC_TRACKER_MAXIMUM_AMPLIFICATION_DEFAULT,
1038
+ XML_FEATURE_ALLOC_TRACKER_ACTIVATION_THRESHOLD_DEFAULT,
1036
1039
  /* Additional features must be added to the end of this enum. */
1037
1040
  };
1038
1041
 
@@ -1045,7 +1048,7 @@ typedef struct {
1045
1048
  XMLPARSEAPI(const XML_Feature *)
1046
1049
  XML_GetFeatureList(void);
1047
1050
 
1048
- #if defined(XML_DTD) || (defined(XML_GE) && XML_GE == 1)
1051
+ # if defined(XML_DTD) || (defined(XML_GE) && XML_GE == 1)
1049
1052
  /* Added in Expat 2.4.0 for XML_DTD defined and
1050
1053
  * added in Expat 2.6.0 for XML_GE == 1. */
1051
1054
  XMLPARSEAPI(XML_Bool)
@@ -1057,7 +1060,17 @@ XML_SetBillionLaughsAttackProtectionMaximumAmplification(
1057
1060
  XMLPARSEAPI(XML_Bool)
1058
1061
  XML_SetBillionLaughsAttackProtectionActivationThreshold(
1059
1062
  XML_Parser parser, unsigned long long activationThresholdBytes);
1060
- #endif
1063
+
1064
+ /* Added in Expat 2.7.2. */
1065
+ XMLPARSEAPI(XML_Bool)
1066
+ XML_SetAllocTrackerMaximumAmplification(XML_Parser parser,
1067
+ float maximumAmplificationFactor);
1068
+
1069
+ /* Added in Expat 2.7.2. */
1070
+ XMLPARSEAPI(XML_Bool)
1071
+ XML_SetAllocTrackerActivationThreshold(
1072
+ XML_Parser parser, unsigned long long activationThresholdBytes);
1073
+ # endif
1061
1074
 
1062
1075
  /* Added in Expat 2.6.0. */
1063
1076
  XMLPARSEAPI(XML_Bool)
@@ -1066,12 +1079,12 @@ XML_SetReparseDeferralEnabled(XML_Parser parser, XML_Bool enabled);
1066
1079
  /* Expat follows the semantic versioning convention.
1067
1080
  See https://semver.org
1068
1081
  */
1069
- #define XML_MAJOR_VERSION 2
1070
- #define XML_MINOR_VERSION 7
1071
- #define XML_MICRO_VERSION 1
1082
+ # define XML_MAJOR_VERSION 2
1083
+ # define XML_MINOR_VERSION 7
1084
+ # define XML_MICRO_VERSION 2
1072
1085
 
1073
- #ifdef __cplusplus
1086
+ # ifdef __cplusplus
1074
1087
  }
1075
- #endif
1088
+ # endif
1076
1089
 
1077
1090
  #endif /* not Expat_INCLUDED */
@@ -25,7 +25,7 @@
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 `getpagesize' function. */
28
+ /* Define to 1 if you have the 'getpagesize' function. */
29
29
  #define HAVE_GETPAGESIZE 1
30
30
 
31
31
  /* Define to 1 if you have the `getrandom' function. */
@@ -34,10 +34,10 @@
34
34
  /* Define to 1 if you have the <inttypes.h> header file. */
35
35
  #define HAVE_INTTYPES_H 1
36
36
 
37
- /* Define to 1 if you have the `bsd' library (-lbsd). */
37
+ /* Define to 1 if you have the 'bsd' library (-lbsd). */
38
38
  /* #undef HAVE_LIBBSD */
39
39
 
40
- /* Define to 1 if you have a working `mmap' system call. */
40
+ /* Define to 1 if you have a working 'mmap' system call. */
41
41
  #define HAVE_MMAP 1
42
42
 
43
43
  /* Define to 1 if you have the <stdint.h> header file. */
@@ -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.7.1"
86
+ #define PACKAGE_STRING "expat 2.7.2"
87
87
 
88
88
  /* Define to the one symbol short name of this package. */
89
89
  #define PACKAGE_TARNAME "expat"
@@ -92,15 +92,15 @@
92
92
  #define PACKAGE_URL ""
93
93
 
94
94
  /* Define to the version of this package. */
95
- #define PACKAGE_VERSION "2.7.1"
95
+ #define PACKAGE_VERSION "2.7.2"
96
96
 
97
- /* Define to 1 if all of the C90 standard headers exist (not just the ones
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
99
99
  backward compatibility; new code need not use it. */
100
100
  #define STDC_HEADERS 1
101
101
 
102
102
  /* Version number of package */
103
- #define VERSION "2.7.1"
103
+ #define VERSION "2.7.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). */
@@ -134,10 +134,10 @@
134
134
  /* Define to make XML Namespaces functionality available. */
135
135
  #define XML_NS 1
136
136
 
137
- /* Define to empty if `const' does not conform to ANSI C. */
137
+ /* Define to empty if 'const' does not conform to ANSI C. */
138
138
  /* #undef const */
139
139
 
140
- /* Define to `long int' if <sys/types.h> does not define. */
140
+ /* Define to 'long int' if <sys/types.h> does not define. */
141
141
  /* #undef off_t */
142
142
 
143
143
  #endif // ndef EXPAT_CONFIG_H
@@ -38,7 +38,7 @@
38
38
  */
39
39
 
40
40
  #ifndef Expat_External_INCLUDED
41
- #define Expat_External_INCLUDED 1
41
+ # define Expat_External_INCLUDED 1
42
42
 
43
43
  /* External API definitions */
44
44
 
@@ -64,12 +64,12 @@
64
64
  compiled with the cdecl calling convention as the default since
65
65
  system headers may assume the cdecl convention.
66
66
  */
67
- #ifndef XMLCALL
68
- # if defined(_MSC_VER)
69
- # define XMLCALL __cdecl
70
- # elif defined(__GNUC__) && defined(__i386) && ! defined(__INTEL_COMPILER)
71
- # define XMLCALL __attribute__((cdecl))
72
- # else
67
+ # ifndef XMLCALL
68
+ # if defined(_MSC_VER)
69
+ # define XMLCALL __cdecl
70
+ # elif defined(__GNUC__) && defined(__i386) && ! defined(__INTEL_COMPILER)
71
+ # define XMLCALL __attribute__((cdecl))
72
+ # else
73
73
  /* For any platform which uses this definition and supports more than
74
74
  one calling convention, we need to extend this definition to
75
75
  declare the convention used on that platform, if it's possible to
@@ -80,86 +80,87 @@
80
80
  pre-processor and how to specify the same calling convention as the
81
81
  platform's malloc() implementation.
82
82
  */
83
- # define XMLCALL
84
- # endif
85
- #endif /* not defined XMLCALL */
83
+ # define XMLCALL
84
+ # endif
85
+ # endif /* not defined XMLCALL */
86
86
 
87
- #if ! defined(XML_STATIC) && ! defined(XMLIMPORT)
88
- # ifndef XML_BUILDING_EXPAT
87
+ # if ! defined(XML_STATIC) && ! defined(XMLIMPORT)
88
+ # ifndef XML_BUILDING_EXPAT
89
89
  /* using Expat from an application */
90
90
 
91
- # if defined(_MSC_EXTENSIONS) && ! defined(__BEOS__) && ! defined(__CYGWIN__)
92
- # define XMLIMPORT __declspec(dllimport)
91
+ # if defined(_MSC_EXTENSIONS) && ! defined(__BEOS__) \
92
+ && ! defined(__CYGWIN__)
93
+ # define XMLIMPORT __declspec(dllimport)
94
+ # endif
95
+
93
96
  # endif
97
+ # endif /* not defined XML_STATIC */
94
98
 
99
+ # ifndef XML_ENABLE_VISIBILITY
100
+ # define XML_ENABLE_VISIBILITY 0
95
101
  # endif
96
- #endif /* not defined XML_STATIC */
97
-
98
- #ifndef XML_ENABLE_VISIBILITY
99
- # define XML_ENABLE_VISIBILITY 0
100
- #endif
101
102
 
102
- #if ! defined(XMLIMPORT) && XML_ENABLE_VISIBILITY
103
- # define XMLIMPORT __attribute__((visibility("default")))
104
- #endif
103
+ # if ! defined(XMLIMPORT) && XML_ENABLE_VISIBILITY
104
+ # define XMLIMPORT __attribute__((visibility("default")))
105
+ # endif
105
106
 
106
107
  /* If we didn't define it above, define it away: */
107
- #ifndef XMLIMPORT
108
- # define XMLIMPORT
109
- #endif
110
-
111
- #if defined(__GNUC__) \
112
- && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96))
113
- # define XML_ATTR_MALLOC __attribute__((__malloc__))
114
- #else
115
- # define XML_ATTR_MALLOC
116
- #endif
117
-
118
- #if defined(__GNUC__) \
119
- && ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
120
- # define XML_ATTR_ALLOC_SIZE(x) __attribute__((__alloc_size__(x)))
121
- #else
122
- # define XML_ATTR_ALLOC_SIZE(x)
123
- #endif
124
-
125
- #define XMLPARSEAPI(type) XMLIMPORT type XMLCALL
126
-
127
- #ifdef __cplusplus
128
- extern "C" {
129
- #endif
108
+ # ifndef XMLIMPORT
109
+ # define XMLIMPORT
110
+ # endif
111
+
112
+ # if defined(__GNUC__) \
113
+ && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96))
114
+ # define XML_ATTR_MALLOC __attribute__((__malloc__))
115
+ # else
116
+ # define XML_ATTR_MALLOC
117
+ # endif
130
118
 
131
- #ifdef XML_UNICODE_WCHAR_T
132
- # ifndef XML_UNICODE
133
- # define XML_UNICODE
119
+ # if defined(__GNUC__) \
120
+ && ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
121
+ # define XML_ATTR_ALLOC_SIZE(x) __attribute__((__alloc_size__(x)))
122
+ # else
123
+ # define XML_ATTR_ALLOC_SIZE(x)
134
124
  # endif
135
- # if defined(__SIZEOF_WCHAR_T__) && (__SIZEOF_WCHAR_T__ != 2)
136
- # error "sizeof(wchar_t) != 2; Need -fshort-wchar for both Expat and libc"
125
+
126
+ # define XMLPARSEAPI(type) XMLIMPORT type XMLCALL
127
+
128
+ # ifdef __cplusplus
129
+ extern "C" {
137
130
  # endif
138
- #endif
139
131
 
140
- #ifdef XML_UNICODE /* Information is UTF-16 encoded. */
141
132
  # ifdef XML_UNICODE_WCHAR_T
133
+ # ifndef XML_UNICODE
134
+ # define XML_UNICODE
135
+ # endif
136
+ # if defined(__SIZEOF_WCHAR_T__) && (__SIZEOF_WCHAR_T__ != 2)
137
+ # error "sizeof(wchar_t) != 2; Need -fshort-wchar for both Expat and libc"
138
+ # endif
139
+ # endif
140
+
141
+ # ifdef XML_UNICODE /* Information is UTF-16 encoded. */
142
+ # ifdef XML_UNICODE_WCHAR_T
142
143
  typedef wchar_t XML_Char;
143
144
  typedef wchar_t XML_LChar;
144
- # else
145
+ # else
145
146
  typedef unsigned short XML_Char;
146
147
  typedef char XML_LChar;
147
- # endif /* XML_UNICODE_WCHAR_T */
148
- #else /* Information is UTF-8 encoded. */
148
+ # endif /* XML_UNICODE_WCHAR_T */
149
+ # else /* Information is UTF-8 encoded. */
149
150
  typedef char XML_Char;
150
151
  typedef char XML_LChar;
151
- #endif /* XML_UNICODE */
152
+ # endif /* XML_UNICODE */
152
153
 
153
- #ifdef XML_LARGE_SIZE /* Use large integers for file/stream positions. */
154
+ # ifdef XML_LARGE_SIZE /* Use large integers for file/stream positions. */
154
155
  typedef long long XML_Index;
155
156
  typedef unsigned long long XML_Size;
156
- #else
157
+ # else
157
158
  typedef long XML_Index;
158
159
  typedef unsigned long XML_Size;
159
- #endif /* XML_LARGE_SIZE */
160
+ # endif /* XML_LARGE_SIZE */
160
161
 
161
- #ifdef __cplusplus
162
+ # ifdef __cplusplus
162
163
  }
163
- #endif
164
+ # endif
164
165
 
165
166
  #endif /* not Expat_External_INCLUDED */
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * ANSI-specific configuration file (specification only).
6
6
  *
7
- * Copyright (C) 1996-2024 by
7
+ * Copyright (C) 1996-2025 by
8
8
  * David Turner, Robert Wilhelm, and Werner Lemberg.
9
9
  *
10
10
  * This file is part of the FreeType project, and may only be used,
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * Build macros of the FreeType 2 library.
6
6
  *
7
- * Copyright (C) 1996-2024 by
7
+ * Copyright (C) 1996-2025 by
8
8
  * David Turner, Robert Wilhelm, and Werner Lemberg.
9
9
  *
10
10
  * This file is part of the FreeType project, and may only be used,