#QOI decoder corruption when decoding a 32 bit image file to 24 bit data

3 messages · Page 1 of 1 (latest)

faint oracle
#

I am working on a QOI library as a hobby project. I have a working decoder. However, it produces corrupted images when trying to decode an RGBA image to RGB. I expect the alpha to stay at 255 in that case.

It produces this 24 bit image from a 32 bit QOI.

#

I am not sure what causes these line artifacts