@revizly/sharp-libvips-dev 1.0.51 → 1.0.53
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/cairo/cairo-version.h +1 -1
- package/include/cairo/cairo.h +1 -1
- package/include/expat.h +77 -26
- package/include/expat_config.h +3 -7
- package/include/expat_external.h +15 -0
- package/include/fontconfig/fontconfig.h +1 -1
- package/include/fribidi/fribidi-arabic.h +1 -2
- package/include/fribidi/fribidi-bidi-types.h +8 -2
- package/include/fribidi/fribidi-brackets.h +1 -1
- package/include/fribidi/fribidi-char-sets.h +2 -2
- package/include/fribidi/fribidi-config.h +2 -2
- package/include/fribidi/fribidi-joining-types.h +2 -2
- package/include/fribidi/fribidi-unicode-version.h +2 -2
- package/include/fribidi/fribidi.h +2 -2
- package/include/glib-2.0/glib/gutils.h +1 -1
- package/include/harfbuzz/hb-common.h +19 -0
- package/include/harfbuzz/hb-draw.h +113 -0
- package/include/harfbuzz/hb-paint.h +113 -0
- package/include/harfbuzz/hb-script-list.h +10 -0
- package/include/harfbuzz/hb-version.h +2 -2
- package/include/libheif/heif_context.h +7 -4
- package/include/libheif/heif_encoding.h +5 -0
- package/include/libheif/heif_error.h +7 -0
- package/include/libheif/heif_image.h +19 -0
- package/include/libheif/heif_tiling.h +12 -0
- package/include/libheif/heif_version.h +2 -2
- package/include/libpng16/png.h +7 -7
- package/include/libpng16/pngconf.h +1 -1
- package/include/libpng16/pnglibconf.h +1 -1
- package/include/librsvg-2.0/librsvg/rsvg-version.h +2 -2
- package/include/librsvg-2.0/librsvg/rsvg.h +4 -3
- package/include/png.h +7 -7
- package/include/pngconf.h +1 -1
- package/include/pnglibconf.h +1 -1
- package/include/svt-av1/EbConfigMacros.h +234 -3
- package/include/svt-av1/EbDebugMacros.h +8 -2
- package/include/svt-av1/EbSvtAv1.h +49 -1
- package/include/svt-av1/EbSvtAv1Enc.h +150 -38
- package/include/vips/version.h +4 -4
- package/package.json +1 -1
- package/versions.json +11 -11
|
@@ -26,18 +26,105 @@
|
|
|
26
26
|
#define RTC_BUILD 0
|
|
27
27
|
#endif
|
|
28
28
|
|
|
29
|
+
#ifndef MINIMAL_BUILD
|
|
30
|
+
#define MINIMAL_BUILD 0
|
|
31
|
+
#endif
|
|
32
|
+
|
|
29
33
|
#if RTC_BUILD
|
|
34
|
+
|
|
35
|
+
#if MINIMAL_BUILD
|
|
36
|
+
#define MIN_ENC_PRESET ENC_M9
|
|
37
|
+
|
|
38
|
+
#ifndef CONFIG_LOG_QUIET
|
|
30
39
|
#define CONFIG_LOG_QUIET 1
|
|
40
|
+
#endif
|
|
31
41
|
|
|
32
|
-
|
|
33
|
-
|
|
42
|
+
// Below features are disabled based on 2 assumptions:
|
|
43
|
+
// 1. 8-bit input/processing only
|
|
44
|
+
// 2. MIN_ENC_PRESET=ENC_M9
|
|
34
45
|
|
|
46
|
+
#ifndef CONFIG_ENABLE_QUANT_MATRIX
|
|
35
47
|
#define CONFIG_ENABLE_QUANT_MATRIX 0
|
|
48
|
+
#endif
|
|
49
|
+
#ifndef CONFIG_ENABLE_OBMC
|
|
36
50
|
#define CONFIG_ENABLE_OBMC 0
|
|
51
|
+
#endif
|
|
52
|
+
#ifndef CONFIG_ENABLE_FILM_GRAIN
|
|
37
53
|
#define CONFIG_ENABLE_FILM_GRAIN 0
|
|
54
|
+
#endif
|
|
55
|
+
#ifndef CONFIG_ENABLE_HIGH_BIT_DEPTH
|
|
38
56
|
#define CONFIG_ENABLE_HIGH_BIT_DEPTH 0
|
|
39
57
|
#endif
|
|
58
|
+
#ifndef CONFIG_ENABLE_RESTORATION
|
|
59
|
+
#define CONFIG_ENABLE_RESTORATION 0
|
|
60
|
+
#endif
|
|
61
|
+
#ifndef CONFIG_ENABLE_GLOBAL_MOTION
|
|
62
|
+
#define CONFIG_ENABLE_GLOBAL_MOTION 0
|
|
63
|
+
#endif
|
|
64
|
+
#ifndef CONFIG_ENABLE_INTER_COMPOUND
|
|
65
|
+
#define CONFIG_ENABLE_INTER_COMPOUND 0
|
|
66
|
+
#endif
|
|
67
|
+
#ifndef CONFIG_ENABLE_INTER_INTRA
|
|
68
|
+
#define CONFIG_ENABLE_INTER_INTRA 0
|
|
69
|
+
#endif
|
|
70
|
+
#ifndef CONFIG_ENABLE_RANDOM_ACCESS
|
|
71
|
+
#define CONFIG_ENABLE_RANDOM_ACCESS 0
|
|
72
|
+
#endif
|
|
73
|
+
#ifndef CONFIG_ENABLE_FULL_SUBPEL
|
|
74
|
+
#define CONFIG_ENABLE_FULL_SUBPEL 0
|
|
75
|
+
#endif
|
|
76
|
+
#ifndef CONFIG_ENABLE_FILTER_INTRA
|
|
77
|
+
#define CONFIG_ENABLE_FILTER_INTRA 0
|
|
78
|
+
#endif
|
|
79
|
+
#ifndef CONFIG_ENABLE_SUPERRES
|
|
80
|
+
#define CONFIG_ENABLE_SUPERRES 0
|
|
81
|
+
#endif
|
|
82
|
+
#ifndef CONFIG_ENABLE_PALETTE
|
|
83
|
+
#define CONFIG_ENABLE_PALETTE 0
|
|
84
|
+
#endif
|
|
85
|
+
#ifndef CONFIG_ENABLE_INTRA_BC
|
|
86
|
+
#define CONFIG_ENABLE_INTRA_BC 0
|
|
87
|
+
#endif
|
|
88
|
+
#ifndef CONFIG_ENABLE_LOSSLESS
|
|
89
|
+
#define CONFIG_ENABLE_LOSSLESS 0
|
|
90
|
+
#endif
|
|
91
|
+
#ifndef CONFIG_ENABLE_TEMPORAL_FILTERING
|
|
92
|
+
#define CONFIG_ENABLE_TEMPORAL_FILTERING 0
|
|
93
|
+
#endif
|
|
94
|
+
#ifndef CONFIG_ENABLE_WARP
|
|
95
|
+
#define CONFIG_ENABLE_WARP 0
|
|
96
|
+
#endif
|
|
97
|
+
#ifndef CONFIG_ENABLE_TPL
|
|
98
|
+
#define CONFIG_ENABLE_TPL 0
|
|
99
|
+
#endif
|
|
100
|
+
#ifndef CONFIG_ENABLE_VMAF
|
|
101
|
+
#define CONFIG_ENABLE_VMAF 0
|
|
102
|
+
#endif
|
|
103
|
+
#ifndef CONFIG_ENABLE_RESIZE
|
|
104
|
+
#define CONFIG_ENABLE_RESIZE 0
|
|
105
|
+
#endif
|
|
106
|
+
#ifndef CONFIG_ENABLE_TX_PF_N2
|
|
107
|
+
#define CONFIG_ENABLE_TX_PF_N2 0
|
|
108
|
+
#endif
|
|
109
|
+
#ifndef CONFIG_ENABLE_NON_DCT_LARGE_TX
|
|
110
|
+
#define CONFIG_ENABLE_NON_DCT_LARGE_TX 0
|
|
111
|
+
#endif
|
|
112
|
+
#ifndef CONFIG_ENABLE_MD_CDF_UPDATE
|
|
113
|
+
#define CONFIG_ENABLE_MD_CDF_UPDATE 0
|
|
114
|
+
#endif
|
|
115
|
+
#ifndef CONFIG_ENABLE_DLF_SEARCH
|
|
116
|
+
#define CONFIG_ENABLE_DLF_SEARCH 0
|
|
117
|
+
#endif
|
|
118
|
+
#ifndef CONFIG_RTC_SB64
|
|
119
|
+
#define CONFIG_RTC_SB64 1
|
|
120
|
+
#endif
|
|
121
|
+
#endif // MINIMAL_BUILD
|
|
40
122
|
|
|
123
|
+
#endif
|
|
124
|
+
|
|
125
|
+
#ifndef MIN_ENC_PRESET
|
|
126
|
+
#define MIN_ENC_PRESET ENC_MRS
|
|
127
|
+
#endif
|
|
41
128
|
|
|
42
129
|
// When set to 1, EB_CPU_FLAGS_NEON is unconditionally set for all ARCH_AARCH64
|
|
43
130
|
// builds, i.e. requiring Neon for library to work. This also allows linker to
|
|
@@ -45,7 +132,12 @@
|
|
|
45
132
|
// reduce final binary size.
|
|
46
133
|
// Neon is mandatory in Armv8.0-A (AArch64), which is our minimum Arm target,
|
|
47
134
|
// so it is guaranteed for deployment builds, however tests use C functions,
|
|
48
|
-
// and hence for
|
|
135
|
+
// and hence for unit-test builds (SVT_AV1_UNIT_TEST_BUILD, set by CMake when
|
|
136
|
+
// BUILD_TESTING is ON) this must stay at 0.
|
|
137
|
+
#if defined(ARCH_AARCH64) && !defined(SVT_AV1_UNIT_TEST_BUILD)
|
|
138
|
+
#define CONFIG_ARM_NEON_IS_GUARANTEED 1
|
|
139
|
+
#endif
|
|
140
|
+
|
|
49
141
|
#ifndef CONFIG_ARM_NEON_IS_GUARANTEED
|
|
50
142
|
#define CONFIG_ARM_NEON_IS_GUARANTEED 0
|
|
51
143
|
#endif
|
|
@@ -55,6 +147,10 @@
|
|
|
55
147
|
// processors since support it.
|
|
56
148
|
// You can set it to 1 to reduce binary size if deployment platforms are
|
|
57
149
|
// guaranteed to be not older than Haswell.
|
|
150
|
+
#if 0
|
|
151
|
+
#define CONFIG_X86_AVX2_IS_GUARANTEED 0
|
|
152
|
+
#endif
|
|
153
|
+
|
|
58
154
|
#ifndef CONFIG_X86_AVX2_IS_GUARANTEED
|
|
59
155
|
#define CONFIG_X86_AVX2_IS_GUARANTEED 0
|
|
60
156
|
#endif
|
|
@@ -79,6 +175,141 @@
|
|
|
79
175
|
#define CONFIG_ENABLE_HIGH_BIT_DEPTH 1
|
|
80
176
|
#endif
|
|
81
177
|
|
|
178
|
+
#ifndef CONFIG_ENABLE_RESTORATION
|
|
179
|
+
#define CONFIG_ENABLE_RESTORATION 1
|
|
180
|
+
#endif
|
|
181
|
+
|
|
182
|
+
#ifndef CONFIG_ENABLE_GLOBAL_MOTION
|
|
183
|
+
#define CONFIG_ENABLE_GLOBAL_MOTION 1
|
|
184
|
+
#endif
|
|
185
|
+
|
|
186
|
+
#ifndef CONFIG_ENABLE_INTER_COMPOUND
|
|
187
|
+
#define CONFIG_ENABLE_INTER_COMPOUND 1
|
|
188
|
+
#endif
|
|
189
|
+
|
|
190
|
+
#ifndef CONFIG_ENABLE_INTER_INTRA
|
|
191
|
+
#define CONFIG_ENABLE_INTER_INTRA 1
|
|
192
|
+
#endif
|
|
193
|
+
|
|
194
|
+
#ifndef CONFIG_ENABLE_RANDOM_ACCESS
|
|
195
|
+
#define CONFIG_ENABLE_RANDOM_ACCESS 1
|
|
196
|
+
#endif
|
|
197
|
+
|
|
198
|
+
#ifndef CONFIG_ENABLE_FULL_SUBPEL
|
|
199
|
+
#define CONFIG_ENABLE_FULL_SUBPEL 1
|
|
200
|
+
#endif
|
|
201
|
+
|
|
202
|
+
#ifndef CONFIG_ENABLE_FILTER_INTRA
|
|
203
|
+
#define CONFIG_ENABLE_FILTER_INTRA 1
|
|
204
|
+
#endif
|
|
205
|
+
|
|
206
|
+
#ifndef CONFIG_ENABLE_SUPERRES
|
|
207
|
+
#define CONFIG_ENABLE_SUPERRES 1
|
|
208
|
+
#endif
|
|
209
|
+
|
|
210
|
+
#ifndef CONFIG_ENABLE_PALETTE
|
|
211
|
+
#define CONFIG_ENABLE_PALETTE 1
|
|
212
|
+
#endif
|
|
213
|
+
#ifndef CONFIG_ENABLE_INTRA_BC
|
|
214
|
+
#define CONFIG_ENABLE_INTRA_BC 1
|
|
215
|
+
#endif
|
|
216
|
+
|
|
217
|
+
#ifndef CONFIG_ENABLE_LOSSLESS
|
|
218
|
+
#define CONFIG_ENABLE_LOSSLESS 1
|
|
219
|
+
#endif
|
|
220
|
+
|
|
221
|
+
#ifndef CONFIG_ENABLE_TEMPORAL_FILTERING
|
|
222
|
+
#define CONFIG_ENABLE_TEMPORAL_FILTERING 1
|
|
223
|
+
#endif
|
|
224
|
+
|
|
225
|
+
#ifndef CONFIG_ENABLE_WARP
|
|
226
|
+
#define CONFIG_ENABLE_WARP 1
|
|
227
|
+
#endif
|
|
228
|
+
|
|
229
|
+
#ifndef CONFIG_ENABLE_TPL
|
|
230
|
+
#define CONFIG_ENABLE_TPL 1
|
|
231
|
+
#endif
|
|
232
|
+
|
|
233
|
+
#ifndef CONFIG_ENABLE_VMAF
|
|
234
|
+
#define CONFIG_ENABLE_VMAF 1
|
|
235
|
+
#endif
|
|
236
|
+
|
|
237
|
+
#ifndef CONFIG_ENABLE_RESIZE
|
|
238
|
+
#define CONFIG_ENABLE_RESIZE 1
|
|
239
|
+
#endif
|
|
240
|
+
|
|
241
|
+
#ifndef CONFIG_ENABLE_TX_PF_N2
|
|
242
|
+
#define CONFIG_ENABLE_TX_PF_N2 1
|
|
243
|
+
#endif
|
|
244
|
+
|
|
245
|
+
#ifndef CONFIG_ENABLE_NON_DCT_LARGE_TX
|
|
246
|
+
#define CONFIG_ENABLE_NON_DCT_LARGE_TX 1
|
|
247
|
+
#endif
|
|
248
|
+
|
|
249
|
+
#ifndef CONFIG_ENABLE_MD_CDF_UPDATE
|
|
250
|
+
#define CONFIG_ENABLE_MD_CDF_UPDATE 1
|
|
251
|
+
#endif
|
|
252
|
+
|
|
253
|
+
#ifndef CONFIG_ENABLE_DLF_SEARCH
|
|
254
|
+
#define CONFIG_ENABLE_DLF_SEARCH 1
|
|
255
|
+
#endif
|
|
256
|
+
|
|
257
|
+
// RTC forces super_block_size = 64 (enc_handle.c), so 128-wide blocks never occur and the 128-wide
|
|
258
|
+
// variance / sub-pel variance / SAD kernels are never dispatched. When set, their RTCD registration
|
|
259
|
+
// is dropped and LTO strips them. Bit-exact at SB=64.
|
|
260
|
+
#ifndef CONFIG_RTC_SB64
|
|
261
|
+
#define CONFIG_RTC_SB64 0
|
|
262
|
+
#endif
|
|
263
|
+
|
|
264
|
+
// Fast (non-bit-exact) all-int16 forward transforms for the LBD path: every
|
|
265
|
+
// two-product cospi butterfly uses per-product vqrdmulhq_s16 instead of the
|
|
266
|
+
// widening multiply. ~3x fewer instructions; tiny rounding error vs the
|
|
267
|
+
// bit-exact int16 path. Guarded so a build picks exactly one path.
|
|
268
|
+
#ifndef CONFIG_ENABLE_FAST_LBD_TXFM
|
|
269
|
+
#define CONFIG_ENABLE_FAST_LBD_TXFM 0
|
|
270
|
+
#endif
|
|
271
|
+
|
|
272
|
+
// Single-thread kernel dispatch: at lp=1, bypass thread creation and run all
|
|
273
|
+
// pipeline kernels cooperatively on one thread. Eliminates 15 context switches
|
|
274
|
+
// per frame and all inter-stage semaphore/mutex overhead.
|
|
275
|
+
#ifndef CONFIG_SINGLE_THREAD_KERNEL
|
|
276
|
+
#define CONFIG_SINGLE_THREAD_KERNEL 1
|
|
277
|
+
#endif
|
|
278
|
+
|
|
279
|
+
// Native 8-bit CDEF path (interior blocks in uint8 lanes). NEON, and x86 from
|
|
280
|
+
// SSE4.1 up.
|
|
281
|
+
#if defined(ARCH_AARCH64) || defined(ARCH_X86_64)
|
|
282
|
+
#define CDEF_8BITS_PATH 1
|
|
283
|
+
#else
|
|
284
|
+
#define CDEF_8BITS_PATH 0
|
|
285
|
+
#endif
|
|
286
|
+
|
|
287
|
+
// When high-bit-depth (10/12-bit) support is compiled out, fold the effective encoder bit depth to
|
|
288
|
+
// the compile-time constant EB_EIGHT_BIT so that `bit_depth > EB_EIGHT_BIT` (and derived 16-bit)
|
|
289
|
+
// branches become dead and are eliminated by the optimizer -- no per-site #if guards, no empty ifs.
|
|
290
|
+
// SVT_EFFECTIVE_* read the effective value in an expression; SVT_FOLD_* pin a local to it in place
|
|
291
|
+
// (a no-op when HBD is enabled, so it never becomes a self-assignment).
|
|
292
|
+
#if CONFIG_ENABLE_HIGH_BIT_DEPTH
|
|
293
|
+
#define SVT_EFFECTIVE_BIT_DEPTH(bit_depth) (bit_depth)
|
|
294
|
+
#define SVT_EFFECTIVE_IS_16BIT_PIPELINE(v) (v)
|
|
295
|
+
#define SVT_EFFECTIVE_HBD_MD(v) (v)
|
|
296
|
+
#define SVT_FOLD_HBD_MD(hbd_md) ((void)0)
|
|
297
|
+
#define SVT_FOLD_BIT_DEPTH(bit_depth) ((void)0)
|
|
298
|
+
#else
|
|
299
|
+
// The dead ternary branch keeps the argument "used" (avoids -Wunused on locals that only feed this
|
|
300
|
+
// macro) while still folding to a compile-time constant so branches are eliminated by the optimizer.
|
|
301
|
+
#define SVT_EFFECTIVE_BIT_DEPTH(bit_depth) (0 ? (bit_depth) : EB_EIGHT_BIT)
|
|
302
|
+
#define SVT_EFFECTIVE_IS_16BIT_PIPELINE(v) (0 ? (v) : 0)
|
|
303
|
+
#define SVT_EFFECTIVE_HBD_MD(v) (0 ? (v) : 0)
|
|
304
|
+
#define SVT_FOLD_HBD_MD(hbd_md) ((hbd_md) = 0)
|
|
305
|
+
#define SVT_FOLD_BIT_DEPTH(bit_depth) ((bit_depth) = EB_EIGHT_BIT)
|
|
306
|
+
#endif
|
|
307
|
+
|
|
82
308
|
// clang-format on
|
|
83
309
|
|
|
310
|
+
// RTC-minimal is always rtc-tuned and never all-intra; fold these to compile-time constants so the
|
|
311
|
+
// _default/_allintra signal-derivation variants dead-code-eliminate.
|
|
312
|
+
#define SVT_RTC_TUNE(scs) (RTC_BUILD ? true : (scs)->static_config.rtc)
|
|
313
|
+
#define SVT_ALLINTRA(scs) (RTC_BUILD ? false : (scs)->allintra)
|
|
314
|
+
|
|
84
315
|
#endif // EbConfigMacros_h
|
|
@@ -34,13 +34,17 @@
|
|
|
34
34
|
extern "C" {
|
|
35
35
|
#endif // __cplusplus
|
|
36
36
|
|
|
37
|
+
#define FTR_RTC_INTER_PALETTE 1 // Palette on RTC inter-frame intra blocks (screen content, M7-M8); libaom-RT force_palette_test parity. Frame-idle gated post-ME (md-config stage) plus a per-block ME-residual floor at candidate injection.
|
|
38
|
+
|
|
37
39
|
//FOR DEBUGGING - Do not remove
|
|
40
|
+
|
|
41
|
+
|
|
38
42
|
#define LOG_ENC_DONE 0 // log encoder job one
|
|
39
43
|
#define DEBUG_TPL 0 // Prints to debug TPL
|
|
40
44
|
#define DETAILED_FRAME_OUTPUT 0 // Prints detailed frame output from the library for debugging
|
|
41
45
|
#define DEBUG_BUFFERS 0 // Print process count and segments info
|
|
42
|
-
|
|
43
|
-
#define TUNE_CQP_CHROMA_SSIM
|
|
46
|
+
|
|
47
|
+
#define TUNE_CQP_CHROMA_SSIM 0 // Tune CQP qp scaling towards improved chroma and SSIM BDR
|
|
44
48
|
|
|
45
49
|
#define MIN_PIC_PARALLELIZATION 0 // Use the minimum amount of picture parallelization
|
|
46
50
|
#define SRM_REPORT 0 // Report SRM status
|
|
@@ -51,8 +55,10 @@ extern "C" {
|
|
|
51
55
|
#define FTR_KF_ON_FLY_SAMPLE 0 // Sample code to signal KF
|
|
52
56
|
#define FTR_RES_ON_FLY_SAMPLE 0 // Sample functions to change the resolution on the fly
|
|
53
57
|
#define FTR_RATE_ON_FLY_SAMPLE 0 // Sample functions to change bit rate
|
|
58
|
+
#define FTR_PRESET_ON_FLY_SAMPLE 0 // Sample functions to change preset on the fly
|
|
54
59
|
#define FTR_FRAME_RATE_ON_FLY_SAMPLE 0 // Sample functions to change frame rate
|
|
55
60
|
#define FTR_PER_FRAME_QUALITY_SAMPLE 0 // Sample functions to compute PSNR per frame
|
|
61
|
+
#define FTR_MG_SIZE_ON_FLY_SAMPLE 0 // Sample functions to change mini-GOP size on the fly
|
|
56
62
|
#endif
|
|
57
63
|
// Super-resolution debugging code
|
|
58
64
|
#define DEBUG_SCALING 0
|
|
@@ -26,7 +26,7 @@ struct SvtMetadataArray;
|
|
|
26
26
|
|
|
27
27
|
// API Version
|
|
28
28
|
#define SVT_AV1_VERSION_MAJOR 4
|
|
29
|
-
#define SVT_AV1_VERSION_MINOR
|
|
29
|
+
#define SVT_AV1_VERSION_MINOR 2
|
|
30
30
|
#define SVT_AV1_VERSION_PATCHLEVEL 0
|
|
31
31
|
|
|
32
32
|
#define SVT_AV1_CHECK_VERSION(major, minor, patch) \
|
|
@@ -244,6 +244,11 @@ typedef enum {
|
|
|
244
244
|
RATE_CHANGE_EVENT, // Rate change data per picture
|
|
245
245
|
FRAME_RATE_CHANGE_EVENT, // Frame rate change data per picture
|
|
246
246
|
COMPUTE_QUALITY_EVENT, // Compute quality per frame
|
|
247
|
+
PRESET_CHANGE_EVENT, // Preset (enc_mode) change data per picture
|
|
248
|
+
REF_STORE_EVENT, // Ref-frame management: STORE current frame in DPB with pic_id (payload: SvtAv1RefFrameCmd)
|
|
249
|
+
REF_CLEAR_EVENT, // Ref-frame management: release a previously STOREd pic_id (payload: SvtAv1RefFrameCmd)
|
|
250
|
+
REF_USE_EVENT, // Ref-frame management: predict current frame from a STOREd ref (payload: SvtAv1RefFrameCmd)
|
|
251
|
+
MG_SIZE_CHANGE_EVENT, //MG size change data per picture
|
|
247
252
|
PRIVATE_DATA_TYPES // end of private data types
|
|
248
253
|
} PrivDataType;
|
|
249
254
|
|
|
@@ -289,12 +294,55 @@ typedef struct SvtAv1RateInfo {
|
|
|
289
294
|
uint32_t target_bit_rate;
|
|
290
295
|
} SvtAv1RateInfo;
|
|
291
296
|
|
|
297
|
+
// Ref-frame management API — application-controlled DPB stores.
|
|
298
|
+
//
|
|
299
|
+
// New EbPrivDataNode event types (REF_STORE_EVENT, REF_USE_EVENT,
|
|
300
|
+
// REF_CLEAR_EVENT) let an application STORE encoded frames into the AV1
|
|
301
|
+
// DPB as long-term references, then USE a recovery frame to predict
|
|
302
|
+
// only from a STOREd anchor. Designed for RTC error-recovery: cheaper
|
|
303
|
+
// than a full keyframe when one is lost.
|
|
304
|
+
//
|
|
305
|
+
// At-a-glance contract:
|
|
306
|
+
// - Enable: set EbSvtAv1EncConfiguration::max_managed_refs in [1..4].
|
|
307
|
+
// - Per-event payload: SvtAv1RefFrameCmd { uint32_t pic_id; }
|
|
308
|
+
// (one STORE + one CLEAR + one USE max per input; pic_id != 0).
|
|
309
|
+
// - Required encoder config: pred_structure == LOW_DELAY,
|
|
310
|
+
// rate_control_mode == CBR, hierarchical_levels in {0,1,2}.
|
|
311
|
+
// - Events apply only on base-layer (temporal_layer_index == 0) inputs.
|
|
312
|
+
// - Key frames implicitly release all anchors.
|
|
313
|
+
// - Pre-condition violations either FAIL-HARD (returns
|
|
314
|
+
// EB_ErrorBadParameter, stamps EOS on the buffer) or ERROR + DROP
|
|
315
|
+
// (logs SVT_ERROR, no bitstream effect). The application is
|
|
316
|
+
// expected to maintain its own anchor-state model to avoid
|
|
317
|
+
// ERROR + DROP paths.
|
|
318
|
+
//
|
|
319
|
+
// Full workflow, configuration constraints, error-handling matrix,
|
|
320
|
+
// encoder-side mrp_level override mechanics, and memory-overhead notes:
|
|
321
|
+
// see src/Docs/Appendix-Ref-Frame-Management.md
|
|
322
|
+
|
|
323
|
+
// Payload for the three ref-frame management events (REF_STORE_EVENT,
|
|
324
|
+
// REF_CLEAR_EVENT, REF_USE_EVENT). All three share the same single-field
|
|
325
|
+
// layout — only the EbPrivDataNode::node_type distinguishes them.
|
|
326
|
+
typedef struct SvtAv1RefFrameCmd {
|
|
327
|
+
uint32_t pic_id; // application-chosen non-zero id; 0 is the "no event" sentinel
|
|
328
|
+
} SvtAv1RefFrameCmd;
|
|
329
|
+
|
|
292
330
|
typedef struct SvtAv1FrameRateInfo {
|
|
293
331
|
// Sequence frame rate which over writes the sequence frame rate.
|
|
294
332
|
uint32_t frame_rate_numerator;
|
|
295
333
|
uint32_t frame_rate_denominator;
|
|
296
334
|
} SvtAv1FrameRateInfo;
|
|
297
335
|
|
|
336
|
+
typedef struct SvtAv1PresetInfo {
|
|
337
|
+
// New encoder preset (enc_mode) to apply from this frame onwards.
|
|
338
|
+
int8_t enc_mode;
|
|
339
|
+
} SvtAv1PresetInfo;
|
|
340
|
+
|
|
341
|
+
typedef struct SvtAv1MgSizeInfo {
|
|
342
|
+
// New hierarchical levels to apply from this frame onwards.
|
|
343
|
+
uint32_t hierarchical_levels;
|
|
344
|
+
} SvtAv1MgSizeInfo;
|
|
345
|
+
|
|
298
346
|
typedef struct SvtAv1ComputeQualityInfo {
|
|
299
347
|
bool compute_psnr;
|
|
300
348
|
bool compute_ssim;
|
|
@@ -218,6 +218,10 @@ typedef struct EbSvtAv1EncConfiguration {
|
|
|
218
218
|
* Min value is -3.
|
|
219
219
|
* Max value is 13.
|
|
220
220
|
* Default is 4.
|
|
221
|
+
*
|
|
222
|
+
* When PRESET_CHANGE_EVENT is used to change the preset on the fly, this
|
|
223
|
+
* value is served as minimum possible preset value. The actual preset value
|
|
224
|
+
* is stored in pcs->enc_mode.
|
|
221
225
|
*/
|
|
222
226
|
int8_t enc_mode;
|
|
223
227
|
|
|
@@ -311,9 +315,9 @@ typedef struct EbSvtAv1EncConfiguration {
|
|
|
311
315
|
|
|
312
316
|
/**
|
|
313
317
|
* @brief Encoder color format.
|
|
314
|
-
*
|
|
318
|
+
* YUV420 (Main Profile) and YUV444 (High Profile) are supported.
|
|
315
319
|
*
|
|
316
|
-
*
|
|
320
|
+
* Supported values are YUV420 and YUV444.
|
|
317
321
|
* Max is YUV444.
|
|
318
322
|
* Default is YUV420.
|
|
319
323
|
*/
|
|
@@ -325,6 +329,8 @@ typedef struct EbSvtAv1EncConfiguration {
|
|
|
325
329
|
* Min is MAIN_PROFILE.
|
|
326
330
|
* Max is PROFESSIONAL_PROFILE.
|
|
327
331
|
* Default is MAIN_PROFILE.
|
|
332
|
+
* MAIN_PROFILE is automatically promoted to HIGH_PROFILE for YUV444 input,
|
|
333
|
+
* with an informational log message. This does not convert the input format.
|
|
328
334
|
*/
|
|
329
335
|
EbAv1SeqProfile profile;
|
|
330
336
|
/* Constraints for bitstream in terms of max bitrate and max buffer size.
|
|
@@ -647,7 +653,7 @@ typedef struct EbSvtAv1EncConfiguration {
|
|
|
647
653
|
|
|
648
654
|
bool enable_overlays;
|
|
649
655
|
/**
|
|
650
|
-
* @brief Tune for a particular metric; 0: VQ, 1: PSNR, 2: SSIM, 3: IQ (Image Quality), 4:
|
|
656
|
+
* @brief Tune for a particular metric; 0: VQ, 1: PSNR, 2: SSIM, 3: IQ (Image Quality), 4: MS-SSIM, 5: VMAF, 6: Film Grain.
|
|
651
657
|
*
|
|
652
658
|
* Default is 1.
|
|
653
659
|
*/
|
|
@@ -963,6 +969,92 @@ typedef struct EbSvtAv1EncConfiguration {
|
|
|
963
969
|
*/
|
|
964
970
|
double ac_bias;
|
|
965
971
|
|
|
972
|
+
/**
|
|
973
|
+
* @brief High Bit-Depth Mode Decision, used to control the bit-depth of the mode decision path.
|
|
974
|
+
* -1: preset determined (auto)
|
|
975
|
+
* 0: full 8-bit MD
|
|
976
|
+
* 1: full 10-bit MD
|
|
977
|
+
* 2: hybrid 8/10-bit MD
|
|
978
|
+
* Default is -1
|
|
979
|
+
*/
|
|
980
|
+
int hbd_mds;
|
|
981
|
+
|
|
982
|
+
/**
|
|
983
|
+
* @brief Enable MCTF for key frames.
|
|
984
|
+
* 0 = off
|
|
985
|
+
* 1 = on
|
|
986
|
+
* Default is 1. */
|
|
987
|
+
bool enable_tf_key;
|
|
988
|
+
|
|
989
|
+
/**
|
|
990
|
+
* @brief Max Intra Bitrate Percentage
|
|
991
|
+
*
|
|
992
|
+
* Maximum bitrate for intra frames, expressed as a percentage of the
|
|
993
|
+
* target bitrate. 0 means no limit.
|
|
994
|
+
*
|
|
995
|
+
* Default is 300.
|
|
996
|
+
*/
|
|
997
|
+
uint32_t max_intra_bitrate_pct;
|
|
998
|
+
|
|
999
|
+
/**
|
|
1000
|
+
* @brief Max Inter Bitrate Percentage
|
|
1001
|
+
*
|
|
1002
|
+
* Maximum bitrate for inter frames, expressed as a percentage of the
|
|
1003
|
+
* target bitrate. 0 means no limit.
|
|
1004
|
+
*
|
|
1005
|
+
* Default is 0.
|
|
1006
|
+
*/
|
|
1007
|
+
uint32_t max_inter_bitrate_pct;
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
* @brief Enable Intra Block Copy
|
|
1011
|
+
*
|
|
1012
|
+
* false: off
|
|
1013
|
+
* true: on (default, preset-based)
|
|
1014
|
+
*
|
|
1015
|
+
* Default is true. */
|
|
1016
|
+
bool enable_intrabc;
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* @brief Ref-frame management — number of simultaneously STOREd refs
|
|
1020
|
+
* the application may hold.
|
|
1021
|
+
*
|
|
1022
|
+
* 0 (default): feature disabled; legacy reference selection and the
|
|
1023
|
+
* legacy buffer-pool size are preserved BIT-EXACTLY. No
|
|
1024
|
+
* extra memory is allocated.
|
|
1025
|
+
* 1..4 : enable the STORE / CLEAR / USE event API. The
|
|
1026
|
+
* ref-buffer pool grows by this many entries (one full
|
|
1027
|
+
* picture buffer each) to hold the locked anchors.
|
|
1028
|
+
* The encoder still uses all 8 DPB slots dynamically;
|
|
1029
|
+
* STORE locks one slot at a time, and CLEAR releases.
|
|
1030
|
+
*
|
|
1031
|
+
* Validation (svt_av1_verify_settings):
|
|
1032
|
+
* - max_managed_refs <= 4
|
|
1033
|
+
* - if > 0: pred_structure must be LOW_DELAY.
|
|
1034
|
+
*/
|
|
1035
|
+
uint8_t max_managed_refs;
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* @brief Highest hierarchical_levels this session may reach at runtime.
|
|
1039
|
+
*
|
|
1040
|
+
* Buffer pools are sized once at init from hierarchical_levels. A session
|
|
1041
|
+
* that raises its mini-GOP size later via MG_SIZE_CHANGE_EVENT must declare
|
|
1042
|
+
* the ceiling here, or the pools sized for the initial value run dry.
|
|
1043
|
+
*
|
|
1044
|
+
* 0 (default): hierarchical_levels is fixed for the session; pool sizing
|
|
1045
|
+
* and reference selection are preserved BIT-EXACTLY and no
|
|
1046
|
+
* extra memory is allocated.
|
|
1047
|
+
* 1..2 : size pools for this many levels instead of the configured
|
|
1048
|
+
* hierarchical_levels.
|
|
1049
|
+
*
|
|
1050
|
+
* Validation (svt_av1_verify_settings):
|
|
1051
|
+
* - max_hierarchical_levels <= 2
|
|
1052
|
+
* - if > 0: rtc, pred_structure == LOW_DELAY and rate_control_mode ==
|
|
1053
|
+
* CBR, matching where MG_SIZE_CHANGE_EVENT is accepted.
|
|
1054
|
+
* - if > 0: must be >= hierarchical_levels.
|
|
1055
|
+
*/
|
|
1056
|
+
uint8_t max_hierarchical_levels;
|
|
1057
|
+
|
|
966
1058
|
/**
|
|
967
1059
|
* @brief Noise normalization strength; modifies the encoder's willingness
|
|
968
1060
|
* to boost AC coefficients in low-noise blocks.
|
|
@@ -984,9 +1076,18 @@ typedef struct EbSvtAv1EncConfiguration {
|
|
|
984
1076
|
* @brief Use alternative lambda factors
|
|
985
1077
|
* false = use regular lambda factors
|
|
986
1078
|
* true = use alternative lambda factors (from SVT-AV1 3.0.2)
|
|
987
|
-
* Default is
|
|
1079
|
+
* Default is false in SVT-AV1-HDR. */
|
|
988
1080
|
bool alt_lambda_factors;
|
|
989
1081
|
|
|
1082
|
+
/**
|
|
1083
|
+
* @brief Enable sharp-tx, a toggle that enables much sharper transforms decisions for higher fidelity ouput,
|
|
1084
|
+
at the possible cost of increasing artifacting
|
|
1085
|
+
* 0: disabled
|
|
1086
|
+
* 1: enabled
|
|
1087
|
+
* Default is 1
|
|
1088
|
+
*/
|
|
1089
|
+
uint8_t sharp_tx;
|
|
1090
|
+
|
|
990
1091
|
/* @brief compresses the QP hierarchical layer scale to improve temporal video consistency
|
|
991
1092
|
* 0.0: no compression, original SVT-AV1 scaling
|
|
992
1093
|
* 0.0-8.0: enable compression, the higher the number the stronger the compression
|
|
@@ -1002,24 +1103,6 @@ typedef struct EbSvtAv1EncConfiguration {
|
|
|
1002
1103
|
*/
|
|
1003
1104
|
bool alt_ssim_tuning;
|
|
1004
1105
|
|
|
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
1106
|
/**
|
|
1024
1107
|
* @brief Transform size/type bias type
|
|
1025
1108
|
* 0: disabled
|
|
@@ -1076,14 +1159,10 @@ typedef struct EbSvtAv1EncConfiguration {
|
|
|
1076
1159
|
*/
|
|
1077
1160
|
int32_t noise_strength_chroma;
|
|
1078
1161
|
|
|
1079
|
-
|
|
1080
|
-
* @brief
|
|
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.
|
|
1162
|
+
/**
|
|
1163
|
+
* @brief Check if color range is provided by the user
|
|
1085
1164
|
*/
|
|
1086
|
-
|
|
1165
|
+
bool color_range_provided;
|
|
1087
1166
|
|
|
1088
1167
|
/**
|
|
1089
1168
|
* @brief Control the grain size of noise
|
|
@@ -1094,17 +1173,50 @@ typedef struct EbSvtAv1EncConfiguration {
|
|
|
1094
1173
|
*/
|
|
1095
1174
|
int8_t noise_size;
|
|
1096
1175
|
|
|
1097
|
-
|
|
1098
|
-
* @brief
|
|
1176
|
+
/*
|
|
1177
|
+
* @brief Enable noise on chroma planes based on luma plane
|
|
1178
|
+
*
|
|
1179
|
+
* 0: off, chroma noise is applied based on chroma planes
|
|
1180
|
+
* 1: on, chroma noise application is based on luma plane
|
|
1181
|
+
* Default is 0.
|
|
1099
1182
|
*/
|
|
1100
|
-
|
|
1183
|
+
uint8_t noise_chroma_from_luma;
|
|
1101
1184
|
|
|
1102
|
-
/*
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1185
|
+
/*
|
|
1186
|
+
* QM-weighted transform distortion:
|
|
1187
|
+
* -1: automatic (on for tune IQ),
|
|
1188
|
+
* 0: PSNR,
|
|
1189
|
+
* 1: QM-PSNR.
|
|
1190
|
+
* */
|
|
1191
|
+
int8_t enable_qmpsnr;
|
|
1192
|
+
|
|
1193
|
+
// clang-format off
|
|
1194
|
+
/* Add 128 Byte Padding to Struct to avoid changing the size of the public configuration struct */
|
|
1195
|
+
uint8_t padding[128
|
|
1196
|
+
- sizeof(PredStructure) + sizeof (uint8_t) // pred_strucutre type was changed from uint8_t to PredStructure
|
|
1197
|
+
- sizeof(int) // This was added to take into account the new hbd_mds field while keeping previous ABI compat
|
|
1198
|
+
- sizeof(bool) // add the ability to shut MCTF for key frames
|
|
1199
|
+
- sizeof(uint32_t) * 2 // max intra/inter bitrates
|
|
1200
|
+
- sizeof(bool) // enable_intrabc
|
|
1201
|
+
- sizeof(uint8_t) // max_managed_refs (ref-frame mgmt)
|
|
1202
|
+
- sizeof(uint8_t) // max_hierarchical_levels (runtime MG size change)
|
|
1203
|
+
- sizeof(uint8_t) // noise_norm_strength
|
|
1204
|
+
- sizeof(uint8_t) // kf_tf_strength
|
|
1205
|
+
- sizeof(bool) // alt_lambda_factors
|
|
1206
|
+
- sizeof(uint8_t) // sharp_tx
|
|
1207
|
+
- sizeof(double) // qp_scale_compress_strength
|
|
1208
|
+
- sizeof(bool) // alt_ssim_tuning
|
|
1209
|
+
- sizeof(uint8_t) // tx_bias
|
|
1210
|
+
- sizeof(uint8_t) // complex_hvs
|
|
1211
|
+
- sizeof(uint8_t) // noise_adaptive_filtering
|
|
1212
|
+
- sizeof(uint8_t) // cdef_scaling
|
|
1213
|
+
- sizeof(uint8_t) // noise_strength
|
|
1214
|
+
- sizeof(int32_t) // noise_strength_chroma
|
|
1215
|
+
- sizeof(bool) // color_range_provided
|
|
1216
|
+
- sizeof(int8_t) // noise_size
|
|
1217
|
+
- sizeof(uint8_t) // noise_chroma_from_luma
|
|
1218
|
+
- sizeof(int8_t) // enable_qmpsnr
|
|
1219
|
+
];
|
|
1108
1220
|
// clang-format on
|
|
1109
1221
|
} EbSvtAv1EncConfiguration;
|
|
1110
1222
|
|
package/include/vips/version.h
CHANGED
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
#ifndef VIPS_VERSION_H
|
|
5
5
|
#define VIPS_VERSION_H
|
|
6
6
|
|
|
7
|
-
#define VIPS_VERSION "8.18.
|
|
8
|
-
#define VIPS_VERSION_STRING "8.18.
|
|
7
|
+
#define VIPS_VERSION "8.18.7"
|
|
8
|
+
#define VIPS_VERSION_STRING "8.18.7"
|
|
9
9
|
#define VIPS_MAJOR_VERSION (8)
|
|
10
10
|
#define VIPS_MINOR_VERSION (18)
|
|
11
|
-
#define VIPS_MICRO_VERSION (
|
|
11
|
+
#define VIPS_MICRO_VERSION (7)
|
|
12
12
|
|
|
13
13
|
/* The ABI version, as used for library versioning.
|
|
14
14
|
*/
|
|
15
15
|
#define VIPS_LIBRARY_CURRENT (62)
|
|
16
|
-
#define VIPS_LIBRARY_REVISION (
|
|
16
|
+
#define VIPS_LIBRARY_REVISION (7)
|
|
17
17
|
#define VIPS_LIBRARY_AGE (20)
|
|
18
18
|
|
|
19
19
|
#define VIPS_CONFIG "enable debug: false\nenable deprecated: false\nenable modules: false\nenable C++ binding: true\nenable RAD load/save: false\nenable Analyze7 load: false\nenable PPM load/save: false\nenable GIF load: true\nFFTs with fftw: false\nSIMD support with libhwy: true\nICC profile support with lcms2: true\ndeflate compression with zlib: true\ntext rendering with pangocairo: true\nfont file support with fontconfig: true\nEXIF metadata support with libexif: true\nJPEG load/save with libjpeg: true\nUHDR load/save with libuhdr: true\nJXL load/save with libjxl: false (dynamic module: false)\nJPEG2000 load/save with OpenJPEG: false\nPNG load/save with libpng: true\nimage quantisation with imagequant: true\nTIFF load/save with libtiff-4: true\nimage pyramid save with libarchive: true\nHEIC/AVIF load/save with libheif: true (dynamic module: false)\nWebP load/save with libwebp: true\nPDF load with PDFium or Poppler: false (dynamic module: false)\nSVG load with librsvg-2.0: true\nEXR load with OpenEXR: false\nWSI load with OpenSlide: false (dynamic module: false)\nMatlab load with Matio: false\nNIfTI load/save with libnifti: false\nFITS load/save with cfitsio: false\nGIF save with cgif: true\nRAW load with libraw: false\nMagick load/save with MagickCore: false (dynamic module: false)"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revizly/sharp-libvips-dev",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.53",
|
|
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",
|