Lines Matching defs:brightness
113 // where B is the normalized [-1..1] brightness value
117 static sk_sp<SkData> make_brightness_coeffs(float brightness) {
118 const float coeff_a = std::pow(2.0f, brightness * 1.8f);
164 // In 'legacy' mode, brightness is
184 const auto brightness = SkTPin(fBrightness, -100.0f, 100.0f) / 255, // [-100/255 .. 100/255]
195 // The component offset is derived from both brightness and contrast:
203 const auto B = 0.5f * (1 - S) + brightness * std::max(S, 1.0f);
216 const auto brightness = SkTPin(fBrightness, -150.0f, 150.0f) / 150, // [-1.0 .. 1]
219 auto b_eff = SkScalarNearlyZero(brightness)
221 : fBrightnessEffect->makeColorFilter(make_brightness_coeffs(brightness)),