phoboslab / qoi

The “Quite OK Image Format” for fast, lossless image compression
MIT License
6.85k stars 327 forks source link

Need to encode Infrared Data #212

Closed Cyrille-de-Brebisson closed 1 year ago

Cyrille-de-Brebisson commented 2 years ago

Hello,

Could this be used to encode a single channel IR image?

Could it be used to encode an image with RGB + IR? (ie, could I use the A channel for IR data?)

Thanks, Cyrille

ratchetfreak commented 2 years ago

single channel can be done. It's not optimal but fairly straightforward

however the format is optimized for constant alpha so using alpha as a full fledged fourth color channel will degrade the compression a lot.