@img/sharp-libvips-dev 0.0.1 → 0.0.3

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.
Files changed (109) hide show
  1. package/README.md +3 -3
  2. package/cplusplus/VConnection.cpp +54 -54
  3. package/cplusplus/VError.cpp +20 -18
  4. package/cplusplus/VImage.cpp +636 -589
  5. package/cplusplus/VInterpolate.cpp +22 -22
  6. package/cplusplus/VRegion.cpp +4 -4
  7. package/cplusplus/vips-operators.cpp +2326 -2301
  8. package/include/aom/aom_codec.h +10 -6
  9. package/include/aom/aom_decoder.h +1 -1
  10. package/include/aom/aom_encoder.h +9 -2
  11. package/include/aom/aomcx.h +72 -3
  12. package/include/cairo/cairo-ft.h +1 -1
  13. package/include/cairo/cairo-gobject.h +8 -0
  14. package/include/cairo/cairo-svg.h +3 -3
  15. package/include/cairo/cairo-version.h +2 -2
  16. package/include/cairo/cairo.h +91 -24
  17. package/include/glib-2.0/glib/gmacros.h +1 -1
  18. package/include/glib-2.0/glib/gtestutils.h +1 -1
  19. package/include/glib-2.0/gobject/gtype.h +7 -7
  20. package/include/harfbuzz/hb-version.h +2 -2
  21. package/include/hwy/aligned_allocator.h +211 -0
  22. package/include/hwy/base.h +1517 -0
  23. package/include/hwy/cache_control.h +108 -0
  24. package/include/hwy/detect_compiler_arch.h +281 -0
  25. package/include/hwy/detect_targets.h +644 -0
  26. package/include/hwy/foreach_target.h +340 -0
  27. package/include/hwy/highway.h +435 -0
  28. package/include/hwy/highway_export.h +74 -0
  29. package/include/hwy/nanobenchmark.h +171 -0
  30. package/include/hwy/ops/arm_neon-inl.h +8913 -0
  31. package/include/hwy/ops/arm_sve-inl.h +5105 -0
  32. package/include/hwy/ops/emu128-inl.h +2811 -0
  33. package/include/hwy/ops/generic_ops-inl.h +4745 -0
  34. package/include/hwy/ops/ppc_vsx-inl.h +5716 -0
  35. package/include/hwy/ops/rvv-inl.h +5070 -0
  36. package/include/hwy/ops/scalar-inl.h +1995 -0
  37. package/include/hwy/ops/set_macros-inl.h +578 -0
  38. package/include/hwy/ops/shared-inl.h +539 -0
  39. package/include/hwy/ops/tuple-inl.h +125 -0
  40. package/include/hwy/ops/wasm_128-inl.h +5917 -0
  41. package/include/hwy/ops/x86_128-inl.h +11173 -0
  42. package/include/hwy/ops/x86_256-inl.h +7529 -0
  43. package/include/hwy/ops/x86_512-inl.h +6849 -0
  44. package/include/hwy/per_target.h +44 -0
  45. package/include/hwy/print-inl.h +62 -0
  46. package/include/hwy/print.h +75 -0
  47. package/include/hwy/robust_statistics.h +148 -0
  48. package/include/hwy/targets.h +338 -0
  49. package/include/hwy/timer-inl.h +200 -0
  50. package/include/hwy/timer.h +55 -0
  51. package/include/jconfig.h +2 -2
  52. package/include/jpeglib.h +3 -2
  53. package/include/libheif/heif.h +461 -384
  54. package/include/libheif/heif_cxx.h +4 -1
  55. package/include/libheif/heif_plugin.h +1 -1
  56. package/include/libheif/heif_properties.h +138 -0
  57. package/include/libheif/heif_regions.h +866 -0
  58. package/include/libheif/heif_version.h +3 -3
  59. package/include/libpng16/pnglibconf.h +1 -1
  60. package/include/pnglibconf.h +1 -1
  61. package/include/vips/VConnection8.h +43 -49
  62. package/include/vips/VError8.h +27 -24
  63. package/include/vips/VImage8.h +4861 -4597
  64. package/include/vips/VInterpolate8.h +24 -27
  65. package/include/vips/VRegion8.h +32 -33
  66. package/include/vips/arithmetic.h +169 -169
  67. package/include/vips/basic.h +33 -33
  68. package/include/vips/buf.h +56 -54
  69. package/include/vips/colour.h +95 -95
  70. package/include/vips/connection.h +190 -193
  71. package/include/vips/conversion.h +91 -91
  72. package/include/vips/convolution.h +36 -30
  73. package/include/vips/create.h +63 -63
  74. package/include/vips/dbuf.h +35 -37
  75. package/include/vips/debug.h +65 -33
  76. package/include/vips/draw.h +41 -41
  77. package/include/vips/enumtypes.h +54 -51
  78. package/include/vips/error.h +63 -63
  79. package/include/vips/foreign.h +263 -223
  80. package/include/vips/format.h +48 -48
  81. package/include/vips/freqfilt.h +22 -22
  82. package/include/vips/gate.h +55 -47
  83. package/include/vips/generate.h +34 -34
  84. package/include/vips/header.h +111 -101
  85. package/include/vips/histogram.h +28 -28
  86. package/include/vips/image.h +213 -213
  87. package/include/vips/interpolate.h +40 -41
  88. package/include/vips/memory.h +61 -52
  89. package/include/vips/morphology.h +24 -24
  90. package/include/vips/mosaicing.h +32 -33
  91. package/include/vips/object.h +371 -357
  92. package/include/vips/operation.h +68 -67
  93. package/include/vips/private.h +76 -76
  94. package/include/vips/rect.h +26 -26
  95. package/include/vips/region.h +92 -92
  96. package/include/vips/resample.h +38 -38
  97. package/include/vips/sbuf.h +53 -54
  98. package/include/vips/semaphore.h +24 -24
  99. package/include/vips/thread.h +30 -27
  100. package/include/vips/threadpool.h +48 -49
  101. package/include/vips/transform.h +39 -39
  102. package/include/vips/type.h +90 -85
  103. package/include/vips/util.h +274 -229
  104. package/include/vips/vector.h +24 -144
  105. package/include/vips/version.h +9 -9
  106. package/include/vips/vips.h +41 -40
  107. package/include/zlib.h +23 -19
  108. package/package.json +1 -1
  109. package/versions.json +9 -9
