improved XYB conversion

This commit is contained in:
minjaesong
2025-08-27 01:37:43 +09:00
parent 33e77e378e
commit cda9a34b23
4 changed files with 40 additions and 18 deletions

View File

@@ -12,7 +12,7 @@
// XYB conversion constants from JPEG XL specification
static const double XYB_BIAS = 0.00379307325527544933;
static const double CBRT_BIAS = 0.01558; // cbrt(XYB_BIAS)
static const double CBRT_BIAS = 0.155954200549248620; // cbrt(XYB_BIAS)
// RGB to LMS mixing coefficients
static const double RGB_TO_LMS[3][3] = {