Uwe Müssel has finally PR’d his work on porting libraw’s compressed RAF support into RawSpeed, and it is now avaliable in a raf-compressed branch.
To proceed with integration into the develop branch, among the other things, i need to have a full sample coverage of that code. Thankfully, RPU exists, and it contains all 5 out of 5 compressed raf samples (FIXME: or are there more cameras with that feature?).
I don’t have a complete guide on how to acquire such a sample, i do not know which camera with which settings produces it. I can guess that you can test whether some raw file is the sample i need by adding either derror(); or merror (0, "that is the sample"); into that branch, building RT, looking through the raws, and seeing if some RAF no longer loads.
I don’t know if I can help. To my knowledge, there are currenty only 5 Fujifilm cameras with lossless raw compression:
4 cameras with X-Trans CMOS III sensor:
X-100F, X-T20, X-T2 and X-Pro2
1 camera with a regular Bayer CFA:
GFX 50S
I looked at the official specifications of all these cameras, and on the Fujifilm website it always reports 14-bit raw. I saw no mention of 12-bit raw whatsoever.
This thread mentions 12-bit raw files for the older X-E1 and X-Pro1 cameras, but I can’t find any official Fuji documentation to back that up. And if those raw files are indeed 12-bit, I don’t think they’re a compressed version; they’re just the uncompressed raw files.
X-E1 and X-Pro1 for sure have no compressed RAW format. Only the newest generation of cameras with the new 24 MP X-Trans sensor (the four cameras @sguyader stated) plus the medium format GFX 50s support compressed RAW format. I also never heared about 12 bit compressed RAW, wouldn’t be lossless anyway, so I think the blogger alikgriffin.com is just wrong since there is clearly now difference in image quality between compressed and uncompressed Fujifilm RAWs.
I agree, but the code suggests that 12-bit compressed RAF’s exist…
I would guess it is created by some of the older cameras in high-speed shooting mode (14/12/etc fps)
I did mail the libraw with this question, hopefully they may know whether it’s a dead code not.
I just did some empirical tests with my X-T2: I shot compressed raws, in S (single frame), CL (low-speed burst), and CH (high-speed burst). Bursts are around 8 fps without the battery grip and with mechanical shutter.
Then I compared the file sizes, as I suppose 12-bit vs 14-bit would make the files differ in size:
S : 1 file of 23.3 MB
CL : 4 files of 23.6, 23.7, 23.4 and 23.7 MB
CH : 6 files of 23.7, 23.6, 23.7, 23.8, 22.5 and 22.9 MB
Clearly, there’s no significant difference in file size, so I guess they are all 14-bit.
[Edit] Now a test with battery grip and electronic shutter (burst speed is 11-14 fps):
S : 1 file of 23.1 MB
CL : 4 files of 23.7 MB
CH : 7 files of 23.7, and 1 of 23.6 MB
Same tests, but without lossless compression: all files between 50.5 and 50.6 MB.
After a brief mail exchange with the original author[s] of the code, i’m now under the impression that such sample may simply not exist in the wild yet, it is possible that no current camera produces it.
I own Fujifilm X-T3 with bunch of lenses, what can I do? white balance information of X-T3 RAW is not recognized by Darktable at this moment and so I am relying on JPG.
@darix: really!!? mine keep throwing “failed to read camera white balance information from…”. I use uncompressed RAW and that could be the reason. Compressed RAW is recognized by DT I believe.