Do not set shrink flag for 3/4 component images
authorAlex Tutubalin <lexa@lexa.ru>
Wed, 5 Jul 2023 20:37:33 +0000 (22:37 +0200)
committerMatteo F. Vescovi <mfv@debian.org>
Mon, 24 Jul 2023 12:22:16 +0000 (14:22 +0200)
Gbp-Pq: Name 0001-Do-not-set-shrink-flag-for-3-4-component-images.patch

src/preprocessing/raw2image.cpp

index e65e2ad73b4af71e2f57b9b004fd5de2ac4d341e..995f92162bb2b5f3c3cffed8f11f16fd72cca500 100644 (file)
@@ -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)));