1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-01-23 11:14:48 +02:00
imgproxy/vips/vips.h

92 lines
3.8 KiB
C
Raw Normal View History

2017-09-27 14:42:49 +06:00
#include <stdlib.h>
2017-09-27 14:42:49 +06:00
#include <vips/vips.h>
#include <vips/vips7compat.h>
#include <vips/vector.h>
int vips_initialize();
void clear_image(VipsImage **in);
void g_free_go(void **buf);
2017-09-28 01:17:17 +06:00
void swap_and_clear(VipsImage **in, VipsImage *out);
2017-09-28 01:17:17 +06:00
int vips_type_find_load_go(int imgtype);
int vips_type_find_save_go(int imgtype);
2018-09-07 20:46:16 +06:00
int vips_jpegload_go(void *buf, size_t len, int shrink, VipsImage **out);
int vips_pngload_go(void *buf, size_t len, VipsImage **out);
2019-06-03 16:53:47 +06:00
int vips_webpload_go(void *buf, size_t len, double scale, int pages, VipsImage **out);
int vips_gifload_go(void *buf, size_t len, int pages, VipsImage **out);
int vips_svgload_go(void *buf, size_t len, double scale, VipsImage **out);
2019-06-03 22:07:03 +06:00
int vips_heifload_go(void *buf, size_t len, VipsImage **out);
int vips_bmpload_go(void *buf, size_t len, VipsImage **out);
2019-09-27 17:49:52 +06:00
int vips_tiffload_go(void *buf, size_t len, VipsImage **out);
2018-09-07 20:46:16 +06:00
int vips_get_orientation(VipsImage *image);
2019-03-22 20:57:10 +06:00
void vips_strip_meta(VipsImage *image);
2018-10-02 18:20:23 +06:00
VipsBandFormat vips_band_format(VipsImage *in);
2018-10-19 15:47:11 +06:00
2019-06-03 16:53:47 +06:00
gboolean vips_is_animated(VipsImage * in);
2021-02-22 19:30:55 +06:00
int vips_image_get_array_int_go(VipsImage *image, const char *name, int **out, int *n);
void vips_image_set_array_int_go(VipsImage *image, const char *name, const int *array, int n);
int vips_addalpha_go(VipsImage *in, VipsImage **out);
2021-04-26 17:52:50 +06:00
int vips_premultiply_go(VipsImage *in, VipsImage **out);
int vips_unpremultiply_go(VipsImage *in, VipsImage **out);
2018-10-19 15:47:11 +06:00
int vips_copy_go(VipsImage *in, VipsImage **out);
2018-10-19 15:47:11 +06:00
int vips_cast_go(VipsImage *in, VipsImage **out, VipsBandFormat format);
2019-03-22 20:57:10 +06:00
int vips_rad2float_go(VipsImage *in, VipsImage **out);
2018-10-19 15:47:11 +06:00
2021-03-29 17:13:28 +06:00
int vips_resize_go(VipsImage *in, VipsImage **out, double wscale, double hscale);
2018-10-19 15:47:11 +06:00
2021-04-27 13:23:22 +03:00
int vips_pixelate(VipsImage *in, VipsImage **out, int pixels);
int vips_icc_is_srgb_iec61966(VipsImage *in);
int vips_has_embedded_icc(VipsImage *in);
2020-11-18 12:22:23 +06:00
int vips_icc_import_go(VipsImage *in, VipsImage **out);
2021-01-12 20:43:09 +06:00
int vips_icc_export_go(VipsImage *in, VipsImage **out);
int vips_icc_export_srgb(VipsImage *in, VipsImage **out);
2020-11-18 12:22:23 +06:00
int vips_icc_transform_go(VipsImage *in, VipsImage **out);
2021-01-12 20:43:09 +06:00
int vips_icc_remove(VipsImage *in, VipsImage **out);
int vips_colourspace_go(VipsImage *in, VipsImage **out, VipsInterpretation cs);
2018-10-19 15:47:11 +06:00
int vips_rot_go(VipsImage *in, VipsImage **out, VipsAngle angle);
int vips_flip_horizontal_go(VipsImage *in, VipsImage **out);
2018-10-19 15:47:11 +06:00
int vips_extract_area_go(VipsImage *in, VipsImage **out, int left, int top, int width, int height);
int vips_smartcrop_go(VipsImage *in, VipsImage **out, int width, int height);
int vips_trim(VipsImage *in, VipsImage **out, double threshold,
gboolean smart, double r, double g, double b,
gboolean equal_hor, gboolean equal_ver);
2018-11-08 16:34:21 +06:00
int vips_gaussblur_go(VipsImage *in, VipsImage **out, double sigma);
int vips_sharpen_go(VipsImage *in, VipsImage **out, double sigma);
2017-09-27 14:42:49 +06:00
int vips_flatten_go(VipsImage *in, VipsImage **out, double r, double g, double b);
int vips_replicate_go(VipsImage *in, VipsImage **out, int across, int down);
2021-04-26 17:52:50 +06:00
int vips_embed_go(VipsImage *in, VipsImage **out, int x, int y, int width, int height);
2017-09-27 14:42:49 +06:00
2019-02-21 21:55:20 +06:00
int vips_ensure_alpha(VipsImage *in, VipsImage **out);
int vips_apply_watermark(VipsImage *in, VipsImage *watermark, VipsImage **out, double opacity);
2017-09-28 01:17:17 +06:00
int vips_arrayjoin_go(VipsImage **in, VipsImage **out, int n);
2018-11-08 16:34:21 +06:00
2021-01-12 20:43:09 +06:00
int vips_strip(VipsImage *in, VipsImage **out);
int vips_jpegsave_go(VipsImage *in, void **buf, size_t *len, int quality, int interlace);
2019-04-05 16:30:16 +06:00
int vips_pngsave_go(VipsImage *in, void **buf, size_t *len, int interlace, int quantize, int colors);
2021-01-12 20:43:09 +06:00
int vips_webpsave_go(VipsImage *in, void **buf, size_t *len, int quality);
int vips_gifsave_go(VipsImage *in, void **buf, size_t *len);
int vips_avifsave_go(VipsImage *in, void **buf, size_t *len, int quality, int speed);
2019-09-30 17:36:38 +06:00
int vips_bmpsave_go(VipsImage *in, void **buf, size_t *len);
2019-09-27 17:49:52 +06:00
int vips_tiffsave_go(VipsImage *in, void **buf, size_t *len, int quality);
2018-12-02 19:02:19 +06:00
void vips_cleanup();