A Fujitsu RAF file from a Super-CCD sensor camera contains two images. One has the data from the larger more sensitive "S" sensels, the other for the smaller, less sensitive "R" sensels. These are supposed to be HDR combined while processing the file. Please refer to the discussion at https://translate.google.ie/translate?sl=auto&tl=en&u=http%3A%2F%2Fwww.g... for an overview of this.
As far as I can determine libraw doesn't merge the data from the 2nd image at all, but simply returns (by default) the image data for the "S" sensels. AFAICT it is possible to retrieve the "R" image by specifying imgdata.params.shot_select =1
Do you think there's any chance that libraw retrieve both images and merge them to present the combined data?
Yes, use shot_select
Yes, use shot_select parameter to extract second frame.
Correct processing/merge/etc is the task of your code. LibRaw::dcraw_process() does not do merge.
-- Alex Tutubalin @LibRaw LLC
I could well be barking up
I could well be barking up the wrong tree, but doesn't the code handle merging of 4-shot Pentax files which is really quite a similar concept (afaict).
Luckily, I'm not too bothered by this (though one of my users is nagging me about it).