allow reading imageType AVIF via libheif

master
Lars Fronius 5 years ago
parent ede6a2e5bc
commit 200b5ad680
No known key found for this signature in database
GPG Key ID: 9799DF92255C2D0C

@ -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)) #if (VIPS_MAJOR_VERSION > 8 || (VIPS_MAJOR_VERSION == 8 && VIPS_MINOR_VERSION >= 8))
} else if (imageType == HEIF) { } else if (imageType == HEIF) {
code = vips_heifload_buffer(buf, len, out, "access", VIPS_ACCESS_RANDOM, NULL); 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 #endif
} }

Loading…
Cancel
Save