Tom94 / tev

High dynamic range (HDR) image viewer for graphics people
BSD 3-Clause "New" or "Revised" License
1.08k stars 86 forks source link

PF4 (PFM but with RGBA) #109

Closed Wouterdek closed 3 years ago

Wouterdek commented 3 years ago

tev already supports PFM, which is very useful for quickly/easily writing out HDR images. However, it is currently limited to monochrome or RGB. To add RGBA support, an extension exists called PF4 which adds an extra alpha channel. You can find more details here: https://www.cse.cuhk.edu.hk/~ttwong/data/hdrfire/hdrfire.html

The only change compared to PFM is the magic keyword in the header, and the extra 4 bytes per pixel, so adding support should be fairly easy.

Thank you for creating tev!