Better color pipeline

This commit is contained in:
Martijn Braam
2023-07-25 14:10:08 +02:00
parent 59f18d7bd2
commit 10103a2834
2 changed files with 12 additions and 10 deletions

View File

@@ -1,6 +1,10 @@
static float xyz_to_srgb[] = { 3.2404542f, -1.5371385f, -0.4985314f,
-0.9692660f, 1.8760108f, 0.0415560f,
0.0556434f, -0.2040259f, 1.0572252f };
static float XYZD50_to_D65[] = { 0.9555766f, -0.0230393f, 0.0631636f,
-0.0282895f, 1.0099416f, 0.0210077f,
0.0122982f, -0.0204830f, 1.3299098f };
static float XYZD65_to_sRGB[] = { 3.2406f, -1.5372f, -0.4986f,
-0.9689f, 1.8758f, 0.0415f,
0.0557f, -0.2040f, 1.0570f };
void multiply_matrices(float a[9], float b[9], float out[9]);