summaryrefslogtreecommitdiff
path: root/9ab70f6dca19229cb5caad7cc31af4e7501bac93.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-01 09:51:21 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-01 09:51:21 +0000
commitdb991f7140773e0a080456d740b5b3ec230cbbb8 (patch)
tree58405901935ffa3d116c4cd5549b75ff8a2535c6 /9ab70f6dca19229cb5caad7cc31af4e7501bac93.patch
parent20e5bf4121e013eadff538f75ab8017620fa07ef (diff)
automatic import of LibRawopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to '9ab70f6dca19229cb5caad7cc31af4e7501bac93.patch')
-rw-r--r--9ab70f6dca19229cb5caad7cc31af4e7501bac93.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/9ab70f6dca19229cb5caad7cc31af4e7501bac93.patch b/9ab70f6dca19229cb5caad7cc31af4e7501bac93.patch
new file mode 100644
index 0000000..427b3c8
--- /dev/null
+++ b/9ab70f6dca19229cb5caad7cc31af4e7501bac93.patch
@@ -0,0 +1,22 @@
+From 9ab70f6dca19229cb5caad7cc31af4e7501bac93 Mon Sep 17 00:00:00 2001
+From: Alex Tutubalin <lexa@lexa.ru>
+Date: Sat, 14 Jan 2023 18:32:59 +0300
+Subject: [PATCH] do not set shrink flag for 3/4 component images
+
+---
+ src/preprocessing/raw2image.cpp | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/preprocessing/raw2image.cpp b/src/preprocessing/raw2image.cpp
+index e65e2ad7..702cf290 100644
+--- a/src/preprocessing/raw2image.cpp
++++ b/src/preprocessing/raw2image.cpp
+@@ -43,6 +43,8 @@ void LibRaw::raw2image_start()
+
+ // adjust for half mode!
+ IO.shrink =
++ !imgdata.rawdata.color4_image && !imgdata.rawdata.color3_image &&
++ !imgdata.rawdata.float4_image && !imgdata.rawdata.float3_image &&
+ P1.filters &&
+ (O.half_size || ((O.threshold || O.aber[0] != 1 || O.aber[2] != 1)));
+