@revizly/sharp-libvips-dev 1.0.40 → 1.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/include/archive.h 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/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
@@ -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
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.41",
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,12 +1,12 @@
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
8
  "expat": "2.8.1",
9
- "ffi": "3.5.2",
9
+ "ffi": "3.6.0",
10
10
  "fontconfig": "2.18.1",
11
11
  "freetype": "2.14.3",
12
12
  "fribidi": "1.0.16",
@@ -23,8 +23,8 @@
23
23
  "proxy-libintl": "0.5",
24
24
  "rsvg": "2.62.3",
25
25
  "svt-av1": "4.1.0",
26
- "tiff": "072ca92",
27
- "uhdr": "13a058f",
26
+ "tiff": "627f9f5",
27
+ "uhdr": "1acdbed",
28
28
  "vips": "8.18.3",
29
29
  "webp": "1.6.0",
30
30
  "xml2": "2.15.3",