Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/graphics/
DColorUtils.java396 public static void colorToXYZ(@ColorInt int color, @NonNull double[] outXyz) { in colorToXYZ() argument
397 RGBToXYZ(Color.red(color), Color.green(color), Color.blue(color), outXyz); in colorToXYZ() local
419 @NonNull double[] outXyz) { in RGBToXYZ() argument
420 if (outXyz.length != 3) { in RGBToXYZ()
431 outXyz[0] = 100 * (sr * 0.4124 + sg * 0.3576 + sb * 0.1805); in RGBToXYZ()
432 outXyz[1] = 100 * (sr * 0.2126 + sg * 0.7152 + sb * 0.0722); in RGBToXYZ()
433 outXyz[2] = 100 * (sr * 0.0193 + sg * 0.1192 + sb * 0.9505); in RGBToXYZ()
488 @NonNull double[] outXyz) {
500 outXyz[0] = xr * XYZ_WHITE_REFERENCE_X;
501 outXyz[1] = yr * XYZ_WHITE_REFERENCE_Y;
[all …]
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java766 public static void colorToXYZ(@ColorInt int color, @NonNull double[] outXyz) { in colorToXYZ() argument
767 RGBToXYZ(Color.red(color), Color.green(color), Color.blue(color), outXyz); in colorToXYZ() local
789 @NonNull double[] outXyz) { in RGBToXYZ() argument
790 if (outXyz.length != 3) { in RGBToXYZ()
801 outXyz[0] = 100 * (sr * 0.4124 + sg * 0.3576 + sb * 0.1805); in RGBToXYZ()
802 outXyz[1] = 100 * (sr * 0.2126 + sg * 0.7152 + sb * 0.0722); in RGBToXYZ()
803 outXyz[2] = 100 * (sr * 0.0193 + sg * 0.1192 + sb * 0.9505); in RGBToXYZ()
858 @NonNull double[] outXyz) {
870 outXyz[0] = xr * XYZ_WHITE_REFERENCE_X;
871 outXyz[1] = yr * XYZ_WHITE_REFERENCE_Y;
[all …]