debian/patches/: patchset updated
- 0001-Fix-LibRaw-0.21-API-change.patch added
Closes: #1040256
Matteo F. Vescovi
9 months ago
|
0 |
From: Manuel Presnitz <mail@mpy.de>
|
|
1 |
Date: Wed, 28 Dec 2022 14:08:47 +0100
|
|
2 |
Forwarded: not-needed
|
|
3 |
Subject: Fix LibRaw 0.21 API change
|
|
4 |
|
|
5 |
---
|
|
6 |
src/ImageIO.cpp | 4 ++++
|
|
7 |
1 file changed, 4 insertions(+)
|
|
8 |
|
|
9 |
diff --git a/src/ImageIO.cpp b/src/ImageIO.cpp
|
|
10 |
index a80ca51..a5f3715 100644
|
|
11 |
--- a/src/ImageIO.cpp
|
|
12 |
+++ b/src/ImageIO.cpp
|
|
13 |
@@ -36,7 +36,11 @@ using namespace hdrmerge;
|
|
14 |
Image ImageIO::loadRawImage(const QString& filename, RawParameters & rawParameters, int shot_select) {
|
|
15 |
std::unique_ptr<LibRaw> rawProcessor(new LibRaw);
|
|
16 |
auto & d = rawProcessor->imgdata;
|
|
17 |
+#if LIBRAW_VERSION >= LIBRAW_MAKE_VERSION(0, 21, 0)
|
|
18 |
+ d.rawparams.shot_select = shot_select;
|
|
19 |
+#else
|
|
20 |
d.params.shot_select = shot_select;
|
|
21 |
+#endif
|
|
22 |
if (rawProcessor->open_file(rawParameters.fileName.toLocal8Bit().constData()) == LIBRAW_SUCCESS) {
|
|
23 |
libraw_decoder_info_t decoder_info;
|
|
24 |
rawProcessor->get_decoder_info(&decoder_info);
|
|
0 |
0001-Fix-LibRaw-0.21-API-change.patch
|