From: Alex Tutubalin Date: Wed, 5 Jul 2023 20:37:33 +0000 (+0200) Subject: Do not set shrink flag for 3/4 component images X-Git-Tag: archive/raspbian/0.21.2-2.1+rpi1~1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0890afe0ab05e236018bd19fb0124dc16d8149bc;p=libraw.git Do not set shrink flag for 3/4 component images Gbp-Pq: Name 0001-Do-not-set-shrink-flag-for-3-4-component-images.patch --- diff --git a/src/preprocessing/raw2image.cpp b/src/preprocessing/raw2image.cpp index e65e2ad..995f921 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)));