Fix #610: Support heic image format
[geeqie.git] / src / image-load.c
index 9fc4bdc..02688df 100644 (file)
@@ -26,6 +26,7 @@
 #include "image_load_tiff.h"
 #include "image_load_dds.h"
 #include "image_load_pdf.h"
+#include "image_load_heif.h"
 #include "image_load_ffmpegthumbnailer.h"
 #include "image_load_collection.h"
 
@@ -627,6 +628,14 @@ static void image_loader_setup_loader(ImageLoader *il)
                }
        else
 #endif
+#ifdef HAVE_HEIF
+       if (il->fd->format_class == FORMAT_CLASS_HEIF)
+               {
+               DEBUG_1("Using custom heif loader");
+               image_loader_backend_set_heif(&il->backend);
+               }
+       else
+#endif
 #ifdef HAVE_JPEG
        if (il->bytes_total >= 2 && il->mapped_file[0] == 0xff && il->mapped_file[1] == 0xd8)
                {