@revizly/sharp-libvips-dev 1.0.57 → 1.0.59
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/cplusplus/vips-operators.cpp +12 -0
- package/include/ffi.h +3 -3
- package/include/jxl/codestream_header.h +4 -5
- package/include/jxl/encode.h +25 -4
- package/include/jxl/version.h +1 -1
- package/include/svt-av1/EbConfigMacros.h +259 -0
- package/include/svt-av1/EbDebugMacros.h +2 -0
- package/include/svt-av1/EbSvtAv1.h +7 -4
- package/include/svt-av1/EbSvtAv1Enc.h +60 -8
- package/include/vips/VImage8.h +8 -0
- package/include/vips/basic.h +8 -0
- package/include/vips/colour.h +9 -6
- package/include/vips/foreign.h +44 -14
- package/include/vips/image.h +1 -2
- package/include/vips/operation.h +1 -2
- package/package.json +1 -1
- package/versions.json +4 -4
|
@@ -218,6 +218,18 @@ VImage::Oklch2Oklab(VOption *options) const
|
|
|
218
218
|
return out;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
+
VImage
|
|
222
|
+
VImage::UHDR2scRGB(VOption *options) const
|
|
223
|
+
{
|
|
224
|
+
VImage out;
|
|
225
|
+
|
|
226
|
+
call("UHDR2scRGB", (options ? options : VImage::option())
|
|
227
|
+
->set("in", *this)
|
|
228
|
+
->set("out", &out));
|
|
229
|
+
|
|
230
|
+
return out;
|
|
231
|
+
}
|
|
232
|
+
|
|
221
233
|
VImage
|
|
222
234
|
VImage::XYZ2CMYK(VOption *options) const
|
|
223
235
|
{
|
package/include/ffi.h
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* -----------------------------------------------------------------*-C-*-
|
|
2
|
-
libffi 3.8.
|
|
2
|
+
libffi 3.8.1
|
|
3
3
|
- Copyright (c) 2011, 2014, 2019, 2021, 2022, 2024, 2025, 2026 Anthony Green
|
|
4
4
|
- Copyright (c) 1996-2003, 2007, 2008 Red Hat, Inc.
|
|
5
5
|
|
|
@@ -324,8 +324,8 @@ size_t ffi_java_raw_size (ffi_cif *cif) __attribute__((deprecated));
|
|
|
324
324
|
|
|
325
325
|
/* ---- Version API ------------------------------------------------------ */
|
|
326
326
|
|
|
327
|
-
#define FFI_VERSION_STRING "3.8.
|
|
328
|
-
#define FFI_VERSION_NUMBER
|
|
327
|
+
#define FFI_VERSION_STRING "3.8.1"
|
|
328
|
+
#define FFI_VERSION_NUMBER 30801
|
|
329
329
|
|
|
330
330
|
#ifndef LIBFFI_ASM
|
|
331
331
|
/* Return a version string. */
|
|
@@ -160,11 +160,10 @@ typedef struct {
|
|
|
160
160
|
* can always convert to linear or non-linear sRGB or to XYB). If the original
|
|
161
161
|
* profile is used, the decoder outputs pixel data in the color space matching
|
|
162
162
|
* that profile, but doesn't convert it to any other color space. If the
|
|
163
|
-
* original profile is not used
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
* the target display color profile. To convert the pixel data produced by
|
|
163
|
+
* original profile is not used and @ref JxlDecoderSetOutputColorProfile is
|
|
164
|
+
* not called, the decoder converts the data to the original profile if it's
|
|
165
|
+
* encoded as a @ref JxlColorEncoding rather than an ICC color profile, and
|
|
166
|
+
* falls back to linear sRGB otherwise. To convert the pixel data produced by
|
|
168
167
|
* the decoder to the original color profile, one of the JxlDecoderGetColor*
|
|
169
168
|
* functions needs to be called with
|
|
170
169
|
* ::JXL_COLOR_PROFILE_TARGET_DATA to get the color profile of the decoder
|
package/include/jxl/encode.h
CHANGED
|
@@ -340,12 +340,13 @@ typedef enum {
|
|
|
340
340
|
*/
|
|
341
341
|
JXL_ENC_FRAME_SETTING_JPEG_COMPRESS_BOXES = 33,
|
|
342
342
|
|
|
343
|
-
/** Control what kind of input buffering is used, when using chunked image
|
|
344
|
-
*
|
|
345
|
-
*
|
|
343
|
+
/** Control what kind of input buffering is used, when using chunked image
|
|
344
|
+
* frames.
|
|
345
|
+
* When using streaming input the encoder minimizes memory usage, potentially
|
|
346
|
+
* at a cost in compression density (though not necessarily).
|
|
346
347
|
* -1 = default (let the encoder decide)
|
|
347
348
|
* 0 = buffers everything, basically the same as non-streamed code path
|
|
348
|
-
(mainly for testing)
|
|
349
|
+
* (mainly for testing)
|
|
349
350
|
* 1 = buffers everything for images that are 2048 x 2048 or smaller, and
|
|
350
351
|
* uses streaming input and buffered output for larger images
|
|
351
352
|
* 2 = same as 1, but the threshold to use streaming input is lower
|
|
@@ -417,6 +418,26 @@ typedef enum {
|
|
|
417
418
|
*/
|
|
418
419
|
JXL_ENC_FRAME_SETTING_OUTPUT_MODE = 40,
|
|
419
420
|
|
|
421
|
+
/** Strips the alpha channel from the frame/image.
|
|
422
|
+
* -1 = default (let the encoder decide: strip if fully opaque in lossy mode,
|
|
423
|
+
* keep in lossless).
|
|
424
|
+
* 0 = never strip (always keep alpha).
|
|
425
|
+
* 1 = always strip alpha (force strip).
|
|
426
|
+
* 2 = strip alpha if fully opaque.
|
|
427
|
+
*
|
|
428
|
+
* Note: Only applies when the image has exactly one extra channel (alpha).
|
|
429
|
+
* For single-frame auto-detection, the encoder must know there are no further
|
|
430
|
+
* frames (e.g. via @ref JxlEncoderCloseFrames or @ref JxlEncoderCloseInput)
|
|
431
|
+
* before output processing begins. The setting on the first frame dictates
|
|
432
|
+
* codestream behavior.
|
|
433
|
+
*/
|
|
434
|
+
JXL_ENC_FRAME_SETTING_STRIP_ALPHA = 41,
|
|
435
|
+
|
|
436
|
+
/** Enable or disable LF Smoothing for lossless JPEG recompression.
|
|
437
|
+
* -1 = default, 0 = disable smoothing, 1 = enable smoothing.
|
|
438
|
+
*/
|
|
439
|
+
JXL_ENC_FRAME_SETTING_JPEG_RECON_LFS = 42,
|
|
440
|
+
|
|
420
441
|
/** Enum value not to be used as an option. This value is added to force the
|
|
421
442
|
* C compiler to have the enum to take a known size.
|
|
422
443
|
*/
|
package/include/jxl/version.h
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
#endif
|
|
20
20
|
|
|
21
21
|
#define JPEGXL_MAJOR_VERSION 0 ///< JPEG XL Major version
|
|
22
|
-
#define JPEGXL_MINOR_VERSION
|
|
22
|
+
#define JPEGXL_MINOR_VERSION 13 ///< JPEG XL Minor version
|
|
23
23
|
#define JPEGXL_PATCH_VERSION 0 ///< JPEG XL Patch version
|
|
24
24
|
|
|
25
25
|
/** Can be used to conditionally compile code for a specific JXL version
|
|
@@ -30,6 +30,14 @@
|
|
|
30
30
|
#define MINIMAL_BUILD 0
|
|
31
31
|
#endif
|
|
32
32
|
|
|
33
|
+
#ifndef MOBILE_BUILD
|
|
34
|
+
#define MOBILE_BUILD 0
|
|
35
|
+
#endif
|
|
36
|
+
|
|
37
|
+
#if RTC_BUILD && MOBILE_BUILD
|
|
38
|
+
#error "RTC_BUILD and MOBILE_BUILD are mutually exclusive"
|
|
39
|
+
#endif
|
|
40
|
+
|
|
33
41
|
#if RTC_BUILD
|
|
34
42
|
|
|
35
43
|
#if MINIMAL_BUILD
|
|
@@ -122,6 +130,134 @@
|
|
|
122
130
|
|
|
123
131
|
#endif
|
|
124
132
|
|
|
133
|
+
#if MOBILE_BUILD
|
|
134
|
+
// Mobile build: one library for RTC (M9+), VOD (M9+) and AVIF still images (M6+).
|
|
135
|
+
#define MIN_ENC_PRESET ENC_M6
|
|
136
|
+
|
|
137
|
+
#ifndef CONFIG_LOG_QUIET
|
|
138
|
+
#define CONFIG_LOG_QUIET 1
|
|
139
|
+
#endif
|
|
140
|
+
|
|
141
|
+
// Below features are off because no in-scope encode uses them (8-bit; RTC M9-M13, VOD M9-M11 and AVIF M6-M9, as
|
|
142
|
+
// higher VOD/AVIF presets map to these; no film grain, superres, resize, QM or VMAF; natural content, so no
|
|
143
|
+
// palette or IntraBC), or, where commented, because no preset >= M6 reaches them.
|
|
144
|
+
// Local warp (CONFIG_ENABLE_WARP) stays on: VOD with the default hierarchy uses it at every in-scope preset.
|
|
145
|
+
// Lossless coding is not needed on mobile: svt_av1_verify_settings() rejects it.
|
|
146
|
+
|
|
147
|
+
#ifndef CONFIG_ENABLE_LOSSLESS
|
|
148
|
+
#define CONFIG_ENABLE_LOSSLESS 0
|
|
149
|
+
#endif
|
|
150
|
+
#ifndef CONFIG_ENABLE_QUANT_MATRIX
|
|
151
|
+
#define CONFIG_ENABLE_QUANT_MATRIX 0
|
|
152
|
+
#endif
|
|
153
|
+
#ifndef CONFIG_ENABLE_OBMC
|
|
154
|
+
#define CONFIG_ENABLE_OBMC 0
|
|
155
|
+
#endif
|
|
156
|
+
#ifndef CONFIG_ENABLE_FILM_GRAIN
|
|
157
|
+
#define CONFIG_ENABLE_FILM_GRAIN 0
|
|
158
|
+
#endif
|
|
159
|
+
#ifndef CONFIG_ENABLE_HIGH_BIT_DEPTH
|
|
160
|
+
#define CONFIG_ENABLE_HIGH_BIT_DEPTH 0
|
|
161
|
+
#endif
|
|
162
|
+
#ifndef CONFIG_ENABLE_GLOBAL_MOTION
|
|
163
|
+
#define CONFIG_ENABLE_GLOBAL_MOTION 0
|
|
164
|
+
#endif
|
|
165
|
+
#ifndef CONFIG_ENABLE_INTER_INTRA
|
|
166
|
+
#define CONFIG_ENABLE_INTER_INTRA 0
|
|
167
|
+
#endif
|
|
168
|
+
#ifndef CONFIG_ENABLE_FULL_SUBPEL
|
|
169
|
+
#define CONFIG_ENABLE_FULL_SUBPEL 0
|
|
170
|
+
#endif
|
|
171
|
+
#ifndef CONFIG_ENABLE_SUPERRES
|
|
172
|
+
#define CONFIG_ENABLE_SUPERRES 0
|
|
173
|
+
#endif
|
|
174
|
+
#ifndef CONFIG_ENABLE_PALETTE
|
|
175
|
+
#define CONFIG_ENABLE_PALETTE 0
|
|
176
|
+
#endif
|
|
177
|
+
#ifndef CONFIG_ENABLE_INTRA_BC
|
|
178
|
+
#define CONFIG_ENABLE_INTRA_BC 0
|
|
179
|
+
#endif
|
|
180
|
+
#ifndef CONFIG_ENABLE_VMAF
|
|
181
|
+
#define CONFIG_ENABLE_VMAF 0
|
|
182
|
+
#endif
|
|
183
|
+
#ifndef CONFIG_ENABLE_RESIZE
|
|
184
|
+
#define CONFIG_ENABLE_RESIZE 0
|
|
185
|
+
#endif
|
|
186
|
+
#ifndef CONFIG_ENABLE_DLF_SEARCH
|
|
187
|
+
#define CONFIG_ENABLE_DLF_SEARCH 0
|
|
188
|
+
#endif
|
|
189
|
+
// Loop restoration (Wiener only, see below) serves VOD M6-M8 and AVIF M6 in scope.
|
|
190
|
+
#ifndef CONFIG_ENABLE_RESTORATION
|
|
191
|
+
#define CONFIG_ENABLE_RESTORATION 1
|
|
192
|
+
#endif
|
|
193
|
+
// Self-guided restoration (sg_filter_lvl > 0) is set only at <= M3, and the 7-tap luma Wiener filter and its
|
|
194
|
+
// coefficient refinement (wn_filter_lvl 1-3) only at <= M3 default and <= M5 all-intra: with restoration on, the
|
|
195
|
+
// in-scope presets use only the 5-tap Wiener search without refinement.
|
|
196
|
+
#ifndef CONFIG_ENABLE_SGRPROJ
|
|
197
|
+
#define CONFIG_ENABLE_SGRPROJ 0
|
|
198
|
+
#endif
|
|
199
|
+
#ifndef CONFIG_ENABLE_WIENER_HQ
|
|
200
|
+
#define CONFIG_ENABLE_WIENER_HQ 0
|
|
201
|
+
#endif
|
|
202
|
+
// The ext-tx sets allow no non-DCT type at 64-point sizes and only IDTX at 32-point sizes: the C forward
|
|
203
|
+
// fallbacks for the other types are dead, and the inverse codes IDTX with dav1d kernels (av1_inv_txfm_neon.c).
|
|
204
|
+
#ifndef CONFIG_ENABLE_NON_DCT_LARGE_TX
|
|
205
|
+
#define CONFIG_ENABLE_NON_DCT_LARGE_TX 0
|
|
206
|
+
#endif
|
|
207
|
+
// MD SQ MV search and the multi-position PSAD kernel (svt_pme_sad_loop_kernel): md_sq_mv_search_level is 0
|
|
208
|
+
// everywhere, NSQ MV search and PME levels 1-3 are VAR-based, and PME levels 4/5 search at most 7 columns.
|
|
209
|
+
#ifndef CONFIG_ENABLE_PSAD_SEARCH
|
|
210
|
+
#define CONFIG_ENABLE_PSAD_SEARCH 0
|
|
211
|
+
#endif
|
|
212
|
+
// 1:4 partitions need nsq_geom_level 1/2 (<= M5 default, <= M3 all-intra, never RTC): the vertical 1:4 transforms
|
|
213
|
+
// (4x16, 8x32, 16x64) are unused. The horizontal ones stay: subres and TPL code W x H/4 transforms.
|
|
214
|
+
#ifndef CONFIG_ENABLE_HV4
|
|
215
|
+
#define CONFIG_ENABLE_HV4 0
|
|
216
|
+
#endif
|
|
217
|
+
// Compound types other than AVG: get_inter_compound_level() is 0 above M2, so MD searches MD_COMP_AVG only and
|
|
218
|
+
// the sequence header disables jnt/masked compound.
|
|
219
|
+
#ifndef CONFIG_ENABLE_COMPOUND_TYPES
|
|
220
|
+
#define CONFIG_ENABLE_COMPOUND_TYPES 0
|
|
221
|
+
#endif
|
|
222
|
+
// Partial-frequency transforms beyond TPL's: MD uses the full transform (pf_level 1) or N4 (full-loop override),
|
|
223
|
+
// and TPL codes N2 only at 16x16, 16x4 and 32x8 (dispenser_search_level 0/1, subsample_tx never 1). Other N2 sizes
|
|
224
|
+
// and DC-only are unused.
|
|
225
|
+
#ifndef CONFIG_ENABLE_TX_PF_ALL
|
|
226
|
+
#define CONFIG_ENABLE_TX_PF_ALL 0
|
|
227
|
+
#endif
|
|
228
|
+
// TPL params level 1 (<= M2) features: rate estimation, the full transform, directional intra (edge filter) and
|
|
229
|
+
// subpel search. Levels 4/5 (every preset > M2) use compute_rate 0, N2/N4, DC-only intra and FULL_PEL.
|
|
230
|
+
#ifndef CONFIG_ENABLE_TPL_HQ
|
|
231
|
+
#define CONFIG_ENABLE_TPL_HQ 0
|
|
232
|
+
#endif
|
|
233
|
+
// New/nearest/near combination, unipred 3x3 and bipred 3x3 MD injection are enabled only at <= M1.
|
|
234
|
+
#ifndef CONFIG_ENABLE_MD_MR_INJECTION
|
|
235
|
+
#define CONFIG_ENABLE_MD_MR_INJECTION 0
|
|
236
|
+
#endif
|
|
237
|
+
// derive_tf_params forces TF level 0 for every low-delay encode, so the zz-based filter that only the low-delay
|
|
238
|
+
// TF levels select (use_zz_based_filter) is never used.
|
|
239
|
+
#ifndef CONFIG_ENABLE_TF_ZZ_FILTER
|
|
240
|
+
#define CONFIG_ENABLE_TF_ZZ_FILTER 0
|
|
241
|
+
#endif
|
|
242
|
+
// 8x8 TF prediction (tf_ctrls.enable_8x8_pred) is selected only by TF levels 1-3, i.e. at <= M2.
|
|
243
|
+
#ifndef CONFIG_ENABLE_TF_8X8_PRED
|
|
244
|
+
#define CONFIG_ENABLE_TF_8X8_PRED 0
|
|
245
|
+
#endif
|
|
246
|
+
// Every preset >= M6 selects 64x64 superblocks (enc_handle.c), so the 128-wide kernels are never dispatched.
|
|
247
|
+
#ifndef CONFIG_RTC_SB64
|
|
248
|
+
#define CONFIG_RTC_SB64 1
|
|
249
|
+
#endif
|
|
250
|
+
// Smaller generic code in place of size- and shape-specialized SIMD kernels (bit-exact; trades a few tenths of a
|
|
251
|
+
// percent of speed for binary size).
|
|
252
|
+
#ifndef CONFIG_COMPACT_KERNELS
|
|
253
|
+
#define CONFIG_COMPACT_KERNELS 1
|
|
254
|
+
#endif
|
|
255
|
+
// Luma intra edges shared between the MDS0 intra candidates of a block: ~9 KB for ~0.1% instructions.
|
|
256
|
+
#ifndef CONFIG_ENABLE_INTRA_EDGE_CACHE
|
|
257
|
+
#define CONFIG_ENABLE_INTRA_EDGE_CACHE 0
|
|
258
|
+
#endif
|
|
259
|
+
#endif // MOBILE_BUILD
|
|
260
|
+
|
|
125
261
|
#ifndef MIN_ENC_PRESET
|
|
126
262
|
#define MIN_ENC_PRESET ENC_MRS
|
|
127
263
|
#endif
|
|
@@ -179,6 +315,45 @@
|
|
|
179
315
|
#define CONFIG_ENABLE_RESTORATION 1
|
|
180
316
|
#endif
|
|
181
317
|
|
|
318
|
+
#ifndef CONFIG_ENABLE_SGRPROJ
|
|
319
|
+
#define CONFIG_ENABLE_SGRPROJ CONFIG_ENABLE_RESTORATION
|
|
320
|
+
#endif
|
|
321
|
+
|
|
322
|
+
#ifndef CONFIG_ENABLE_WIENER_HQ
|
|
323
|
+
#define CONFIG_ENABLE_WIENER_HQ CONFIG_ENABLE_RESTORATION
|
|
324
|
+
#endif
|
|
325
|
+
|
|
326
|
+
#ifndef CONFIG_ENABLE_PSAD_SEARCH
|
|
327
|
+
#define CONFIG_ENABLE_PSAD_SEARCH 1
|
|
328
|
+
#endif
|
|
329
|
+
|
|
330
|
+
#ifndef CONFIG_ENABLE_HV4
|
|
331
|
+
#define CONFIG_ENABLE_HV4 1
|
|
332
|
+
#endif
|
|
333
|
+
|
|
334
|
+
#ifndef CONFIG_ENABLE_COMPOUND_TYPES
|
|
335
|
+
#define CONFIG_ENABLE_COMPOUND_TYPES 1
|
|
336
|
+
#endif
|
|
337
|
+
|
|
338
|
+
#ifndef CONFIG_ENABLE_TX_PF_ALL
|
|
339
|
+
#define CONFIG_ENABLE_TX_PF_ALL 1
|
|
340
|
+
#endif
|
|
341
|
+
|
|
342
|
+
#ifndef CONFIG_ENABLE_TPL_HQ
|
|
343
|
+
#define CONFIG_ENABLE_TPL_HQ 1
|
|
344
|
+
#endif
|
|
345
|
+
|
|
346
|
+
#ifndef CONFIG_ENABLE_MD_MR_INJECTION
|
|
347
|
+
#define CONFIG_ENABLE_MD_MR_INJECTION 1
|
|
348
|
+
#endif
|
|
349
|
+
|
|
350
|
+
#ifndef CONFIG_ENABLE_TF_ZZ_FILTER
|
|
351
|
+
#define CONFIG_ENABLE_TF_ZZ_FILTER 1
|
|
352
|
+
#endif
|
|
353
|
+
#ifndef CONFIG_ENABLE_TF_8X8_PRED
|
|
354
|
+
#define CONFIG_ENABLE_TF_8X8_PRED 1
|
|
355
|
+
#endif
|
|
356
|
+
|
|
182
357
|
#ifndef CONFIG_ENABLE_GLOBAL_MOTION
|
|
183
358
|
#define CONFIG_ENABLE_GLOBAL_MOTION 1
|
|
184
359
|
#endif
|
|
@@ -234,6 +409,14 @@
|
|
|
234
409
|
#define CONFIG_ENABLE_VMAF 1
|
|
235
410
|
#endif
|
|
236
411
|
|
|
412
|
+
#ifndef CONFIG_COMPACT_KERNELS
|
|
413
|
+
#define CONFIG_COMPACT_KERNELS 0
|
|
414
|
+
#endif
|
|
415
|
+
|
|
416
|
+
#ifndef CONFIG_ENABLE_INTRA_EDGE_CACHE
|
|
417
|
+
#define CONFIG_ENABLE_INTRA_EDGE_CACHE 1
|
|
418
|
+
#endif
|
|
419
|
+
|
|
237
420
|
#ifndef CONFIG_ENABLE_RESIZE
|
|
238
421
|
#define CONFIG_ENABLE_RESIZE 1
|
|
239
422
|
#endif
|
|
@@ -305,6 +488,56 @@
|
|
|
305
488
|
#define SVT_FOLD_BIT_DEPTH(bit_depth) ((bit_depth) = EB_EIGHT_BIT)
|
|
306
489
|
#endif
|
|
307
490
|
|
|
491
|
+
// Experimental: decoder-complexity RD terms and fast-decode 3 (decode-speed level for still images). Off unless
|
|
492
|
+
// built with -DENABLE_FAST_DECODE_3=ON.
|
|
493
|
+
#ifndef CONFIG_ENABLE_FAST_DECODE_3
|
|
494
|
+
#define CONFIG_ENABLE_FAST_DECODE_3 0
|
|
495
|
+
#endif
|
|
496
|
+
|
|
497
|
+
// The same folding for the run-time switches of features MOBILE compiles out, which its signal derivations keep 0:
|
|
498
|
+
// reading a switch through SVT_EFFECTIVE_* lets the optimizer drop the code it guards. Other builds read the switch
|
|
499
|
+
// itself, so their code and PGO profiles are unchanged.
|
|
500
|
+
#if CONFIG_ENABLE_GLOBAL_MOTION || !MOBILE_BUILD
|
|
501
|
+
#define SVT_EFFECTIVE_GM(v) (v)
|
|
502
|
+
#else
|
|
503
|
+
#define SVT_EFFECTIVE_GM(v) (0 ? (v) : 0)
|
|
504
|
+
#endif
|
|
505
|
+
#if CONFIG_ENABLE_OBMC || !MOBILE_BUILD
|
|
506
|
+
#define SVT_EFFECTIVE_OBMC(v) (v)
|
|
507
|
+
#else
|
|
508
|
+
#define SVT_EFFECTIVE_OBMC(v) (0 ? (v) : 0)
|
|
509
|
+
#endif
|
|
510
|
+
#if CONFIG_ENABLE_TF_8X8_PRED || !MOBILE_BUILD
|
|
511
|
+
#define SVT_EFFECTIVE_TF_8X8_PRED(v) (v)
|
|
512
|
+
#else
|
|
513
|
+
#define SVT_EFFECTIVE_TF_8X8_PRED(v) (0 ? (v) : 0)
|
|
514
|
+
#endif
|
|
515
|
+
#if CONFIG_ENABLE_RESTORATION || !MOBILE_BUILD
|
|
516
|
+
#define SVT_EFFECTIVE_RESTORATION(v) (v)
|
|
517
|
+
#else
|
|
518
|
+
#define SVT_EFFECTIVE_RESTORATION(v) (0 ? (v) : 0)
|
|
519
|
+
#endif
|
|
520
|
+
#if CONFIG_ENABLE_SGRPROJ || !MOBILE_BUILD
|
|
521
|
+
#define SVT_EFFECTIVE_SGRPROJ(v) (v)
|
|
522
|
+
#else
|
|
523
|
+
#define SVT_EFFECTIVE_SGRPROJ(v) (0 ? (v) : 0)
|
|
524
|
+
#endif
|
|
525
|
+
#if CONFIG_ENABLE_WIENER_HQ || !MOBILE_BUILD
|
|
526
|
+
#define SVT_EFFECTIVE_WIENER_HQ(v) (v)
|
|
527
|
+
#else
|
|
528
|
+
#define SVT_EFFECTIVE_WIENER_HQ(v) (0 ? (v) : 0)
|
|
529
|
+
#endif
|
|
530
|
+
#if CONFIG_ENABLE_PALETTE || !MOBILE_BUILD
|
|
531
|
+
#define SVT_EFFECTIVE_PALETTE(v) (v)
|
|
532
|
+
#else
|
|
533
|
+
#define SVT_EFFECTIVE_PALETTE(v) (0 ? (v) : 0)
|
|
534
|
+
#endif
|
|
535
|
+
#if CONFIG_ENABLE_COMPOUND_TYPES
|
|
536
|
+
#define SVT_EFFECTIVE_COMPOUND_TYPES(v) (v)
|
|
537
|
+
#else
|
|
538
|
+
#define SVT_EFFECTIVE_COMPOUND_TYPES(v) (0 ? (v) : 0)
|
|
539
|
+
#endif
|
|
540
|
+
|
|
308
541
|
// clang-format on
|
|
309
542
|
|
|
310
543
|
// RTC-minimal is always rtc-tuned and never all-intra; fold these to compile-time constants so the
|
|
@@ -312,4 +545,30 @@
|
|
|
312
545
|
#define SVT_RTC_TUNE(scs) (RTC_BUILD ? true : (scs)->static_config.rtc)
|
|
313
546
|
#define SVT_ALLINTRA(scs) (RTC_BUILD ? false : (scs)->allintra)
|
|
314
547
|
|
|
548
|
+
// RTC and MOBILE builds run only enc_mode >= M6 (RTC: >= M7), which makes some paths dead; svt_av1_verify_settings()
|
|
549
|
+
// rejects the options that would reach them. A plain 0/1 constant (rather than `RTC_BUILD || MOBILE_BUILD` at the
|
|
550
|
+
// use site) keeps each guarded expression the same shape in every build, so a PGO profile collected from one build
|
|
551
|
+
// keeps matching the functions that use it in another.
|
|
552
|
+
#if RTC_BUILD || MOBILE_BUILD
|
|
553
|
+
#define SVT_RTC_OR_MOBILE_BUILD 1
|
|
554
|
+
#else
|
|
555
|
+
#define SVT_RTC_OR_MOBILE_BUILD 0
|
|
556
|
+
#endif
|
|
557
|
+
|
|
558
|
+
// Paths built around kernels that have SIMD versions only on x86. Elsewhere their C versions would replace the SIMD
|
|
559
|
+
// kernels those paths bypass, so the paths are compiled out and the kernels are not registered.
|
|
560
|
+
#ifdef ARCH_X86_64
|
|
561
|
+
#define SVT_X86_ONLY_KERNEL_PATHS 1
|
|
562
|
+
#else
|
|
563
|
+
#define SVT_X86_ONLY_KERNEL_PATHS 0
|
|
564
|
+
#endif
|
|
565
|
+
|
|
566
|
+
// MOBILE and the minimal RTC build reject presets below MIN_ENC_PRESET (svt_av1_verify_settings()): clamping the
|
|
567
|
+
// preset where the signal derivations read it lets the compiler drop their branches for the lower presets.
|
|
568
|
+
#if MOBILE_BUILD || (RTC_BUILD && MINIMAL_BUILD)
|
|
569
|
+
#define SVT_ENC_MODE(enc_mode) ((enc_mode) < MIN_ENC_PRESET ? MIN_ENC_PRESET : (enc_mode))
|
|
570
|
+
#else
|
|
571
|
+
#define SVT_ENC_MODE(enc_mode) (enc_mode)
|
|
572
|
+
#endif
|
|
573
|
+
|
|
315
574
|
#endif // EbConfigMacros_h
|
|
@@ -34,6 +34,8 @@
|
|
|
34
34
|
extern "C" {
|
|
35
35
|
#endif // __cplusplus
|
|
36
36
|
|
|
37
|
+
#define RTC_INTRABC 1 // Enable a light, screen-content-gated IntraBC on RTC I-slices (intra-frame-only per AV1 spec)
|
|
38
|
+
#define RTC_INTRABC_PRED_FIRST 1 // Clean-room predictor-first DV early-exit + local search window for the RTC IntraBC level
|
|
37
39
|
#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
40
|
|
|
39
41
|
//FOR DEBUGGING - Do not remove
|
|
@@ -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 3
|
|
30
30
|
#define SVT_AV1_VERSION_PATCHLEVEL 0
|
|
31
31
|
|
|
32
32
|
#define SVT_AV1_CHECK_VERSION(major, minor, patch) \
|
|
@@ -137,6 +137,7 @@ typedef enum EbErrorType {
|
|
|
137
137
|
EB_ErrorDestroyMutexFailed = (int32_t)0x80002032,
|
|
138
138
|
EB_NoErrorEmptyQueue = (int32_t)0x80002033,
|
|
139
139
|
EB_NoErrorFifoShutdown = (int32_t)0x80002034,
|
|
140
|
+
EB_NoErrorFrameSkipped = (int32_t)0x80002035,
|
|
140
141
|
EB_ErrorMax = 0x7FFFFFFF
|
|
141
142
|
} EbErrorType;
|
|
142
143
|
|
|
@@ -237,7 +238,6 @@ typedef struct EbColorConfig {
|
|
|
237
238
|
// svt_av1_enc_send_picture API call
|
|
238
239
|
typedef enum {
|
|
239
240
|
PRIVATE_DATA, // data to be passed through and written to the bitstream
|
|
240
|
-
//FILM_GRAIN_PARAM, // passing film grain parameters per picture
|
|
241
241
|
REF_FRAME_SCALING_EVENT, // reference frame scaling data per picture
|
|
242
242
|
ROI_MAP_EVENT, // ROI map data per picture
|
|
243
243
|
RES_CHANGE_EVENT, // resolution change data per picture (KF only)
|
|
@@ -249,6 +249,7 @@ typedef enum {
|
|
|
249
249
|
REF_CLEAR_EVENT, // Ref-frame management: release a previously STOREd pic_id (payload: SvtAv1RefFrameCmd)
|
|
250
250
|
REF_USE_EVENT, // Ref-frame management: predict current frame from a STOREd ref (payload: SvtAv1RefFrameCmd)
|
|
251
251
|
MG_SIZE_CHANGE_EVENT, //MG size change data per picture
|
|
252
|
+
FILM_GRAIN_EVENT,
|
|
252
253
|
PRIVATE_DATA_TYPES // end of private data types
|
|
253
254
|
} PrivDataType;
|
|
254
255
|
|
|
@@ -307,7 +308,9 @@ typedef struct SvtAv1RateInfo {
|
|
|
307
308
|
// - Per-event payload: SvtAv1RefFrameCmd { uint32_t pic_id; }
|
|
308
309
|
// (one STORE + one CLEAR + one USE max per input; pic_id != 0).
|
|
309
310
|
// - Required encoder config: pred_structure == LOW_DELAY,
|
|
310
|
-
// rate_control_mode == CBR, hierarchical_levels in {0,1,2}
|
|
311
|
+
// rate_control_mode == CBR, hierarchical_levels in {0,1,2}, and a
|
|
312
|
+
// preset whose reference counts are all <= 2 (enc_mode >= 9 with
|
|
313
|
+
// rtc=1, or enc_mode >= 10 without), and switch frames off.
|
|
311
314
|
// - Events apply only on base-layer (temporal_layer_index == 0) inputs.
|
|
312
315
|
// - Key frames implicitly release all anchors.
|
|
313
316
|
// - Pre-condition violations either FAIL-HARD (returns
|
|
@@ -317,7 +320,7 @@ typedef struct SvtAv1RateInfo {
|
|
|
317
320
|
// ERROR + DROP paths.
|
|
318
321
|
//
|
|
319
322
|
// Full workflow, configuration constraints, error-handling matrix,
|
|
320
|
-
// encoder-side
|
|
323
|
+
// encoder-side DPB slot-split mechanics, and memory-overhead notes:
|
|
321
324
|
// see src/Docs/Appendix-Ref-Frame-Management.md
|
|
322
325
|
|
|
323
326
|
// Payload for the three ref-frame management events (REF_STORE_EVENT,
|
|
@@ -208,6 +208,16 @@ typedef struct SvtAv1SFramePositions {
|
|
|
208
208
|
|
|
209
209
|
// Will contain the EbEncApi which will live in the EncHandle class
|
|
210
210
|
// Only modifiable during config-time.
|
|
211
|
+
/* EbSvtAv1EncConfiguration.fast_decode_user_opts bits (used only when built with ENABLE_FAST_DECODE_3) */
|
|
212
|
+
#define SVT_AV1_FD_USER_CDEF (1 << 0) // enable_cdef / cdef_level
|
|
213
|
+
#define SVT_AV1_FD_USER_RESTORATION (1 << 1) // enable_restoration_filtering
|
|
214
|
+
#define SVT_AV1_FD_USER_QM (1 << 2) // enable_qm
|
|
215
|
+
#define SVT_AV1_FD_USER_LAMBDA (1 << 3) // lambda_scale_factors
|
|
216
|
+
#define SVT_AV1_FD_USER_QM_MIN (1 << 4) // min_qm_level
|
|
217
|
+
#define SVT_AV1_FD_USER_QM_MAX (1 << 5) // max_qm_level
|
|
218
|
+
#define SVT_AV1_FD_USER_CHROMA_QM_MIN (1 << 6) // min_chroma_qm_level
|
|
219
|
+
#define SVT_AV1_FD_USER_CHROMA_QM_MAX (1 << 7) // max_chroma_qm_level
|
|
220
|
+
|
|
211
221
|
typedef struct EbSvtAv1EncConfiguration {
|
|
212
222
|
/**
|
|
213
223
|
* @brief Encoder preset used.
|
|
@@ -333,12 +343,13 @@ typedef struct EbSvtAv1EncConfiguration {
|
|
|
333
343
|
* with an informational log message. This does not convert the input format.
|
|
334
344
|
*/
|
|
335
345
|
EbAv1SeqProfile profile;
|
|
336
|
-
|
|
337
|
-
*
|
|
338
|
-
* 0
|
|
339
|
-
* 1
|
|
346
|
+
/**
|
|
347
|
+
* @brief Bitstream tier.
|
|
348
|
+
* 0: Main tier, for most applications.
|
|
349
|
+
* 1: High tier, for demanding applications.
|
|
340
350
|
*
|
|
341
|
-
* Default is 0.
|
|
351
|
+
* Default is Main tier (0).
|
|
352
|
+
*/
|
|
342
353
|
uint32_t tier;
|
|
343
354
|
/**
|
|
344
355
|
* @brief Bitstream level.
|
|
@@ -670,6 +681,11 @@ typedef struct EbSvtAv1EncConfiguration {
|
|
|
670
681
|
* 0: No decoder-targeted speed optimization
|
|
671
682
|
* 1: Level 1 of decoder-targeted speed optimizations (faster decoder-speed than level 0)
|
|
672
683
|
* 2: Level 2 of decoder-targeted speed optimizations (faster decoder-speed than level 1)
|
|
684
|
+
* 3: Experimental, only in builds with the ENABLE_FAST_DECODE_3 CMake option (rejected otherwise).
|
|
685
|
+
* Level 2 plus, for still images (avif), CDEF and loop restoration off, quantization matrices on
|
|
686
|
+
* (luma 5, chroma 4), key-frame lambda scale 192, filter intra off and decoder-complexity RD terms.
|
|
687
|
+
* Options set through svt_av1_enc_parse_parameter() win; for options assigned directly, see
|
|
688
|
+
* fast_decode_user_opts. Other encodes behave as level 2.
|
|
673
689
|
*/
|
|
674
690
|
uint8_t fast_decode;
|
|
675
691
|
/* S-Frame interval (frames)
|
|
@@ -1025,12 +1041,22 @@ typedef struct EbSvtAv1EncConfiguration {
|
|
|
1025
1041
|
* 1..4 : enable the STORE / CLEAR / USE event API. The
|
|
1026
1042
|
* ref-buffer pool grows by this many entries (one full
|
|
1027
1043
|
* picture buffer each) to hold the locked anchors.
|
|
1028
|
-
* The
|
|
1029
|
-
*
|
|
1044
|
+
* The DPB is split: the encoder's own references use
|
|
1045
|
+
* slots {0..3} and anchors use {4..7}, so at most 4 can
|
|
1046
|
+
* be held at once. STORE locks one, CLEAR releases it.
|
|
1030
1047
|
*
|
|
1031
1048
|
* Validation (svt_av1_verify_settings):
|
|
1032
1049
|
* - max_managed_refs <= 4
|
|
1033
1050
|
* - if > 0: pred_structure must be LOW_DELAY.
|
|
1051
|
+
* - if > 0: rate_control_mode must be CBR.
|
|
1052
|
+
* - if > 0: switch frames must be off (sframe_dist == 0 and no
|
|
1053
|
+
* sframe_posi). An S-frame refreshes all 8 DPB slots, evicting
|
|
1054
|
+
* every anchor on the decoder side.
|
|
1055
|
+
*
|
|
1056
|
+
* Additionally rejected in svt_av1_enc_set_parameter once the preset's
|
|
1057
|
+
* reference counts are known: the split requires all counts <= 2, so a
|
|
1058
|
+
* multi-reference preset is refused rather than silently retuned. Use
|
|
1059
|
+
* enc_mode >= 9 with rtc=1, or enc_mode >= 10 without.
|
|
1034
1060
|
*/
|
|
1035
1061
|
uint8_t max_managed_refs;
|
|
1036
1062
|
|
|
@@ -1055,6 +1081,27 @@ typedef struct EbSvtAv1EncConfiguration {
|
|
|
1055
1081
|
*/
|
|
1056
1082
|
uint8_t max_hierarchical_levels;
|
|
1057
1083
|
|
|
1084
|
+
/**
|
|
1085
|
+
* @brief Maximum number of consecutive input frames RTC CBR may skip.
|
|
1086
|
+
*
|
|
1087
|
+
* 0 (default): disabled.
|
|
1088
|
+
* Nonzero values require RTC low-delay CBR. A skipped input makes
|
|
1089
|
+
* svt_av1_enc_send_picture() return EB_NoErrorFrameSkipped and produces no
|
|
1090
|
+
* output packet.
|
|
1091
|
+
*/
|
|
1092
|
+
uint8_t max_allowed_consecutive_frames_skips;
|
|
1093
|
+
|
|
1094
|
+
/**
|
|
1095
|
+
* @brief Options that fast_decode 3 must leave unchanged (SVT_AV1_FD_USER_* bits).
|
|
1096
|
+
* Only used when the library is built with ENABLE_FAST_DECODE_3.
|
|
1097
|
+
*
|
|
1098
|
+
* fast_decode 3 changes an option only while it holds its library default. Options set through
|
|
1099
|
+
* svt_av1_enc_parse_parameter() (and so the app) are marked here automatically. A caller that assigns
|
|
1100
|
+
* the struct fields directly cannot be told apart from an unset option when it assigns the default
|
|
1101
|
+
* value (e.g. enable_qm = 0, lambda_scale_factors = 128); to keep such a value, set the matching bit
|
|
1102
|
+
* after svt_av1_enc_init_handle(), which clears this field.
|
|
1103
|
+
*/
|
|
1104
|
+
uint8_t fast_decode_user_opts;
|
|
1058
1105
|
/**
|
|
1059
1106
|
* @brief Noise normalization strength; modifies the encoder's willingness
|
|
1060
1107
|
* to boost AC coefficients in low-noise blocks.
|
|
@@ -1200,6 +1247,8 @@ typedef struct EbSvtAv1EncConfiguration {
|
|
|
1200
1247
|
- sizeof(bool) // enable_intrabc
|
|
1201
1248
|
- sizeof(uint8_t) // max_managed_refs (ref-frame mgmt)
|
|
1202
1249
|
- sizeof(uint8_t) // max_hierarchical_levels (runtime MG size change)
|
|
1250
|
+
- sizeof(uint8_t) // max_allowed_consecutive_frames_skips
|
|
1251
|
+
- sizeof(uint8_t) // fast_decode_user_opts
|
|
1203
1252
|
- sizeof(uint8_t) // noise_norm_strength
|
|
1204
1253
|
- sizeof(uint8_t) // kf_tf_strength
|
|
1205
1254
|
- sizeof(bool) // alt_lambda_factors
|
|
@@ -1334,7 +1383,10 @@ EB_API EbErrorType svt_av1_enc_stream_header_release(EbBufferHeaderType* stream_
|
|
|
1334
1383
|
*
|
|
1335
1384
|
* Parameter:
|
|
1336
1385
|
* @ *svt_enc_component Encoder handler.
|
|
1337
|
-
* @ *p_buffer Header pointer, picture buffer.
|
|
1386
|
+
* @ *p_buffer Header pointer, picture buffer.
|
|
1387
|
+
*
|
|
1388
|
+
* Returns EB_NoErrorFrameSkipped when the input was accepted but no output
|
|
1389
|
+
* packet will be produced. */
|
|
1338
1390
|
EB_API EbErrorType svt_av1_enc_send_picture(EbComponentType* svt_enc_component, EbBufferHeaderType* p_buffer);
|
|
1339
1391
|
|
|
1340
1392
|
/**
|
package/include/vips/VImage8.h
CHANGED
|
@@ -2248,6 +2248,13 @@ public:
|
|
|
2248
2248
|
*/
|
|
2249
2249
|
VImage Oklch2Oklab(VOption *options = nullptr) const;
|
|
2250
2250
|
|
|
2251
|
+
/**
|
|
2252
|
+
* Transform uhdr to scrgb.
|
|
2253
|
+
* @param options Set of options.
|
|
2254
|
+
* @return Output image.
|
|
2255
|
+
*/
|
|
2256
|
+
VImage UHDR2scRGB(VOption *options = nullptr) const;
|
|
2257
|
+
|
|
2251
2258
|
/**
|
|
2252
2259
|
* Transform xyz to cmyk.
|
|
2253
2260
|
* @param options Set of options.
|
|
@@ -6460,6 +6467,7 @@ public:
|
|
|
6460
6467
|
* @param options Set of options.
|
|
6461
6468
|
* @return Output image.
|
|
6462
6469
|
*/
|
|
6470
|
+
G_DEPRECATED
|
|
6463
6471
|
VImage uhdr2scRGB(VOption *options = nullptr) const;
|
|
6464
6472
|
|
|
6465
6473
|
/**
|
package/include/vips/basic.h
CHANGED
|
@@ -78,6 +78,14 @@
|
|
|
78
78
|
#define VIPS_DEPRECATED_ENUMERATOR_FOR(f)
|
|
79
79
|
#endif
|
|
80
80
|
|
|
81
|
+
/* glib-mkenums only recognizes versioned enumerator annotations, so use
|
|
82
|
+
* the <NAMESPACE>_DEPRECATED_ENUMERATOR_IN_<version>_FOR form it expects.
|
|
83
|
+
*
|
|
84
|
+
* See: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1984.
|
|
85
|
+
*/
|
|
86
|
+
#define VIPS_DEPRECATED_ENUMERATOR_IN_8_18_FOR(f) \
|
|
87
|
+
VIPS_DEPRECATED_ENUMERATOR_FOR(f)
|
|
88
|
+
|
|
81
89
|
#ifdef __cplusplus
|
|
82
90
|
extern "C" {
|
|
83
91
|
#endif /*__cplusplus*/
|
package/include/vips/colour.h
CHANGED
|
@@ -93,11 +93,6 @@ extern "C" {
|
|
|
93
93
|
#define VIPS_D3250_Y0 (100.0)
|
|
94
94
|
#define VIPS_D3250_Z0 (45.8501)
|
|
95
95
|
|
|
96
|
-
/* Rescale from libuhdr's linear convention (1.0 = 203 nits, the ITU-R
|
|
97
|
-
* BT.2408 SDR reference white) to scRGB (1.0 = 80 nits).
|
|
98
|
-
*/
|
|
99
|
-
#define VIPS_UHDR_TO_SCRGB (203.0f / 80.0f)
|
|
100
|
-
|
|
101
96
|
/* Note: constants align with those defined in lcms2.h, except for
|
|
102
97
|
* VIPS_INTENT_AUTO, which is libvips-specific.
|
|
103
98
|
*/
|
|
@@ -278,10 +273,18 @@ VIPS_API
|
|
|
278
273
|
int vips_Oklab2Oklch(VipsImage *in, VipsImage **out, ...)
|
|
279
274
|
G_GNUC_NULL_TERMINATED;
|
|
280
275
|
|
|
281
|
-
|
|
276
|
+
#ifndef __GI_SCANNER__
|
|
277
|
+
|
|
278
|
+
VIPS_DEPRECATED_FOR(vips_UHDR2scRGB)
|
|
282
279
|
int vips_uhdr2scRGB(VipsImage *in, VipsImage **out, ...)
|
|
283
280
|
G_GNUC_NULL_TERMINATED;
|
|
284
281
|
|
|
282
|
+
#endif /* !__GI_SCANNER__ */
|
|
283
|
+
|
|
284
|
+
VIPS_API
|
|
285
|
+
int vips_UHDR2scRGB(VipsImage *in, VipsImage **out, ...)
|
|
286
|
+
G_GNUC_NULL_TERMINATED;
|
|
287
|
+
|
|
285
288
|
VIPS_API
|
|
286
289
|
int vips_CICP2scRGB(VipsImage *in, VipsImage **out, ...)
|
|
287
290
|
G_GNUC_NULL_TERMINATED;
|
package/include/vips/foreign.h
CHANGED
|
@@ -307,13 +307,28 @@ void vips_foreign_load_invalidate(VipsImage *image);
|
|
|
307
307
|
(G_TYPE_INSTANCE_GET_CLASS((obj), \
|
|
308
308
|
VIPS_TYPE_FOREIGN_SAVE, VipsForeignSaveClass))
|
|
309
309
|
|
|
310
|
+
/**
|
|
311
|
+
* VIPS_FOREIGN_SAVEABLE_ALL_MASK:
|
|
312
|
+
*
|
|
313
|
+
* A mask for all [flags@ForeignSaveable] bits.
|
|
314
|
+
*/
|
|
315
|
+
#define VIPS_FOREIGN_SAVEABLE_ALL_MASK \
|
|
316
|
+
(VIPS_FOREIGN_SAVEABLE_MONO | \
|
|
317
|
+
VIPS_FOREIGN_SAVEABLE_RGB | \
|
|
318
|
+
VIPS_FOREIGN_SAVEABLE_CMYK | \
|
|
319
|
+
VIPS_FOREIGN_SAVEABLE_ALPHA | \
|
|
320
|
+
VIPS_FOREIGN_SAVEABLE_CICP | \
|
|
321
|
+
VIPS_FOREIGN_SAVEABLE_scRGB)
|
|
322
|
+
|
|
310
323
|
/**
|
|
311
324
|
* VipsForeignSaveable:
|
|
312
|
-
* @VIPS_FOREIGN_SAVEABLE_ANY:
|
|
325
|
+
* @VIPS_FOREIGN_SAVEABLE_ANY: does anything, no preprocessing (eg. TIFF)
|
|
313
326
|
* @VIPS_FOREIGN_SAVEABLE_MONO: 1 band
|
|
314
327
|
* @VIPS_FOREIGN_SAVEABLE_RGB: 3 bands
|
|
315
328
|
* @VIPS_FOREIGN_SAVEABLE_CMYK: 4 bands
|
|
316
329
|
* @VIPS_FOREIGN_SAVEABLE_ALPHA: an extra band
|
|
330
|
+
* @VIPS_FOREIGN_SAVEABLE_CICP: can save CICP images
|
|
331
|
+
* @VIPS_FOREIGN_SAVEABLE_scRGB: can save scRGB images
|
|
317
332
|
*
|
|
318
333
|
* The set of image types supported by a saver.
|
|
319
334
|
*
|
|
@@ -326,13 +341,22 @@ typedef enum /*< flags >*/ {
|
|
|
326
341
|
VIPS_FOREIGN_SAVEABLE_RGB = 2,
|
|
327
342
|
VIPS_FOREIGN_SAVEABLE_CMYK = 4,
|
|
328
343
|
VIPS_FOREIGN_SAVEABLE_ALPHA = 8,
|
|
344
|
+
VIPS_FOREIGN_SAVEABLE_CICP = 16,
|
|
345
|
+
VIPS_FOREIGN_SAVEABLE_scRGB = 32,
|
|
329
346
|
|
|
330
|
-
VIPS_FOREIGN_SAVEABLE_ALL =
|
|
331
|
-
VIPS_FOREIGN_SAVEABLE_RGB |
|
|
332
|
-
VIPS_FOREIGN_SAVEABLE_CMYK |
|
|
333
|
-
VIPS_FOREIGN_SAVEABLE_ALPHA)
|
|
347
|
+
VIPS_FOREIGN_SAVEABLE_ALL = VIPS_FOREIGN_SAVEABLE_ALL_MASK
|
|
334
348
|
} VipsForeignSaveable;
|
|
335
349
|
|
|
350
|
+
/**
|
|
351
|
+
* VIPS_FOREIGN_CODING_ALL_MASK:
|
|
352
|
+
*
|
|
353
|
+
* A mask for all [flags@ForeignCoding] bits.
|
|
354
|
+
*/
|
|
355
|
+
#define VIPS_FOREIGN_CODING_ALL_MASK \
|
|
356
|
+
(VIPS_FOREIGN_CODING_NONE | \
|
|
357
|
+
VIPS_FOREIGN_CODING_LABQ | \
|
|
358
|
+
VIPS_FOREIGN_CODING_RAD)
|
|
359
|
+
|
|
336
360
|
/**
|
|
337
361
|
* VipsForeignCoding:
|
|
338
362
|
* @VIPS_FOREIGN_CODING_NONE: saver supports [enum@Vips.Coding.NONE]
|
|
@@ -350,11 +374,22 @@ typedef enum /*< flags >*/ {
|
|
|
350
374
|
VIPS_FOREIGN_CODING_LABQ = 1 << 1,
|
|
351
375
|
VIPS_FOREIGN_CODING_RAD = 1 << 2,
|
|
352
376
|
|
|
353
|
-
VIPS_FOREIGN_CODING_ALL =
|
|
354
|
-
VIPS_FOREIGN_CODING_LABQ |
|
|
355
|
-
VIPS_FOREIGN_CODING_RAD)
|
|
377
|
+
VIPS_FOREIGN_CODING_ALL = VIPS_FOREIGN_CODING_ALL_MASK
|
|
356
378
|
} VipsForeignCoding;
|
|
357
379
|
|
|
380
|
+
/**
|
|
381
|
+
* VIPS_FOREIGN_KEEP_ALL_MASK:
|
|
382
|
+
*
|
|
383
|
+
* A mask for all [flags@ForeignKeep] bits.
|
|
384
|
+
*/
|
|
385
|
+
#define VIPS_FOREIGN_KEEP_ALL_MASK \
|
|
386
|
+
(VIPS_FOREIGN_KEEP_EXIF | \
|
|
387
|
+
VIPS_FOREIGN_KEEP_XMP | \
|
|
388
|
+
VIPS_FOREIGN_KEEP_IPTC | \
|
|
389
|
+
VIPS_FOREIGN_KEEP_ICC | \
|
|
390
|
+
VIPS_FOREIGN_KEEP_OTHER | \
|
|
391
|
+
VIPS_FOREIGN_KEEP_GAINMAP)
|
|
392
|
+
|
|
358
393
|
/**
|
|
359
394
|
* VipsForeignKeep:
|
|
360
395
|
* @VIPS_FOREIGN_KEEP_NONE: don't attach metadata
|
|
@@ -377,12 +412,7 @@ typedef enum /*< flags >*/ {
|
|
|
377
412
|
VIPS_FOREIGN_KEEP_OTHER = 1 << 4,
|
|
378
413
|
VIPS_FOREIGN_KEEP_GAINMAP = 1 << 5,
|
|
379
414
|
|
|
380
|
-
VIPS_FOREIGN_KEEP_ALL =
|
|
381
|
-
VIPS_FOREIGN_KEEP_XMP |
|
|
382
|
-
VIPS_FOREIGN_KEEP_IPTC |
|
|
383
|
-
VIPS_FOREIGN_KEEP_ICC |
|
|
384
|
-
VIPS_FOREIGN_KEEP_OTHER |
|
|
385
|
-
VIPS_FOREIGN_KEEP_GAINMAP)
|
|
415
|
+
VIPS_FOREIGN_KEEP_ALL = VIPS_FOREIGN_KEEP_ALL_MASK
|
|
386
416
|
} VipsForeignKeep;
|
|
387
417
|
|
|
388
418
|
typedef struct _VipsForeignSave {
|
package/include/vips/image.h
CHANGED
|
@@ -143,8 +143,7 @@ typedef enum {
|
|
|
143
143
|
typedef enum {
|
|
144
144
|
VIPS_ACCESS_RANDOM,
|
|
145
145
|
VIPS_ACCESS_SEQUENTIAL,
|
|
146
|
-
VIPS_ACCESS_SEQUENTIAL_UNBUFFERED
|
|
147
|
-
VIPS_DEPRECATED_ENUMERATOR_FOR(VIPS_ACCESS_SEQUENTIAL),
|
|
146
|
+
VIPS_ACCESS_SEQUENTIAL_UNBUFFERED VIPS_DEPRECATED_ENUMERATOR_IN_8_18_FOR(VIPS_ACCESS_SEQUENTIAL),
|
|
148
147
|
VIPS_ACCESS_LAST /*< skip >*/
|
|
149
148
|
} VipsAccess;
|
|
150
149
|
|
package/include/vips/operation.h
CHANGED
|
@@ -44,8 +44,7 @@ extern "C" {
|
|
|
44
44
|
typedef enum /*< flags >*/ {
|
|
45
45
|
VIPS_OPERATION_NONE = 0,
|
|
46
46
|
VIPS_OPERATION_SEQUENTIAL = 1,
|
|
47
|
-
VIPS_OPERATION_SEQUENTIAL_UNBUFFERED
|
|
48
|
-
VIPS_DEPRECATED_ENUMERATOR_FOR(VIPS_OPERATION_SEQUENTIAL) = 2,
|
|
47
|
+
VIPS_OPERATION_SEQUENTIAL_UNBUFFERED VIPS_DEPRECATED_ENUMERATOR_IN_8_18_FOR(VIPS_OPERATION_SEQUENTIAL) = 2,
|
|
49
48
|
VIPS_OPERATION_NOCACHE = 4,
|
|
50
49
|
VIPS_OPERATION_DEPRECATED = 8,
|
|
51
50
|
VIPS_OPERATION_UNTRUSTED = 16,
|
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.59",
|
|
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
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"de265": "1.1.3",
|
|
8
8
|
"exif": "0.6.26",
|
|
9
9
|
"expat": "2.10.0",
|
|
10
|
-
"ffi": "3.8.
|
|
10
|
+
"ffi": "3.8.1",
|
|
11
11
|
"fontconfig": "2.18.3",
|
|
12
12
|
"freetype": "2.15.0",
|
|
13
13
|
"fribidi": "1.0.18",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"heif": "1.23.7",
|
|
17
17
|
"highway": "1.4.0",
|
|
18
18
|
"imagequant": "2.4.1",
|
|
19
|
-
"jxl": "0.
|
|
19
|
+
"jxl": "0.13.0",
|
|
20
20
|
"lcms": "2.20",
|
|
21
21
|
"mozjpeg": "0826579",
|
|
22
22
|
"pango": "1.58.2",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"png": "1.6.59",
|
|
25
25
|
"proxy-libintl": "0.5",
|
|
26
26
|
"rsvg": "2.63.4",
|
|
27
|
-
"svt-av1": "pgo-build-2026-
|
|
27
|
+
"svt-av1": "pgo-build-2026-11-04-6d661b6",
|
|
28
28
|
"tiff": "4.7.2",
|
|
29
29
|
"uhdr": "2.0.2",
|
|
30
|
-
"vips": "8.19.0-
|
|
30
|
+
"vips": "8.19.0-rc2",
|
|
31
31
|
"webp": "1.6.0",
|
|
32
32
|
"xml2": "2.15.4",
|
|
33
33
|
"zlib-ng": "2.3.3"
|