Rawtherapee: Leica Camera AG LEICA M MONOCHROM (Typ 246) support

Created on 8 Sep 2018  路  12Comments  路  Source: Beep6581/RawTherapee

iMac15,1
CPU: Intel Core i7 4 GHz
RAM: 32 GB
macOS 10.13.6 (17G65)
Darwin 17.7.0
Version: 5.4



md5-e1153fcdf4420d4f2e72959e9ad2ed97



Branch: 5.4
Commit: a5e8eb9c8
Commit date: 2018-03-20
Compiler: clang-mp-3 3.9.1
Processor: generic x86
System: Apple
Bit depth: 64 bits
Gtkmm: V3.22.2
Lensfun: V0.3.2.0
Build type: release
Build flags:  -std=c++11 -mtune=generic -Werror=unused-label -mmacosx-version-min=10.9 -flto -fopenmp=libiomp5 -Werror=unknown-pragmas -Wall -Wno-unused-result -Wno-deprecated-declarations -O3 -DNDEBUG -ftree-vectorize
Link flags:  -mtune=generic -headerpad_max_install_names -flto
OpenMP support: ON
MMAP support: ON

Sample Photos (DNG,JPD,PP3) DownLoad

Photos in DNG taken with LEICA M Monochrom (Typ 246) do not look right. The following JPG has been created using RT without any image processing. The DNG looks the same on the screen.
JPG created by Raw Therappee

Here the JPG created by the camera itself:

JPG created by camera

patch provided file format

Most helpful comment

@heckflosse Patch works fine.
@kaelte In case you want to try, here is a patched development build. [...]

Goofing around:
screen shot 2018-09-09 at 7 02 59 pm

All 12 comments

Same result with latest dev/Mac and dev/Debian docker container.

This patch fixes it:

diff --git a/rtengine/dcraw.cc b/rtengine/dcraw.cc
index ccfd16187..bd9fa4b47 100644
--- a/rtengine/dcraw.cc
+++ b/rtengine/dcraw.cc
@@ -1136,7 +1136,7 @@ void CLASS lossless_dng_load_raw()
       fseek (ifp, get4(), SEEK_SET);
     if (!ljpeg_start (&jh, 0)) break;
     jwide = jh.wide;
-    if (filters) jwide *= jh.clrs;
+    if (filters || (colors == 1 && jh.clrs > 1)) jwide *= jh.clrs;
     jwide /= MIN (is_raw, tiff_samples);
     switch (jh.algo) {
       case 0xc1:

grafik

I can make a test build for Mac but it will be with gtk 3.24.0, which has some bugs with the Mac/quartz backend. https://gitlab.gnome.org/GNOME/gtk/issues/1312

@heckflosse Patch works fine.
@kaelte In case you want to try, here is a patched development build. [...]

Goofing around:
screen shot 2018-09-09 at 7 02 59 pm

Can one of the contributors please commit this patch? I'm on a different branch atm and don't want to switch.

@heckflosse Why don't you stash?

@Floessie because I didn't know about it :frowning_face:

@heckflosse Glad, my question opened up the path to enlightenment. :bulb: :wink:

fixed with 0aa1158

Thanks to all for your work. @Benitoite your build works fine. Thanks!

Was this page helpful?
0 / 5 - 0 ratings