• Home
  • Raw
  • Download

Lines Matching refs:chroma

63 RGBtoXYZ (const Chromaticities chroma, float Y)  in RGBtoXYZ()  argument
77 float X = chroma.white.x * Y / chroma.white.y; in RGBtoXYZ()
78 float Z = (1 - chroma.white.x - chroma.white.y) * Y / chroma.white.y; in RGBtoXYZ()
84 float d = chroma.red.x * (chroma.blue.y - chroma.green.y) + in RGBtoXYZ()
85 chroma.blue.x * (chroma.green.y - chroma.red.y) + in RGBtoXYZ()
86 chroma.green.x * (chroma.red.y - chroma.blue.y); in RGBtoXYZ()
88 float Sr = (X * (chroma.blue.y - chroma.green.y) - in RGBtoXYZ()
89 chroma.green.x * (Y * (chroma.blue.y - 1) + in RGBtoXYZ()
90 chroma.blue.y * (X + Z)) + in RGBtoXYZ()
91 chroma.blue.x * (Y * (chroma.green.y - 1) + in RGBtoXYZ()
92 chroma.green.y * (X + Z))) / d; in RGBtoXYZ()
94 float Sg = (X * (chroma.red.y - chroma.blue.y) + in RGBtoXYZ()
95 chroma.red.x * (Y * (chroma.blue.y - 1) + in RGBtoXYZ()
96 chroma.blue.y * (X + Z)) - in RGBtoXYZ()
97 chroma.blue.x * (Y * (chroma.red.y - 1) + in RGBtoXYZ()
98 chroma.red.y * (X + Z))) / d; in RGBtoXYZ()
100 float Sb = (X * (chroma.green.y - chroma.red.y) - in RGBtoXYZ()
101 chroma.red.x * (Y * (chroma.green.y - 1) + in RGBtoXYZ()
102 chroma.green.y * (X + Z)) + in RGBtoXYZ()
103 chroma.green.x * (Y * (chroma.red.y - 1) + in RGBtoXYZ()
104 chroma.red.y * (X + Z))) / d; in RGBtoXYZ()
112 M[0][0] = Sr * chroma.red.x; in RGBtoXYZ()
113 M[0][1] = Sr * chroma.red.y; in RGBtoXYZ()
114 M[0][2] = Sr * (1 - chroma.red.x - chroma.red.y); in RGBtoXYZ()
116 M[1][0] = Sg * chroma.green.x; in RGBtoXYZ()
117 M[1][1] = Sg * chroma.green.y; in RGBtoXYZ()
118 M[1][2] = Sg * (1 - chroma.green.x - chroma.green.y); in RGBtoXYZ()
120 M[2][0] = Sb * chroma.blue.x; in RGBtoXYZ()
121 M[2][1] = Sb * chroma.blue.y; in RGBtoXYZ()
122 M[2][2] = Sb * (1 - chroma.blue.x - chroma.blue.y); in RGBtoXYZ()
129 XYZtoRGB (const Chromaticities chroma, float Y) in XYZtoRGB() argument
131 return RGBtoXYZ (chroma, Y).inverse(); in XYZtoRGB()