From ec1312d76a6bb9b4011ab66adad1614a31747af8 Mon Sep 17 00:00:00 2001 From: Alan Third Date: Fri, 26 Nov 2021 12:54:07 +0000 Subject: Add native HEIC support on macOS (bug#51381) * lisp/image.el (image-type-header-regexps): (image-type-file-name-regexps): (image-type-auto-detectable): Add auto-detect code for heic. * src/image.c (syms_of_image): Add heic as an image type under NS. * src/nsimage.m (ns_can_use_native_image_api): Add heic to list of possible image types in the native image support lookup. --- src/image.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/image.c') diff --git a/src/image.c b/src/image.c index 3904ab75a60..1d83065cf71 100644 --- a/src/image.c +++ b/src/image.c @@ -11481,6 +11481,11 @@ non-numeric, there is no explicit limit on the size of images. */); #endif /* HAVE_NTGUI */ #endif /* HAVE_RSVG */ +#ifdef HAVE_NS + DEFSYM (Qheic, "heic"); + add_image_type (Qheic); +#endif + #if HAVE_NATIVE_IMAGE_API DEFSYM (Qnative_image, "native-image"); # ifdef HAVE_NTGUI -- cgit v1.2.3