@@ -6,28 +6,28 @@
6
6
 
7
7
  /*
8
8
 
9
- This file is part of VIPS.
9
+ This file is part of VIPS.
10
10
 
11
- VIPS is free software; you can redistribute it and/or modify
12
- it under the terms of the GNU Lesser General Public License as published by
13
- the Free Software Foundation; either version 2 of the License, or
14
- (at your option) any later version.
11
+ VIPS is free software; you can redistribute it and/or modify
12
+ it under the terms of the GNU Lesser General Public License as published by
13
+ the Free Software Foundation; either version 2 of the License, or
14
+ (at your option) any later version.
15
15
 
16
- This program is distributed in the hope that it will be useful,
17
- but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
- GNU Lesser General Public License for more details.
16
+ This program is distributed in the hope that it will be useful,
17
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ GNU Lesser General Public License for more details.
20
20
 
21
- You should have received a copy of the GNU Lesser General Public License
22
- along with this program; if not, write to the Free Software
23
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24
- 02110-1301 USA
21
+ You should have received a copy of the GNU Lesser General Public License
22
+ along with this program; if not, write to the Free Software
23
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24
+ 02110-1301 USA
25
25
 
26
26
  */
27
27
 
28
28
  /*
29
29
 
30
- These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
30
+ These files are distributed with VIPS - http://www.vips.ecs.soton.ac.uk
31
31
 
32
32
  */
33
33
 
