lifthrasiir / j40

J40: Independent, self-contained JPEG XL decoder
Other
231 stars 3 forks source link

Color management #9

Open lifthrasiir opened 1 year ago

lifthrasiir commented 1 year ago

Color management in JPEG XL is a complicated story. Ideally it's the best possible design: every JPEG XL codestream has a defined color profile (either ICC profile or abbreviated color space parameters) and it should be converted to the display color space. Unfortunately the status quo is not that ideal.

As such, I don't think J40 will ever implement the full ICC profile by itself (at least in C). This is also the case in libjxl, where either skcms or Little CMS 2 can be used, but it is a bit baffling to require an external library to implement the full format. Any other ideas are welcomed.

Anyway, this decision leads to the following subtasks: