@revizly/sharp-libvips-dev 1.0.57 → 1.0.58
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/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 +1 -1
|
@@ -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/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.58",
|
|
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",
|