Home
last modified time | relevance | path

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

/cts/tests/tests/graphics/src/android/graphics/cts/utils/
DCamUtils.java80 static int intFromLstar(float lstar) { in intFromLstar() argument
81 if (lstar < 1) { in intFromLstar()
83 } else if (lstar > 99) { in intFromLstar()
88 float fy = (lstar + 16.0f) / 116.0f; in intFromLstar()
96 boolean lExceedsEpsilonKappa = (lstar > 8.0f); in intFromLstar()
97 float yT = lExceedsEpsilonKappa ? fy * fy * fy : lstar / kappa; in intFromLstar()
144 static float yFromLstar(float lstar) { in yFromLstar() argument
146 if (lstar > ke) { in yFromLstar()
147 return (float) Math.pow(((lstar + 16.0) / 116.0), 3) * 100f; in yFromLstar()
149 return lstar / (24389f / 27f) * 100f; in yFromLstar()
DCam.java131 public static int getInt(float hue, float chroma, float lstar) { in getInt() argument
132 return getInt(hue, chroma, lstar, Frame.DEFAULT); in getInt()
338 public static int getInt(float hue, float chroma, float lstar, Frame frame) { in getInt() argument
382 if (chroma < 1.0 || Math.round(lstar) <= 0.0 || Math.round(lstar) >= 100.0) { in getInt()
383 return CamUtils.intFromLstar(lstar); in getInt()
402 Cam possibleAnswer = findCamByJ(hue, mid, lstar); in getInt()
436 return CamUtils.intFromLstar(lstar); in getInt()
446 private static Cam findCamByJ(float hue, float chroma, float lstar) { in findCamByJ() argument
463 float dL = Math.abs(lstar - clippedLstar); in findCamByJ()
491 if (clippedLstar < lstar) { in findCamByJ()