Searched refs:lstar (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/java/com/android/internal/graphics/cam/ |
D | CamUtils.java | 117 public static int argbFromLstar(double lstar) { in argbFromLstar() argument 118 double fy = (lstar + 16.0) / 116.0; in argbFromLstar() 123 boolean lExceedsEpsilonKappa = lstar > 8.0; in argbFromLstar() 124 double y = lExceedsEpsilonKappa ? fy * fy * fy : lstar / kappa; in argbFromLstar() 126 double x = cubeExceedEpsilon ? fx * fx * fx : lstar / kappa; in argbFromLstar() 127 double z = cubeExceedEpsilon ? fz * fz * fz : lstar / kappa; in argbFromLstar() 194 static int intFromLstar(float lstar) { in intFromLstar() argument 195 if (lstar < 1) { in intFromLstar() 197 } else if (lstar > 99) { in intFromLstar() 202 float fy = (lstar + 16.0f) / 116.0f; in intFromLstar() [all …]
|
D | Cam.java | 134 public static int getInt(float hue, float chroma, float lstar) { in getInt() argument 135 return getInt(hue, chroma, lstar, Frame.DEFAULT); in getInt() 345 public static int getInt(float hue, float chroma, float lstar, @NonNull Frame frame) { in getInt() argument 393 return HctSolver.solveToInt(hue, chroma, lstar); in getInt() 396 if (chroma < 1.0 || Math.round(lstar) <= 0.0 || Math.round(lstar) >= 100.0) { in getInt() 397 return CamUtils.intFromLstar(lstar); in getInt() 416 Cam possibleAnswer = findCamByJ(hue, mid, lstar); in getInt() 450 return CamUtils.intFromLstar(lstar); in getInt() 461 private static Cam findCamByJ(float hue, float chroma, float lstar) { in findCamByJ() argument 478 float dL = Math.abs(lstar - clippedLstar); in findCamByJ() [all …]
|
D | HctSolver.java | 681 public static int solveToInt(double hueDegrees, double chroma, double lstar) { in solveToInt() argument 682 if (chroma < 0.0001 || lstar < 0.0001 || lstar > 99.9999) { in solveToInt() 683 return CamUtils.argbFromLstar(lstar); in solveToInt() 687 double y = CamUtils.yFromLstar(lstar); in solveToInt() 718 public static Cam solveToCam(double hueDegrees, double chroma, double lstar) { in solveToCam() argument 719 return Cam.fromInt(solveToInt(hueDegrees, chroma, lstar)); in solveToCam()
|
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
D | Contrast.java | 64 public static float lstarToY(float lstar) { in lstarToY() argument 67 if (lstar > ke) { in lstarToY() 68 return (float) (Math.pow(((lstar + 16.0) / 116.0), 3) * 100.0); in lstarToY() 70 return (float) (lstar / (24389 / 27) * 100.0); in lstarToY()
|
D | Target.java | 222 float lstar = Contrast.yToLstar(counterpartY); in setContrastRatio() local 225 if (lstar < 50) { in setContrastRatio()
|
/frameworks/base/core/java/com/android/internal/graphics/ |
D | ColorUtils.java | 365 public static int CAMToColor(float hue, float chroma, float lstar) { in CAMToColor() argument 366 return Cam.getInt(hue, chroma, lstar); in CAMToColor()
|