2024-03-30 13:09:51 +00:00
|
|
|
--- a/qimage-plugins/libraw/rawiohandler.cpp
|
|
|
|
|
+++ b/qimage-plugins/libraw/rawiohandler.cpp
|
|
|
|
|
@@ -63,7 +63,12 @@ bool RawIOHandlerPrivate::load(QIODevice
|
2023-01-28 08:51:05 +00:00
|
|
|
|
|
|
|
|
stream = new Datastream(device);
|
|
|
|
|
raw = new LibRaw;
|
2024-03-30 13:09:51 +00:00
|
|
|
+
|
|
|
|
|
+#if LIBRAW_VERSION < LIBRAW_MAKE_VERSION(0, 21, 0)
|
|
|
|
|
raw->imgdata.params.use_rawspeed = 1;
|
|
|
|
|
+#else
|
2023-01-28 08:51:05 +00:00
|
|
|
+ raw->imgdata.rawparams.use_rawspeed = 1;
|
2024-03-30 13:09:51 +00:00
|
|
|
+#endif
|
2023-01-28 08:51:05 +00:00
|
|
|
if (raw->open_datastream(stream) != LIBRAW_SUCCESS) {
|
|
|
|
|
delete raw;
|
|
|
|
|
raw = nullptr;
|