But I just don’t know how they know the exact algorithm for decompressing raw bytes? I didn’t find any official documents or articles about Panasonic raw file encoding and compression details.
I would like to know where I can get this information instead of just copying the code from rawspeed/libraw to my library?
A lot of smart guesses, and in many cases someone with a copy of the firmware or “official” manufacturer tools and a copy of IDA Pro along with the knowledge of how to use it.
(For example, the Nikon community likely has gotten quite a few useful bits from the NikonHacker crew, like leegong. leegong has poked at some Sony lens and body firmware products too that greatly helped some of my own lens protocol work - E-mount electronic protocol reverse engineering - Dyxum - Page 1 )
I found libraw to be a bit slow, so I tried to create a faster library written in rust. In my test of the current version rendering some uncompressed raw files, it took only 1/3 - 1/2 of the time of libraw.
Besides I just want to develop DC-S1 Raw files, and the missing bit is the lens correction. Would be thankful if your tool would accomplish this as first. I’m a big fan of Rust, although I cannot write it.