Lines Matching full:srgb
107 // Prime for sRGB->P3 conversion
165 case Description::TransferFunction::SRGB:
181 case Description::TransferFunction::SRGB:
202 float EOTF_sRGB(float srgb) {
203 return srgb <= 0.04045 ? srgb / 12.92 : pow((srgb + 0.055) / 1.055, 2.4);
206 vec3 EOTF_sRGB(const vec3 srgb) {
207 return vec3(EOTF_sRGB(srgb.r), EOTF_sRGB(srgb.g), EOTF_sRGB(srgb.b));
210 vec3 EOTF(const vec3 srgb) {
211 return sign(srgb.rgb) * EOTF_sRGB(abs(srgb.rgb));