mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-07 21:48:13 -08:00
refactor(vips): rename C bridge function
This commit is contained in:
parent
f6d23bc5f3
commit
489817eda6
2 changed files with 2 additions and 2 deletions
2
vips.go
2
vips.go
|
|
@ -179,7 +179,7 @@ func vipsShrink(input *C.struct__VipsImage, shrink int) (*C.struct__VipsImage, e
|
|||
var image *C.struct__VipsImage
|
||||
defer C.g_object_unref(C.gpointer(input))
|
||||
|
||||
err := C.vips_shrink_0(input, &image, C.double(float64(shrink)), C.double(float64(shrink)))
|
||||
err := C.vips_shrink_bridge(input, &image, C.double(float64(shrink)), C.double(float64(shrink)))
|
||||
if err != 0 {
|
||||
return nil, catchVipsError()
|
||||
}
|
||||
|
|
|
|||
2
vips.h
2
vips.h
|
|
@ -30,7 +30,7 @@ vips_flip_bridge(VipsImage *in, VipsImage **out, int direction)
|
|||
};
|
||||
|
||||
int
|
||||
vips_shrink_0(VipsImage *in, VipsImage **out, double xshrink, double yshrink)
|
||||
vips_shrink_bridge(VipsImage *in, VipsImage **out, double xshrink, double yshrink)
|
||||
{
|
||||
return vips_shrink(in, out, xshrink, yshrink, NULL);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue