allow reading imageType AVIF via libheif

This commit is contained in:
Lars Fronius 2020-10-26 15:01:12 +01:00
parent ede6a2e5bc
commit 200b5ad680
No known key found for this signature in database
GPG key ID: 9799DF92255C2D0C

4
vips.h
View file

@ -456,6 +456,10 @@ vips_init_image (void *buf, size_t len, int imageType, VipsImage **out) {
#if (VIPS_MAJOR_VERSION > 8 || (VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION >= 8))
} else if (imageType == HEIF) {
code = vips_heifload_buffer(buf, len, out, "access", VIPS_ACCESS_RANDOM, NULL);
#endif
#if (VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION >= 9)
} else if (imageType == AVIF) {
code = vips_heifload_buffer(buf, len, out, "access", VIPS_ACCESS_RANDOM, NULL);
#endif
}