libsdl-org / SDL_image

Image decoding for many popular formats for Simple Directmedia Layer.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JXL decodes into sRGB colorspace

slouken opened this issue · comments

SDL currently uses 8-bit linear RGB for surfaces, but the JXL decoder outputs sRGB. We need to convert the pixels to linear RGB before returning the surface.