syoyo / tinydng

Header-only Tiny DNG/TIFF loader and writer in C++
MIT License
154 stars 30 forks source link

[feature] Decode Apple ProRAW LosslessJPEG #10

Closed syoyo closed 3 years ago

syoyo commented 3 years ago

Apple ProRAW uses 12bit LosslessJPEG

I found there is an issue which fails to decode when predicator is 7.

https://github.com/syoyo/tinydngloader/blob/e93d5ca646ed191bd9843e5b825e239bdba06afb/tiny_dng_loader.h#L1092

Patch will be soon provided in proraw branch.

syoyo commented 3 years ago

Primarily with this fix(need to lookup previous pixel's channel value)

https://github.com/syoyo/tinydngloader/blob/a49bcbbabab05779ba3cb0d990b9e862746b9fee/tiny_dng_loader.h#L1094

tinydngloader now can parse Apple ProRAW image. :tada: