Files
opencloud/vendor/github.com/davidbyttow/govips/v2/vips/image.c
dependabot[bot] 110483b808 build(deps): bump github.com/davidbyttow/govips/v2 from 2.16.0 to 2.17.0
Bumps [github.com/davidbyttow/govips/v2](https://github.com/davidbyttow/govips) from 2.16.0 to 2.17.0.
- [Release notes](https://github.com/davidbyttow/govips/releases)
- [Commits](https://github.com/davidbyttow/govips/compare/v2.16.0...v2.17.0)

---
updated-dependencies:
- dependency-name: github.com/davidbyttow/govips/v2
  dependency-version: 2.17.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-06 10:44:36 +01:00

17 lines
696 B
C

#include "image.h"
int has_alpha_channel(VipsImage *image) { return vips_image_hasalpha(image); }
void clear_image(VipsImage **image) {
// Reference-counting in libvips: https://www.libvips.org/API/current/using-from-c.html#using-C-ref
// https://docs.gtk.org/gobject/method.Object.unref.html
if (G_IS_OBJECT(*image)) g_object_unref(*image);
}
VipsImage *create_image_from_memory_copy(const void *data, size_t size,
int width, int height, int bands,
VipsBandFormat format) {
return vips_image_new_from_memory_copy(data, size, width, height, bands,
format);
}