And specific followup: there is no document mode in LibRaw::dcraw_process (and dcraw_emu), if you want to get something close, then an exact match of values is not guaranteed with parameters your specified or any other parameter values (in addition to the fact that the black level may differ in some cases)
And specific followup: there is no document mode in LibRaw::dcraw_process (and dcraw_emu), if you want to get something close, then an exact match of values is not guaranteed with parameters your specified or any other parameter values (in addition to the fact that the black level may differ in some cases)