Home
last modified time | relevance | path

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

/packages/services/Car/service/src/com/android/car/util/
DBrightnessUtils.java67 final float normalizedVal = MathUtils.norm(GAMMA_SPACE_MIN, GAMMA_SPACE_MAX, val); in convertGammaToLinear() local
69 if (normalizedVal <= R) { in convertGammaToLinear()
70 ret = MathUtils.sq(normalizedVal / R); in convertGammaToLinear()
72 ret = MathUtils.exp((normalizedVal - C) / A) + B; in convertGammaToLinear()
116 final float normalizedVal = MathUtils.norm(min, max, val) * 12; in convertLinearToGammaFloat() local
118 if (normalizedVal <= 1f) { in convertLinearToGammaFloat()
119 ret = MathUtils.sqrt(normalizedVal) * R; in convertLinearToGammaFloat()
121 ret = A * MathUtils.log(normalizedVal - B) + C; in convertLinearToGammaFloat()