Panasonic Lumix DC GH6 raw RW2 support

The raws created by the new DC GH6 camera by Panasonic use a new raw rw2 format

it seems using

pana_encoding=8
and
pana_bpp=16

I created an issue on rawtherapee bug tracker, but if some people have here knowledge in this field, I am also putting the information. I assume the code can be ported from and between if found.

(The raw files were created by me, feel free to use these in any way, if you need a licence WTFPL)

One file created by a GH6 is here
https://filebin.net/1bh53vgllqhi2oy1/P1000265.RW2

sets of white frame according to rawtherapee nomenclature.
https://filebin.net/w4w7wo1juux5n1sg

Forums: 

Yes, this is completely new

Yes, this is completely new encoding format, nothing common with previous panasonic formats.

-- Alex Tutubalin @LibRaw LLC

Will GH6 raw format supported

Will GH6 raw format supported in the next release/snapshot?
Regards
Ugo

Most likely not

Most likely not

-- Alex Tutubalin @LibRaw LLC

I tried to inspect a bit more

I tried to inspect a bit more the situation:

rawtherapee which uses some custom dcraw success in extracting the compressed raw data,
but it fails in decoding the decompressed structure.
I modified it to dump the uncompressed raw (which display as garbage currently).

For a 25 mb pixels image, there is exactly 50 mbytes of decoded data being decoded.
which correspond to 2 bytes per pixel, which seems to be confirming the 16 bits per pixel.

I tried making a black frame and a white frame,
just to see if I could understand something, but the result are not that great:

The first bytes of the frames are looking like that:

white frame:

00000000: dfce f87f 7b8c ffdb d77c 9d99 7c14 29bd  ....{....|..|.).
00000010: 91a7 d027 0405 22d3 147d 3371 f16b 0b07  ...'.."..}3q.k..

black frame:

00000000: 1ba4 1b9c 1b80 1bb0 b707 f8d9 cdf8 12fa  ................
00000010: f71f 4e32 e6ad f321 9dff d53f 2731 ead1  ..N2...!...?'1..

So...
either they are crypted or salted,
either the colorspace is uncommon,
either I am missing something, which can be possible as I am far from an expert in this domain.

The data are there : (including the two RW2 files)

http://esby.free.fr/perso/GH6-RW2/

See
http://esby.free.fr/perso/GH6-RW2/P1000404-black.info
and
http://esby.free.fr/perso/GH6-RW2/P1000407-white.info

for the filesizes and basic descriptions

(the dng were producted by Adobe Dngconverter 14_3 under wine staging 7.2 )

RawDigger a LibRaw product, supports GH6 image decoding

If you download a trial of RawDigger at https://www.rawdigger.com/download you can open a GH6 raw file now. RawDigger is a for-purchase product of LibRaw, correct (it says LibRaw LLC in the footer of the site page).

Any chance someone from LibRaw can answer the question, "if RawDigger now supports GH6, does that mean that a current or soon to be released update to LibRaw will have support for the GH6 .RW2 format?"