mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-07-20 20:44:51 -04:00
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>
17 lines
696 B
C
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);
|
|
}
|