diff options
author | Alan Third <alan@idiocy.org> | 2021-11-26 12:54:07 +0000 |
---|---|---|
committer | Alan Third <alan@idiocy.org> | 2021-12-22 20:48:19 +0000 |
commit | ec1312d76a6bb9b4011ab66adad1614a31747af8 (patch) | |
tree | 1c66b5c6d0ce11638edc363a372ade5ba8500d33 /src/image.c | |
parent | ab0d7a2b83fbb97788efb3ad1cd5e3b0ed10f7f4 (diff) | |
download | emacs-ec1312d76a6bb9b4011ab66adad1614a31747af8.tar.gz emacs-ec1312d76a6bb9b4011ab66adad1614a31747af8.tar.bz2 emacs-ec1312d76a6bb9b4011ab66adad1614a31747af8.zip |
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.
Diffstat (limited to 'src/image.c')
-rw-r--r-- | src/image.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 |