@revizly/sharp-libvips-dev 1.0.18 → 1.0.19
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/vips/VImage8.h +3 -0
- package/include/vips/basic.h +12 -0
- package/include/vips/colour.h +6 -1
- package/include/vips/foreign.h +2 -0
- package/include/vips/format.h +2 -0
- package/include/vips/image.h +1 -1
- package/include/vips/mosaicing.h +4 -0
- package/include/vips/private.h +0 -2
- package/include/vips/region.h +1 -1
- package/include/vips/resample.h +2 -0
- package/include/vips/semaphore.h +8 -3
- package/include/vips/thread.h +1 -16
- package/include/vips/type.h +1 -1
- package/include/vips/util.h +12 -25
- package/include/vips/version.h +7 -7
- package/include/vips/vips.h +1 -0
- package/package.json +1 -1
- package/versions.json +1 -1
package/include/vips/VImage8.h
CHANGED
|
@@ -3276,6 +3276,7 @@ public:
|
|
|
3276
3276
|
* - **reuse** -- Reuse palette from input, bool.
|
|
3277
3277
|
* - **interpalette_maxerror** -- Maximum inter-palette error for palette reusage, double.
|
|
3278
3278
|
* - **interlace** -- Generate an interlaced (progressive) GIF, bool.
|
|
3279
|
+
* - **keep_duplicate_frames** -- Keep duplicate frames in the output instead of combining them, bool.
|
|
3279
3280
|
* - **keep** -- Which metadata to retain, VipsForeignKeep.
|
|
3280
3281
|
* - **background** -- Background value, std::vector<double>.
|
|
3281
3282
|
* - **page_height** -- Set page height for multipage save, int.
|
|
@@ -3297,6 +3298,7 @@ public:
|
|
|
3297
3298
|
* - **reuse** -- Reuse palette from input, bool.
|
|
3298
3299
|
* - **interpalette_maxerror** -- Maximum inter-palette error for palette reusage, double.
|
|
3299
3300
|
* - **interlace** -- Generate an interlaced (progressive) GIF, bool.
|
|
3301
|
+
* - **keep_duplicate_frames** -- Keep duplicate frames in the output instead of combining them, bool.
|
|
3300
3302
|
* - **keep** -- Which metadata to retain, VipsForeignKeep.
|
|
3301
3303
|
* - **background** -- Background value, std::vector<double>.
|
|
3302
3304
|
* - **page_height** -- Set page height for multipage save, int.
|
|
@@ -3318,6 +3320,7 @@ public:
|
|
|
3318
3320
|
* - **reuse** -- Reuse palette from input, bool.
|
|
3319
3321
|
* - **interpalette_maxerror** -- Maximum inter-palette error for palette reusage, double.
|
|
3320
3322
|
* - **interlace** -- Generate an interlaced (progressive) GIF, bool.
|
|
3323
|
+
* - **keep_duplicate_frames** -- Keep duplicate frames in the output instead of combining them, bool.
|
|
3321
3324
|
* - **keep** -- Which metadata to retain, VipsForeignKeep.
|
|
3322
3325
|
* - **background** -- Background value, std::vector<double>.
|
|
3323
3326
|
* - **page_height** -- Set page height for multipage save, int.
|
package/include/vips/basic.h
CHANGED
|
@@ -56,6 +56,18 @@
|
|
|
56
56
|
#define VIPS_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) VIPS_API
|
|
57
57
|
#endif
|
|
58
58
|
|
|
59
|
+
#if !defined(VIPS_DISABLE_DEPRECATION_WARNINGS) && \
|
|
60
|
+
(G_GNUC_CHECK_VERSION(4, 6) || \
|
|
61
|
+
__clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4))
|
|
62
|
+
#define _VIPS_GNUC_DO_PRAGMA(x) _Pragma(G_STRINGIFY(x))
|
|
63
|
+
#define VIPS_DEPRECATED_MACRO _VIPS_GNUC_DO_PRAGMA(GCC warning "Deprecated pre-processor symbol")
|
|
64
|
+
#define VIPS_DEPRECATED_MACRO_FOR(f) \
|
|
65
|
+
_VIPS_GNUC_DO_PRAGMA(GCC warning G_STRINGIFY(Deprecated pre-processor symbol: replace with #f))
|
|
66
|
+
#else
|
|
67
|
+
#define VIPS_DEPRECATED_MACRO
|
|
68
|
+
#define VIPS_DEPRECATED_MACRO_FOR(f)
|
|
69
|
+
#endif
|
|
70
|
+
|
|
59
71
|
#ifdef __cplusplus
|
|
60
72
|
extern "C" {
|
|
61
73
|
#endif /*__cplusplus*/
|
package/include/vips/colour.h
CHANGED
|
@@ -93,13 +93,18 @@ extern "C" {
|
|
|
93
93
|
#define VIPS_D3250_Y0 (100.0)
|
|
94
94
|
#define VIPS_D3250_Z0 (45.8501)
|
|
95
95
|
|
|
96
|
-
/* Note: constants align with those defined in lcms2.h
|
|
96
|
+
/* Note: constants align with those defined in lcms2.h, except for
|
|
97
|
+
* VIPS_INTENT_AUTO, which is libvips-specific.
|
|
97
98
|
*/
|
|
98
99
|
typedef enum {
|
|
99
100
|
VIPS_INTENT_PERCEPTUAL = 0,
|
|
100
101
|
VIPS_INTENT_RELATIVE,
|
|
101
102
|
VIPS_INTENT_SATURATION,
|
|
102
103
|
VIPS_INTENT_ABSOLUTE,
|
|
104
|
+
/* Leave room for possible new rendering intents beyond the
|
|
105
|
+
* four standard ones.
|
|
106
|
+
*/
|
|
107
|
+
VIPS_INTENT_AUTO = 32,
|
|
103
108
|
VIPS_INTENT_LAST
|
|
104
109
|
} VipsIntent;
|
|
105
110
|
|
package/include/vips/foreign.h
CHANGED
|
@@ -145,6 +145,7 @@ typedef enum {
|
|
|
145
145
|
|
|
146
146
|
typedef struct _VipsForeignLoad {
|
|
147
147
|
VipsForeign parent_object;
|
|
148
|
+
|
|
148
149
|
/*< private >*/
|
|
149
150
|
|
|
150
151
|
/* Set TRUE to force open via memory.
|
|
@@ -201,6 +202,7 @@ typedef struct _VipsForeignLoad {
|
|
|
201
202
|
|
|
202
203
|
typedef struct _VipsForeignLoadClass {
|
|
203
204
|
VipsForeignClass parent_class;
|
|
205
|
+
|
|
204
206
|
/*< public >*/
|
|
205
207
|
|
|
206
208
|
/* Is a file in this format.
|
package/include/vips/format.h
CHANGED
|
@@ -64,6 +64,7 @@ typedef enum {
|
|
|
64
64
|
|
|
65
65
|
typedef struct _VipsFormat {
|
|
66
66
|
VipsObject parent_object;
|
|
67
|
+
|
|
67
68
|
/*< public >*/
|
|
68
69
|
|
|
69
70
|
} VipsFormat;
|
|
@@ -72,6 +73,7 @@ typedef struct _VipsFormatClass {
|
|
|
72
73
|
VipsObjectClass parent_class;
|
|
73
74
|
|
|
74
75
|
/*< public >*/
|
|
76
|
+
|
|
75
77
|
/* Is a file in this format.
|
|
76
78
|
*/
|
|
77
79
|
gboolean (*is_a)(const char *);
|
package/include/vips/image.h
CHANGED
|
@@ -252,7 +252,7 @@ struct _VipsImage {
|
|
|
252
252
|
VipsStopFn stop_fn;
|
|
253
253
|
void *client1; /* user arguments */
|
|
254
254
|
void *client2;
|
|
255
|
-
GMutex
|
|
255
|
+
GMutex sslock; /* start-stop lock */
|
|
256
256
|
GSList *regions; /* list of regions current for this image */
|
|
257
257
|
VipsDemandStyle dhint; /* demand style hint */
|
|
258
258
|
|
package/include/vips/mosaicing.h
CHANGED
|
@@ -72,6 +72,10 @@ VIPS_API
|
|
|
72
72
|
int vips_matrixinvert(VipsImage *m, VipsImage **out, ...)
|
|
73
73
|
G_GNUC_NULL_TERMINATED;
|
|
74
74
|
|
|
75
|
+
VIPS_API
|
|
76
|
+
int vips_matrixmultiply(VipsImage *left, VipsImage *right, VipsImage **out, ...)
|
|
77
|
+
G_GNUC_NULL_TERMINATED;
|
|
78
|
+
|
|
75
79
|
#ifdef __cplusplus
|
|
76
80
|
}
|
|
77
81
|
#endif /*__cplusplus*/
|
package/include/vips/private.h
CHANGED
|
@@ -218,8 +218,6 @@ int vips__view_image(struct _VipsImage *image);
|
|
|
218
218
|
VIPS_API
|
|
219
219
|
int _vips__argument_id;
|
|
220
220
|
|
|
221
|
-
void vips__meta_init(void);
|
|
222
|
-
|
|
223
221
|
// autoptr needs typed functions for autofree ... this needs to be in the
|
|
224
222
|
// public API since downstream projects can use our auto defs
|
|
225
223
|
VIPS_API
|
package/include/vips/region.h
CHANGED
|
@@ -90,9 +90,9 @@ typedef enum {
|
|
|
90
90
|
struct _VipsRegion {
|
|
91
91
|
VipsObject parent_object;
|
|
92
92
|
|
|
93
|
-
/*< public >*/
|
|
94
93
|
/* Users may read these two fields.
|
|
95
94
|
*/
|
|
95
|
+
/*< public >*/
|
|
96
96
|
VipsImage *im; /* Link back to parent image */
|
|
97
97
|
VipsRect valid; /* Area of parent we can see */
|
|
98
98
|
|
package/include/vips/resample.h
CHANGED
package/include/vips/semaphore.h
CHANGED
|
@@ -38,8 +38,6 @@
|
|
|
38
38
|
#define VIPS_SEMAPHORE_H
|
|
39
39
|
|
|
40
40
|
#include <glib.h>
|
|
41
|
-
#include <vips/vips.h>
|
|
42
|
-
#include <vips/thread.h>
|
|
43
41
|
|
|
44
42
|
#ifdef __cplusplus
|
|
45
43
|
extern "C" {
|
|
@@ -48,10 +46,17 @@ extern "C" {
|
|
|
48
46
|
/* Implement our own semaphores.
|
|
49
47
|
*/
|
|
50
48
|
typedef struct {
|
|
49
|
+
/* All fields are private.
|
|
50
|
+
*/
|
|
51
|
+
/*< private >*/
|
|
51
52
|
char *name;
|
|
52
53
|
int v;
|
|
53
54
|
|
|
54
|
-
GMutex
|
|
55
|
+
GMutex mutex;
|
|
56
|
+
|
|
57
|
+
/* FIXME: sizeof(GCond) != sizeof(GCond *)
|
|
58
|
+
* https://gitlab.gnome.org/GNOME/glib/-/issues/1256
|
|
59
|
+
*/
|
|
55
60
|
GCond *cond;
|
|
56
61
|
} VipsSemaphore;
|
|
57
62
|
|
package/include/vips/thread.h
CHANGED
|
@@ -36,22 +36,7 @@
|
|
|
36
36
|
extern "C" {
|
|
37
37
|
#endif /*__cplusplus*/
|
|
38
38
|
|
|
39
|
-
/*
|
|
40
|
-
* glib 2.32+
|
|
41
|
-
*/
|
|
42
|
-
VIPS_API
|
|
43
|
-
GMutex *vips_g_mutex_new(void);
|
|
44
|
-
VIPS_API
|
|
45
|
-
void vips_g_mutex_free(GMutex *);
|
|
46
|
-
|
|
47
|
-
/* Same for GCond.
|
|
48
|
-
*/
|
|
49
|
-
VIPS_API
|
|
50
|
-
GCond *vips_g_cond_new(void);
|
|
51
|
-
VIPS_API
|
|
52
|
-
void vips_g_cond_free(GCond *);
|
|
53
|
-
|
|
54
|
-
/* ... and for GThread.
|
|
39
|
+
/* Wrapper for g_thread_try_new().
|
|
55
40
|
*/
|
|
56
41
|
VIPS_API
|
|
57
42
|
GThread *vips_g_thread_new(const char *, GThreadFunc, gpointer);
|
package/include/vips/type.h
CHANGED
package/include/vips/util.h
CHANGED
|
@@ -54,38 +54,25 @@ extern "C" {
|
|
|
54
54
|
#define VIPS_MAX(A, B) ((A) > (B) ? (A) : (B))
|
|
55
55
|
#define VIPS_MIN(A, B) ((A) < (B) ? (A) : (B))
|
|
56
56
|
|
|
57
|
+
#define VIPS_FMAX(A, B) fmax((A), (B)) VIPS_DEPRECATED_MACRO_FOR(fmax)
|
|
58
|
+
#define VIPS_FMIN(A, B) fmin((A), (B)) VIPS_DEPRECATED_MACRO_FOR(fmin)
|
|
59
|
+
|
|
57
60
|
#define VIPS_CLIP(A, V, B) VIPS_MAX((A), VIPS_MIN((B), (V)))
|
|
58
|
-
#define VIPS_FCLIP(A, V, B)
|
|
61
|
+
#define VIPS_FCLIP(A, V, B) fmax((A), fmin((B), (V)))
|
|
59
62
|
|
|
60
63
|
#define VIPS_NUMBER(R) ((int) (sizeof(R) / sizeof(R[0])))
|
|
61
64
|
|
|
62
|
-
#define VIPS_ABS(
|
|
65
|
+
#define VIPS_ABS(V) (((V) >= 0) ? (V) : -(V))
|
|
66
|
+
#define VIPS_FABS(V) fabs((V)) VIPS_DEPRECATED_MACRO_FOR(fabs)
|
|
63
67
|
|
|
64
68
|
// is something (eg. a pointer) N aligned
|
|
65
69
|
#define VIPS_ALIGNED(P, N) ((((guint64) (P)) & ((N) - 1)) == 0)
|
|
66
70
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
#
|
|
71
|
-
#define
|
|
72
|
-
#define VIPS_FLOOR(V) __builtin_floor(V)
|
|
73
|
-
#define VIPS_CEIL(V) __builtin_ceil(V)
|
|
74
|
-
#define VIPS_RINT(V) __builtin_rint(V)
|
|
75
|
-
#define VIPS_ROUND(V) __builtin_round(V)
|
|
76
|
-
#define VIPS_FABS(V) __builtin_fabs(V)
|
|
77
|
-
#define VIPS_FMAX(A, B) __builtin_fmax(A, B)
|
|
78
|
-
#define VIPS_FMIN(A, B) __builtin_fmin(A, B)
|
|
79
|
-
#else
|
|
80
|
-
#define VIPS_ISNAN(V) isnan(V)
|
|
81
|
-
#define VIPS_FLOOR(V) floor(V)
|
|
82
|
-
#define VIPS_CEIL(V) ceil(V)
|
|
83
|
-
#define VIPS_RINT(V) rint(V)
|
|
84
|
-
#define VIPS_ROUND(V) round(V)
|
|
85
|
-
#define VIPS_FABS(V) VIPS_ABS(V)
|
|
86
|
-
#define VIPS_FMAX(A, B) VIPS_MAX(A, B)
|
|
87
|
-
#define VIPS_FMIN(A, B) VIPS_MIN(A, B)
|
|
88
|
-
#endif
|
|
71
|
+
#define VIPS_ISNAN(V) isnan(V) VIPS_DEPRECATED_MACRO_FOR(isnan)
|
|
72
|
+
#define VIPS_FLOOR(V) floor(V) VIPS_DEPRECATED_MACRO_FOR(floor)
|
|
73
|
+
#define VIPS_CEIL(V) ceil(V) VIPS_DEPRECATED_MACRO_FOR(ceil)
|
|
74
|
+
#define VIPS_RINT(V) rint(V) VIPS_DEPRECATED_MACRO_FOR(rint)
|
|
75
|
+
#define VIPS_ROUND(V) round(V) VIPS_DEPRECATED_MACRO_FOR(round)
|
|
89
76
|
|
|
90
77
|
/* Testing status before the function call saves a lot of time.
|
|
91
78
|
*/
|
|
@@ -97,7 +84,7 @@ extern "C" {
|
|
|
97
84
|
} \
|
|
98
85
|
G_STMT_END
|
|
99
86
|
|
|
100
|
-
/*
|
|
87
|
+
/* rint() does "bankers rounding", it rounds to the nearest even integer.
|
|
101
88
|
* For things like image geometry, we want strict nearest int.
|
|
102
89
|
*
|
|
103
90
|
* If you know it's unsigned, _UINT is a little faster.
|
package/include/vips/version.h
CHANGED
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
#ifndef VIPS_VERSION_H
|
|
5
5
|
#define VIPS_VERSION_H
|
|
6
6
|
|
|
7
|
-
#define VIPS_VERSION "8.
|
|
8
|
-
#define VIPS_VERSION_STRING "8.
|
|
7
|
+
#define VIPS_VERSION "8.17.0"
|
|
8
|
+
#define VIPS_VERSION_STRING "8.17.0"
|
|
9
9
|
#define VIPS_MAJOR_VERSION (8)
|
|
10
|
-
#define VIPS_MINOR_VERSION (
|
|
11
|
-
#define VIPS_MICRO_VERSION (
|
|
10
|
+
#define VIPS_MINOR_VERSION (17)
|
|
11
|
+
#define VIPS_MICRO_VERSION (0)
|
|
12
12
|
|
|
13
13
|
/* The ABI version, as used for library versioning.
|
|
14
14
|
*/
|
|
15
|
-
#define VIPS_LIBRARY_CURRENT (
|
|
16
|
-
#define VIPS_LIBRARY_REVISION (
|
|
17
|
-
#define VIPS_LIBRARY_AGE (
|
|
15
|
+
#define VIPS_LIBRARY_CURRENT (61)
|
|
16
|
+
#define VIPS_LIBRARY_REVISION (0)
|
|
17
|
+
#define VIPS_LIBRARY_AGE (19)
|
|
18
18
|
|
|
19
19
|
#define VIPS_CONFIG "enable debug: false\nenable deprecated: false\nenable modules: false\nenable cplusplus: 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\nJXL load/save with libjxl: false (dynamic module: false)\nJPEG2000 load/save with OpenJPEG: false\nPNG load/save with spng: 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\nMagick load/save with MagickCore: false (dynamic module: false)"
|
|
20
20
|
|
package/include/vips/vips.h
CHANGED
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.19",
|
|
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",
|