From dc655a2efe25ffee49a16bec38b8e990199da1e7 Mon Sep 17 00:00:00 2001 From: Victor Forsiuk Date: Fri, 16 Feb 2024 17:57:32 +0200 Subject: [PATCH] Deactivate self-restriction in order to be able to act as a fallback loader --- src/imageio/imageio_libraw.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/imageio/imageio_libraw.c b/src/imageio/imageio_libraw.c index ec460e3bf44f..0cf69589e4e3 100644 --- a/src/imageio/imageio_libraw.c +++ b/src/imageio/imageio_libraw.c @@ -1,6 +1,6 @@ /* This file is part of darktable, - Copyright (C) 2021-2023 darktable developers. + Copyright (C) 2021-2024 darktable developers. darktable is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -259,6 +259,8 @@ const model_map_t modelMap[] = { /* LibRaw is expected to read only new Canon CR3 files */ +// Let's deactivate self-restriction in order to be able to act as a fallback loader: +#if 0 static gboolean _supported_image(const gchar *filename) { // At the moment of writing this code CR3 files are not supported by RawSpeed, @@ -290,6 +292,7 @@ static gboolean _supported_image(const gchar *filename) g_free(extensions_whitelist); return FALSE; } +#endif void _check_libraw_missing_support(const struct dt_image_t *img) { @@ -339,7 +342,10 @@ dt_imageio_retval_t dt_imageio_open_libraw(dt_image_t *img, { int err = DT_IMAGEIO_LOAD_FAILED; int libraw_err = LIBRAW_SUCCESS; - if(!_supported_image(filename)) return DT_IMAGEIO_LOAD_FAILED; + + // Let's deactivate self-restriction in order to be able to act as a fallback loader: + // if(!_supported_image(filename)) return DT_IMAGEIO_LOAD_FAILED; + if(!img->exif_inited) (void)dt_exif_read(img, filename); libraw_data_t *raw = libraw_init(0);