@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.
@@ -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.
@@ -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*/
@@ -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
 
@@ -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.
@@ -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 *);
@@ -252,7 +252,7 @@ struct _VipsImage {
252
252
  VipsStopFn stop_fn;
253
253
  void *client1; /* user arguments */
254
254
  void *client2;
255
- GMutex *sslock; /* start-stop lock */
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
 
@@ -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*/
@@ -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
@@ -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
 
@@ -45,6 +45,8 @@ typedef enum {
45
45
  VIPS_KERNEL_MITCHELL,
46
46
  VIPS_KERNEL_LANCZOS2,
47
47
  VIPS_KERNEL_LANCZOS3,
48
+ VIPS_KERNEL_MKS2013,
49
+ VIPS_KERNEL_MKS2021,
48
50
  VIPS_KERNEL_LAST
49
51
  } VipsKernel;
50
52
 
@@ -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 *mutex;
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
 
@@ -36,22 +36,7 @@
36
36
  extern "C" {
37
37
  #endif /*__cplusplus*/
38
38
 
39
- /* We need wrappers over g_mutex_new(), it was replaced by g_mutex_init() in
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);
@@ -74,7 +74,7 @@ typedef struct _VipsArea {
74
74
  * structure, so a simple GMutex is OK.
75
75
  */
76
76
  int count;
77
- GMutex *lock;
77
+ GMutex lock;
78
78
 
79
79
  /* Things like ICC profiles need their own free functions.
80
80
  *
@@ -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) VIPS_FMAX((A), VIPS_FMIN((B), (V)))
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(X) (((X) >= 0) ? (X) : -(X))
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
- /* The built-in isnan and isinf functions provided by gcc 4+ and clang are
68
- * up to 7x faster than their libc equivalent included from <math.h>.
69
- */
70
- #if defined(__clang__) || (__GNUC__ >= 4)
71
- #define VIPS_ISNAN(V) __builtin_isnan(V)
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
- /* VIPS_RINT() does "bankers rounding", it rounds to the nearest even integer.
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.
@@ -4,17 +4,17 @@
4
4
  #ifndef VIPS_VERSION_H
5
5
  #define VIPS_VERSION_H
6
6
 
7
- #define VIPS_VERSION "8.16.1"
8
- #define VIPS_VERSION_STRING "8.16.1"
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 (16)
11
- #define VIPS_MICRO_VERSION (1)
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 (60)
16
- #define VIPS_LIBRARY_REVISION (1)
17
- #define VIPS_LIBRARY_AGE (18)
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
 
@@ -117,6 +117,7 @@ extern "C" {
117
117
  #include <vips/generate.h>
118
118
  #include <vips/interpolate.h>
119
119
  #include <vips/semaphore.h>
120
+ #include <vips/thread.h>
120
121
  #include <vips/threadpool.h>
121
122
  #include <vips/header.h>
122
123
  #include <vips/operation.h>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revizly/sharp-libvips-dev",
3
- "version": "1.0.18",
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",
package/versions.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "rsvg": "2.60.0",
25
25
  "spng": "0.7.4",
26
26
  "tiff": "4.7.0",
27
- "vips": "8.16.1",
27
+ "vips": "8.17.0-test4",
28
28
  "webp": "1.5.0",
29
29
  "xml": "2.14.2",
30
30
  "zlib-ng": "2.2.4"