Beep6581 / RawTherapee

A powerful cross-platform raw photo processing program
https://rawtherapee.com
GNU General Public License v3.0
2.76k stars 313 forks source link

dng OpcodeList2 gainmap support #6379

Closed heckflosse closed 1 year ago

heckflosse commented 2 years ago

I started work on dng gainmap support.

Here's a first result, left without gainmap, right with: grafik

The implementation is different to the ART implementation (well, at least for now) and runs only once over the rawdata array, while the ART implementation needs to run twice (cache-wise). This is still wip, but a PR will follow soon.

heckflosse commented 2 years ago

I created dnggainmap branch. Code is ready to test, but not ready to merge (too verbose, gui needs some changes etc.)

grafik

paolodepetrillo commented 2 years ago

Just found an unusual usage of GainMap that wouldn't work with this implementation, or with ART's. Not sure how common this is, I had never seen it in any other files. This one is in OpcodeList3 and is intended to be applied to each color channel after demosaic.

https://discuss.pixls.us/t/looking-for-samples-smartphone-dngs-with-embedded-gainmap/27296/12