Add new comment

Also I've modified your

Also I've modified your sample with commenting out params settings section, from

    Proc.imgdata.params.shot_select         = 0;        // Select first RAW, in case there are more

to (including) custom gamma section.

After that, 1st line of output is:

0,0,0,1603,2064,330,1630,1,54,64,14,16383

Same 54,64,14, as expected (if compiled with -std=c++17)

-- Alex Tutubalin @LibRaw LLC