Lines Matching defs:Sat
433 static inline int Sat(int r, int g, int b) {
500 // B(Cb, Cs) = SetLum(SetSat(Cs, Sat(Cb)), Lum(Cb))
518 SetSat(&Sr, &Sg, &Sb, Sat(dr, dg, db) * sa);
534 // B(Cb, Cs) = SetLum(SetSat(Cb, Sat(Cs)), Lum(Cb))
552 SetSat(&Dr, &Dg, &Db, Sat(sr, sg, sb) * da);
1022 // SetLum(SetSat(S * Da, Sat(D * Sa)), Sa*Da, D*Sa) + (1 - Sa) * D + (1 - Da) * S
1036 // SetLum(SetSat(D * Sa, Sat(S * Da)), Sa*Da, D*Sa)) + (1 - Sa) * D + (1 - Da) * S
1250 GrGLShaderVar("sat", kFloat_GrSLType),
1255 "\t\tresult.g = sat * (midComp - minComp) / (maxComp - minComp);\n"
1256 "\t\tresult.b = sat;\n"
1273 setSatBody.appendf("\tfloat sat = %s(satColor);\n"
1276 "\t\t\thueLumColor.rgb = %s(hueLumColor.r, hueLumColor.g, hueLumColor.b, sat);\n"
1278 "\t\t\thueLumColor.rbg = %s(hueLumColor.r, hueLumColor.b, hueLumColor.g, sat);\n"
1280 "\t\t\thueLumColor.brg = %s(hueLumColor.b, hueLumColor.r, hueLumColor.g, sat);\n"
1283 "\t\thueLumColor.grb = %s(hueLumColor.g, hueLumColor.r, hueLumColor.b, sat);\n"
1285 "\t\thueLumColor.gbr = %s(hueLumColor.g, hueLumColor.b, hueLumColor.r, sat);\n"
1287 "\t\thueLumColor.bgr = %s(hueLumColor.b, hueLumColor.g, hueLumColor.r, sat);\n"