mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-07 21:48:13 -08:00
vips_gaussblur: remove dependency on libmath
remove ceil() on call to vips_gaussblur, simply cast to int
This commit is contained in:
parent
5667ecda25
commit
bfe0c7949f
1 changed files with 1 additions and 4 deletions
5
vips.h
5
vips.h
|
|
@ -16,9 +16,6 @@
|
|||
*/
|
||||
|
||||
#if (VIPS_MAJOR_VERSION == 7 && VIPS_MINOR_VERSION < 41)
|
||||
/* we need math.h for ceil() in vips_gaussblur_bridge */
|
||||
#include <math.h>
|
||||
|
||||
#define VIPS_ANGLE_D0 VIPS_ANGLE_0
|
||||
#define VIPS_ANGLE_D90 VIPS_ANGLE_90
|
||||
#define VIPS_ANGLE_D180 VIPS_ANGLE_180
|
||||
|
|
@ -328,7 +325,7 @@ vips_watermark(VipsImage *in, VipsImage **out, WatermarkTextOptions *to, Waterma
|
|||
int
|
||||
vips_gaussblur_bridge(VipsImage *in, VipsImage **out, double sigma, double min_ampl) {
|
||||
#if (VIPS_MAJOR_VERSION == 7 && VIPS_MINOR_VERSION < 41)
|
||||
return vips_gaussblur(in, out, ceil(sigma), NULL);
|
||||
return vips_gaussblur(in, out, (int) sigma, NULL);
|
||||
#else
|
||||
return vips_gaussblur(in, out, sigma, NULL, "min_ampl", min_ampl, NULL);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue