File update-libraw-api.patch of Package deepin-image-viewer
--- a/qimage-plugins/libraw/rawiohandler.cpp +++ b/qimage-plugins/libraw/rawiohandler.cpp @@ -63,7 +63,12 @@ bool RawIOHandlerPrivate::load(QIODevice stream = new Datastream(device); raw = new LibRaw; + +#if LIBRAW_VERSION < LIBRAW_MAKE_VERSION(0, 21, 0) raw->imgdata.params.use_rawspeed = 1; +#else + raw->imgdata.rawparams.use_rawspeed = 1; +#endif if (raw->open_datastream(stream) != LIBRAW_SUCCESS) { delete raw; raw = nullptr;