@@ -53,13 +53,13 @@ typedef struct _VipsThing {
53
53
  VIPS_API
54
54
  GType vips_thing_get_type(void);
55
55
  VIPS_API
56
- VipsThing *vips_thing_new( int i );
56
+ VipsThing *vips_thing_new(int i);
57
57
 
58
58
  /* A ref-counted area of memory. Can hold arrays of things as well.
59
59
  */
60
60
  typedef struct _VipsArea {
61
61
  void *data;
62
- size_t length; /* 0 if not known */
62
+ size_t length; /* 0 if not known */
63
63
 
64
64
  /* If this area represents an array, the number of elements in the
65
65
  * array. Equal to length / sizeof(element).
@@ -68,15 +68,15 @@ typedef struct _VipsArea {
68
68
 
69
69
  /*< private >*/
70
70
 
71
- /* Reference count and lock.
71
+ /* Reference count and lock.
72
72
  *
73
73
  * We could use an atomic int, but this is not a high-traffic data
74
74
  * structure, so a simple GMutex is OK.
75
75
  */
76
76
  int count;
77
- GMutex *lock;
77
+ GMutex *lock;
78
78
 
79
- /* Things like ICC profiles need their own free functions.
79
+ /* Things like ICC profiles need their own free functions.
80
80
  *
81
81
  * Set client to anything you like -- VipsArea doesn't use this.
82
82
  */
@@ -94,37 +94,38 @@ typedef struct _VipsArea {
94
94
  } VipsArea;
95
95
 
96
96
  VIPS_API
97
- VipsArea *vips_area_copy( VipsArea *area );
97
+ VipsArea *vips_area_copy(VipsArea *area);
98
98
  VIPS_API
99
- int vips_area_free_cb( void *mem, VipsArea *area );
99
+ int vips_area_free_cb(void *mem, VipsArea *area);
100
100
  VIPS_API
101
- void vips_area_unref( VipsArea *area );
101
+ void vips_area_unref(VipsArea *area);
102
102
 
103
103
  VIPS_API
104
- VipsArea *vips_area_new( VipsCallbackFn free_fn, void *data );
104
+ VipsArea *vips_area_new(VipsCallbackFn free_fn, void *data);
105
105
  VIPS_API
106
- VipsArea *vips_area_new_array( GType type, size_t sizeof_type, int n );
106
+ VipsArea *vips_area_new_array(GType type, size_t sizeof_type, int n);
107
107
  VIPS_API
108
- VipsArea *vips_area_new_array_object( int n );
108
+ VipsArea *vips_area_new_array_object(int n);
109
109
  VIPS_API
110
- void *vips_area_get_data( VipsArea *area,
111
- size_t *length, int *n, GType *type, size_t *sizeof_type );
110
+ void *vips_area_get_data(VipsArea *area,
111
+ size_t *length, int *n, GType *type, size_t *sizeof_type);
112
112
 
113
113
  #ifdef VIPS_DEBUG
114
- #define VIPS_ARRAY_ADDR( X, I ) \
115
- (((I) >= 0 && (I) < VIPS_AREA( X )->n) ? \
116
- (void *) ((VipsPel *) VIPS_AREA( X )->data + \
117
- VIPS_AREA( X )->sizeof_type * (I)) : \
118
- (fprintf( stderr, \
119
- "VIPS_ARRAY_ADDR: index out of bounds, " \
120
- "file \"%s\", line %d\n" \
121
- "(index %d should have been within [0,%d])\n", \
122
- __FILE__, __LINE__, \
123
- (I), VIPS_AREA( X )->n ), NULL ))
114
+ #define VIPS_ARRAY_ADDR(X, I) \
115
+ (((I) >= 0 && (I) < VIPS_AREA(X)->n) \
116
+ ? (void *) ((VipsPel *) VIPS_AREA(X)->data + \
117
+ VIPS_AREA(X)->sizeof_type * (I)) \
118
+ : (fprintf(stderr, \
119
+ "VIPS_ARRAY_ADDR: index out of bounds, " \
120
+ "file \"%s\", line %d\n" \
121
+ "(index %d should have been within [0,%d])\n", \
122
+ __FILE__, __LINE__, \
123
+ (I), VIPS_AREA(X)->n), \
124
+ NULL))
124
125
  #else /*!VIPS_DEBUG*/
125
- #define VIPS_ARRAY_ADDR( X, I ) \
126
- ((void *) \
127
- ((VipsPel *) VIPS_AREA( X )->data + VIPS_AREA( X )->sizeof_type * (I)))
126
+ #define VIPS_ARRAY_ADDR(X, I) \
127
+ ((void *) ((VipsPel *) VIPS_AREA(X)->data + \
128
+ VIPS_AREA(X)->sizeof_type * (I)))
128
129
  #endif /*VIPS_DEBUG*/
129
130
 
130
131
  /**
@@ -133,7 +134,7 @@ void *vips_area_get_data( VipsArea *area,
133
134
  * The #GType for a #VipsArea.
134
135
  */
135
136
  #define VIPS_TYPE_AREA (vips_area_get_type())
136
- #define VIPS_AREA( X ) ((VipsArea *) (X))
137
+ #define VIPS_AREA(X) ((VipsArea *) (X))
137
138
  VIPS_API
138
139
  GType vips_area_get_type(void);
139
140
 
@@ -146,6 +147,10 @@ GType vips_area_get_type(void);
146
147
  VIPS_API
147
148
  GType vips_save_string_get_type(void);
148
149
 
150
+ typedef struct _VipsSaveString {
151
+ char *s;
152
+ } VipsSaveString;
153
+
149
154
  /**
150
155
  * VIPS_TYPE_REF_STRING:
151
156
  *
@@ -153,14 +158,14 @@ GType vips_save_string_get_type(void);
153
158
  */
154
159
  #define VIPS_TYPE_REF_STRING (vips_ref_string_get_type())
155
160
 
156
- typedef struct _VipsRefString {
161
+ typedef struct _VipsRefString {
157
162
  VipsArea area;
158
163
  } VipsRefString;
159
164
 
160
165
  VIPS_API
161
- VipsRefString *vips_ref_string_new( const char *str );
166
+ VipsRefString *vips_ref_string_new(const char *str);
162
167
  VIPS_API
163
- const char *vips_ref_string_get( VipsRefString *refstr, size_t *length );
168
+ const char *vips_ref_string_get(VipsRefString *refstr, size_t *length);
164
169
  VIPS_API
165
170
  GType vips_ref_string_get_type(void);
166
171
 
@@ -171,20 +176,20 @@ GType vips_ref_string_get_type(void);
171
176
  */
172
177
  #define VIPS_TYPE_BLOB (vips_blob_get_type())
173
178
 
174
- typedef struct _VipsBlob {
179
+ typedef struct _VipsBlob {
175
180
  VipsArea area;
176
181
  } VipsBlob;
177
182
 
178
183
  VIPS_API
179
- VipsBlob *vips_blob_new( VipsCallbackFn free_fn,
180
- const void *data, size_t length );
184
+ VipsBlob *vips_blob_new(VipsCallbackFn free_fn,
185
+ const void *data, size_t length);
181
186
  VIPS_API
182
- VipsBlob *vips_blob_copy( const void *data, size_t length );
187
+ VipsBlob *vips_blob_copy(const void *data, size_t length);
183
188
  VIPS_API
184
- const void *vips_blob_get( VipsBlob *blob, size_t *length );
189
+ const void *vips_blob_get(VipsBlob *blob, size_t *length);
185
190
  VIPS_API
186
- void vips_blob_set( VipsBlob *blob,
187
- VipsCallbackFn free_fn, const void *data, size_t length );
191
+ void vips_blob_set(VipsBlob *blob,
192
+ VipsCallbackFn free_fn, const void *data, size_t length);
188
193
  VIPS_API
189
194
  GType vips_blob_get_type(void);
190
195
 
@@ -195,16 +200,16 @@ GType vips_blob_get_type(void);
195
200
  */
196
201
  #define VIPS_TYPE_ARRAY_DOUBLE (vips_array_double_get_type())
197
202
 
198
- typedef struct _VipsArrayDouble {
203
+ typedef struct _VipsArrayDouble {
199
204
  VipsArea area;
200
205
  } VipsArrayDouble;
201
206
 
202
207
  VIPS_API
203
- VipsArrayDouble *vips_array_double_new( const double *array, int n );
208
+ VipsArrayDouble *vips_array_double_new(const double *array, int n);
204
209
  VIPS_API
205
- VipsArrayDouble *vips_array_double_newv( int n, ... );
210
+ VipsArrayDouble *vips_array_double_newv(int n, ...);
206
211
  VIPS_API
207
- double *vips_array_double_get( VipsArrayDouble *array, int *n );
212
+ double *vips_array_double_get(VipsArrayDouble *array, int *n);
208
213
  VIPS_API
209
214
  GType vips_array_double_get_type(void);
210
215
 
@@ -215,16 +220,16 @@ GType vips_array_double_get_type(void);
215
220
  */
216
221
  #define VIPS_TYPE_ARRAY_INT (vips_array_int_get_type())
217
222
 
218
- typedef struct _VipsArrayInt {
223
+ typedef struct _VipsArrayInt {
219
224
  VipsArea area;
220
225
  } VipsArrayInt;
221
226
 
222
227
  VIPS_API
223
- VipsArrayInt *vips_array_int_new( const int *array, int n );
228
+ VipsArrayInt *vips_array_int_new(const int *array, int n);
224
229
  VIPS_API
225
- VipsArrayInt *vips_array_int_newv( int n, ... );
230
+ VipsArrayInt *vips_array_int_newv(int n, ...);
226
231
  VIPS_API
227
- int *vips_array_int_get( VipsArrayInt *array, int *n );
232
+ int *vips_array_int_get(VipsArrayInt *array, int *n);
228
233
  VIPS_API
229
234
  GType vips_array_int_get_type(void);
230
235
 
@@ -235,7 +240,7 @@ GType vips_array_int_get_type(void);
235
240
  */
236
241
  #define VIPS_TYPE_ARRAY_IMAGE (vips_array_image_get_type())
237
242
 
238
- typedef struct _VipsArrayImage {
243
+ typedef struct _VipsArrayImage {
239
244
  VipsArea area;
240
245
  } VipsArrayImage;
241
246
 
@@ -246,56 +251,56 @@ VIPS_API
246
251
  GType vips_array_image_get_type(void);
247
252
 
248
253
  VIPS_API
249
- void vips_value_set_area( GValue *value, VipsCallbackFn free_fn, void *data );
254
+ void vips_value_set_area(GValue *value, VipsCallbackFn free_fn, void *data);
250
255
  VIPS_API
251
- void *vips_value_get_area( const GValue *value, size_t *length );
256
+ void *vips_value_get_area(const GValue *value, size_t *length);
252
257
 
253
258
  VIPS_API
254
- const char *vips_value_get_save_string( const GValue *value );
259
+ const char *vips_value_get_save_string(const GValue *value);
255
260
  VIPS_API
256
- void vips_value_set_save_string( GValue *value, const char *str );
261
+ void vips_value_set_save_string(GValue *value, const char *str);
257
262
  VIPS_API
258
- void vips_value_set_save_stringf( GValue *value, const char *fmt, ... )
259
- G_GNUC_PRINTF( 2, 3 );
263
+ void vips_value_set_save_stringf(GValue *value, const char *fmt, ...)
264
+ G_GNUC_PRINTF(2, 3);
260
265
 
261
266
  VIPS_API
262
- const char *vips_value_get_ref_string( const GValue *value, size_t *length );
267
+ const char *vips_value_get_ref_string(const GValue *value, size_t *length);
263
268
  VIPS_API
264
- void vips_value_set_ref_string( GValue *value, const char *str );
269
+ void vips_value_set_ref_string(GValue *value, const char *str);
265
270
 
266
271
  VIPS_API
267
- void *vips_value_get_blob( const GValue *value, size_t *length );
272
+ void *vips_value_get_blob(const GValue *value, size_t *length);
268
273
  VIPS_API
269
- void vips_value_set_blob( GValue *value,
270
- VipsCallbackFn free_fn, const void *data, size_t length );
274
+ void vips_value_set_blob(GValue *value,
275
+ VipsCallbackFn free_fn, const void *data, size_t length);
271
276
  VIPS_API
272
- void vips_value_set_blob_free( GValue *value, void *data, size_t length );
277
+ void vips_value_set_blob_free(GValue *value, void *data, size_t length);
273
278
 
274
279
  VIPS_API
275
- void vips_value_set_array( GValue *value,
276
- int n, GType type, size_t sizeof_type );
280
+ void vips_value_set_array(GValue *value,
281
+ int n, GType type, size_t sizeof_type);
277
282
  VIPS_API
278
- void *vips_value_get_array( const GValue *value,
279
- int *n, GType *type, size_t *sizeof_type );
283
+ void *vips_value_get_array(const GValue *value,
284
+ int *n, GType *type, size_t *sizeof_type);
280
285
 
281
286
  VIPS_API
282
- double *vips_value_get_array_double( const GValue *value, int *n );
287
+ double *vips_value_get_array_double(const GValue *value, int *n);
283
288
  VIPS_API
284
- void vips_value_set_array_double( GValue *value, const double *array, int n );
289
+ void vips_value_set_array_double(GValue *value, const double *array, int n);
285
290
 
286
291
  VIPS_API
287
- int *vips_value_get_array_int( const GValue *value, int *n );
292
+ int *vips_value_get_array_int(const GValue *value, int *n);
288
293
  VIPS_API
289
- void vips_value_set_array_int( GValue *value, const int *array, int n );
294
+ void vips_value_set_array_int(GValue *value, const int *array, int n);
290
295
 
291
296
  VIPS_API
292
- GObject **vips_value_get_array_object( const GValue *value, int *n );
297
+ GObject **vips_value_get_array_object(const GValue *value, int *n);
293
298
  VIPS_API
294
- void vips_value_set_array_object( GValue *value, int n );
299
+ void vips_value_set_array_object(GValue *value, int n);
295
300
 
296
- /* See also image.h, that has vips_array_image_get(), vips_array_image_new(),
297
- * vips_value_get_array_image() and vips_value_set_array_image(). They need
298
- * to be declared after VipsImage.
301
+ /* See also image.h, that has vips_array_image_get(), vips_array_image_new(),
302
+ * vips_value_get_array_image() and vips_value_set_array_image(). They need
303
+ * to be declared after VipsImage.
299
304
  */
300
305
 
301
306
  #ifdef __cplusplus