Add new comment

Cloned your settings into mem

Cloned your settings into mem_image_sample.cpp:

OUT.use_camera_wb = 1; // Use As Shot White Balance
OUT.output_bps = 16; // 16-bit output
OUT.no_auto_bright = 1; // Do not contrast stretch the image
OUT.output_color = 1; // sRGB space
OUT.gamm[0] = 1/2.4; // power for sRGB
OUT.gamm[1] = 12.92; // toe slope for sRGB

compared with

./bin/dcraw_emu -w -o 1 -g 2.4 12.92  -W -6 ~/8/RAW_LEAF_APTUS_22.MOS

Results are the same:

 md5 ~/8/*ppm
MD5 (/home/lexa/8/RAW_LEAF_APTUS_22.MOS-memi.ppm) = 0b7caab6cdeaddc8d418f7e09c571ca8
MD5 (/home/lexa/8/RAW_LEAF_APTUS_22.MOS.ppm) = 0b7caab6cdeaddc8d418f7e09c571ca8

-- Alex Tutubalin @LibRaw LLC