Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java387 public static void colorToLAB(@ColorInt int color, @NonNull double[] outLab) { in colorToLAB() argument
388 RGBToLAB(Color.red(color), Color.green(color), Color.blue(color), outLab); in colorToLAB() local
407 @NonNull double[] outLab) { in RGBToLAB() argument
409 RGBToXYZ(r, g, b, outLab); in RGBToLAB()
411 XYZToLAB(outLab[0], outLab[1], outLab[2], outLab); in RGBToLAB()
490 @NonNull double[] outLab) {
491 if (outLab.length != 3) {
497 outLab[0] = Math.max(0, 116 * y - 16);
498 outLab[1] = 500 * (x - y);
499 outLab[2] = 200 * (y - z);
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java815 public static void colorToLAB(@ColorInt int color, @NonNull double[] outLab) { in colorToLAB() argument
816 RGBToLAB(Color.red(color), Color.green(color), Color.blue(color), outLab); in colorToLAB() local
835 @NonNull double[] outLab) { in RGBToLAB() argument
837 RGBToXYZ(r, g, b, outLab); in RGBToLAB()
839 XYZToLAB(outLab[0], outLab[1], outLab[2], outLab); in RGBToLAB()
918 @NonNull double[] outLab) {
919 if (outLab.length != 3) {
925 outLab[0] = Math.max(0, 116 * y - 16);
926 outLab[1] = 500 * (x - y);
927 outLab[2] = 200 * (y - z);