Of course I set these before calling open_file and unpack. In addition, the reason I found out about this was that I used two sets of pictures, one shot with ISO400 and one with ISO800 and basically illuminated a spot with a damped laserpointer (in a dark room). I wanted to calculate the exposure time that I need to saturate one of the channels. I noticed that the maximum value I could get for ISO400 was above 14500, while for the ISO800 I couldn't get the value above 13000 which doesn't make sense to me, since the wavelength of the laser didn't change and only the ISO setting was increased.
So far I tried setting the following parameters, similar to unprocessed_raw.cpp:
OUT.document_mode=2;
OUT.output_bps=16;
OUT.user_flip=0;
OUT.no_auto_bright = 1;
OUT.filtering_mode=LIBRAW_FILTERING_NONE;
Of course I set these before calling open_file and unpack. In addition, the reason I found out about this was that I used two sets of pictures, one shot with ISO400 and one with ISO800 and basically illuminated a spot with a damped laserpointer (in a dark room). I wanted to calculate the exposure time that I need to saturate one of the channels. I noticed that the maximum value I could get for ISO400 was above 14500, while for the ISO800 I couldn't get the value above 13000 which doesn't make sense to me, since the wavelength of the laser didn't change and only the ISO setting was increased.
bye, Peter