mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-13 17:30:28 -07:00
refactor
This commit is contained in:
commit
885b315035
4 changed files with 37 additions and 19 deletions
15
vips.h
15
vips.h
|
|
@ -11,27 +11,12 @@ enum types {
|
|||
MAGICK
|
||||
};
|
||||
|
||||
/*
|
||||
#define JPEG 0
|
||||
#define WEBP "WEBP"
|
||||
#define PNG "PNG"
|
||||
#define TIFF "TIFF"
|
||||
#define MAGICK "MAGICK"
|
||||
#define UNKNOWN "UNKNOWN"
|
||||
*/
|
||||
|
||||
int
|
||||
vips_affine_interpolator(VipsImage *in, VipsImage **out, double a, double b, double c, double d, VipsInterpolate *interpolator)
|
||||
{
|
||||
return vips_affine(in, out, a, b, c, d, "interpolate", interpolator, NULL);
|
||||
};
|
||||
|
||||
int
|
||||
vips_jpegload_buffer_seq(void *buf, size_t len, VipsImage **out)
|
||||
{
|
||||
return vips_jpegload_buffer(buf, len, out, "access", VIPS_ACCESS_SEQUENTIAL, NULL);
|
||||
};
|
||||
|
||||
VipsImage*
|
||||
vips_image_buffer_seq(void *buf, size_t len)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue