Home
last modified time | relevance | path

Searched refs:normalizedVal (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/
DBrightnessUtils.java55 final float normalizedVal = MathUtils.norm(GAMMA_SPACE_MIN, GAMMA_SPACE_MAX, val); in convertGammaToLinear() local
57 if (normalizedVal <= R) { in convertGammaToLinear()
58 ret = MathUtils.sq(normalizedVal / R); in convertGammaToLinear()
60 ret = MathUtils.exp((normalizedVal - C) / A) + B; in convertGammaToLinear()
78 final float normalizedVal = MathUtils.norm(GAMMA_SPACE_MIN, GAMMA_SPACE_MAX, val); in convertGammaToLinearFloat() local
80 if (normalizedVal <= R) { in convertGammaToLinearFloat()
81 ret = MathUtils.sq(normalizedVal / R); in convertGammaToLinearFloat()
83 ret = MathUtils.exp((normalizedVal - C) / A) + B; in convertGammaToLinearFloat()
131 final float normalizedVal = MathUtils.norm(min, max, val) * 12; in convertLinearToGammaFloat() local
133 if (normalizedVal <= 1f) { in convertLinearToGammaFloat()
[all …]