@img/sharp-libvips-dev 1.0.6 → 1.1.0-rc1

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.
@@ -637,7 +637,7 @@ VImage::new_from_source(VSource source, const char *option_string,
637
637
  }
638
638
 
639
639
  VImage
640
- VImage::new_from_memory_steal(void *data, size_t size,
640
+ VImage::new_from_memory_steal(const void *data, size_t size,
641
641
  int width, int height, int bands, VipsBandFormat format)
642
642
  {
643
643
  VipsImage *image;
@@ -647,7 +647,7 @@ VImage::new_from_memory_steal(void *data, size_t size,
647
647
  throw(VError());
648
648
 
649
649
  g_signal_connect(image, "postclose",
650
- G_CALLBACK(vips_image_free_buffer), data);
650
+ G_CALLBACK(vips_image_free_buffer), (void *) data);
651
651
 
652
652
  return VImage(image);
653
653
  }
@@ -255,6 +255,18 @@ VImage::add(VImage right, VOption *options) const
255
255
  return out;
256
256
  }
257
257
 
258
+ VImage
259
+ VImage::addalpha(VOption *options) const
260
+ {
261
+ VImage out;
262
+
263
+ call("addalpha", (options ? options : VImage::option())
264
+ ->set("in", *this)
265
+ ->set("out", &out));
266
+
267
+ return out;
268
+ }
269
+
258
270
  VImage
259
271
  VImage::affine(std::vector<double> matrix, VOption *options) const
260
272
  {
@@ -517,6 +529,18 @@ VImage::cast(VipsBandFormat format, VOption *options) const
517
529
  return out;
518
530
  }
519
531
 
532
+ VImage
533
+ VImage::clamp(VOption *options) const
534
+ {
535
+ VImage out;
536
+
537
+ call("clamp", (options ? options : VImage::option())
538
+ ->set("in", *this)
539
+ ->set("out", &out));
540
+
541
+ return out;
542
+ }
543
+
520
544
  VImage
521
545
  VImage::colourspace(VipsInterpretation space, VOption *options) const
522
546
  {
@@ -2327,6 +2351,19 @@ VImage::max(VOption *options) const
2327
2351
  return out;
2328
2352
  }
2329
2353
 
2354
+ VImage
2355
+ VImage::maxpair(VImage right, VOption *options) const
2356
+ {
2357
+ VImage out;
2358
+
2359
+ call("maxpair", (options ? options : VImage::option())
2360
+ ->set("left", *this)
2361
+ ->set("out", &out)
2362
+ ->set("right", right));
2363
+
2364
+ return out;
2365
+ }
2366
+
2330
2367
  VImage
2331
2368
  VImage::measure(int h, int v, VOption *options) const
2332
2369
  {
@@ -2369,6 +2406,19 @@ VImage::min(VOption *options) const
2369
2406
  return out;
2370
2407
  }
2371
2408
 
2409
+ VImage
2410
+ VImage::minpair(VImage right, VOption *options) const
2411
+ {
2412
+ VImage out;
2413
+
2414
+ call("minpair", (options ? options : VImage::option())
2415
+ ->set("left", *this)
2416
+ ->set("out", &out)
2417
+ ->set("right", right));
2418
+
2419
+ return out;
2420
+ }
2421
+
2372
2422
  VImage
2373
2423
  VImage::morph(VImage mask, VipsOperationMorphology morph, VOption *options) const
2374
2424
  {
@@ -2884,12 +2934,24 @@ VImage::rawsave(const char *filename, VOption *options) const
2884
2934
  ->set("filename", filename));
2885
2935
  }
2886
2936
 
2937
+ VipsBlob *
2938
+ VImage::rawsave_buffer(VOption *options) const
2939
+ {
2940
+ VipsBlob *buffer;
2941
+
2942
+ call("rawsave_buffer", (options ? options : VImage::option())
2943
+ ->set("in", *this)
2944
+ ->set("buffer", &buffer));
2945
+
2946
+ return buffer;
2947
+ }
2948
+
2887
2949
  void
2888
- VImage::rawsave_fd(int fd, VOption *options) const
2950
+ VImage::rawsave_target(VTarget target, VOption *options) const
2889
2951
  {
2890
- call("rawsave_fd", (options ? options : VImage::option())
2952
+ call("rawsave_target", (options ? options : VImage::option())
2891
2953
  ->set("in", *this)
2892
- ->set("fd", fd));
2954
+ ->set("target", target));
2893
2955
  }
2894
2956
 
2895
2957
  VImage
@@ -3161,6 +3223,20 @@ VImage::scharr(VOption *options) const
3161
3223
  return out;
3162
3224
  }
3163
3225
 
3226
+ VImage
3227
+ VImage::sdf(int width, int height, VipsSdfShape shape, VOption *options)
3228
+ {
3229
+ VImage out;
3230
+
3231
+ call("sdf", (options ? options : VImage::option())
3232
+ ->set("out", &out)
3233
+ ->set("width", width)
3234
+ ->set("height", height)
3235
+ ->set("shape", shape));
3236
+
3237
+ return out;
3238
+ }
3239
+
3164
3240
  VImage
3165
3241
  VImage::sequential(VOption *options) const
3166
3242
  {