| Summary: | deepin-image-viewer: libraw-0.21 support | ||
|---|---|---|---|
| Product: | Sisyphus | Reporter: | Yuri N. Sedunov <aris> |
| Component: | deepin-image-viewer | Assignee: | Leontiy Volodin <lvol> |
| Status: | CLOSED FIXED | QA Contact: | qa-sisyphus |
| Severity: | normal | ||
| Priority: | P5 | CC: | lvol |
| Version: | unstable | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
|
Description
Yuri N. Sedunov
2023-08-31 23:20:58 MSK
https://gitlab.archlinux.org/archlinux/packaging/packages/deepin-image-viewer/-/blob/main/libraw-0.21.patch?ref_type=heads diff --git a/qimage-plugins/libraw/rawiohandler.cpp b/qimage-plugins/libraw/rawiohandler.cpp index 979b1d58..5236376f 100644 --- a/qimage-plugins/libraw/rawiohandler.cpp +++ b/qimage-plugins/libraw/rawiohandler.cpp @@ -63,7 +63,11 @@ bool RawIOHandlerPrivate::load(QIODevice *device) stream = new Datastream(device); raw = new LibRaw; +#if LIBRAW_COMPILE_CHECK_VERSION_NOTLESS(0, 21) + raw->imgdata.rawparams.use_rawspeed = 1; +#else raw->imgdata.params.use_rawspeed = 1; +#endif if (raw->open_datastream(stream) != LIBRAW_SUCCESS) { delete raw; raw = nullptr; Добавил. |