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.java430 public static void colorToXYZ(@ColorInt int color, @NonNull double[] outXyz) { in colorToXYZ() argument
431 RGBToXYZ(Color.red(color), Color.green(color), Color.blue(color), outXyz); in colorToXYZ() local
453 @NonNull double[] outXyz) { in RGBToXYZ() argument
454 if (outXyz.length != 3) { in RGBToXYZ()
465 outXyz[0] = 100 * (sr * 0.4124 + sg * 0.3576 + sb * 0.1805); in RGBToXYZ()
466 outXyz[1] = 100 * (sr * 0.2126 + sg * 0.7152 + sb * 0.0722); in RGBToXYZ()
467 outXyz[2] = 100 * (sr * 0.0193 + sg * 0.1192 + sb * 0.9505); in RGBToXYZ()
522 @NonNull double[] outXyz) {
534 outXyz[0] = xr * XYZ_WHITE_REFERENCE_X;
535 outXyz[1] = yr * XYZ_WHITE_REFERENCE_Y;
[all …]
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java858 public static void colorToXYZ(@ColorInt int color, @NonNull double[] outXyz) { in colorToXYZ() argument
859 RGBToXYZ(Color.red(color), Color.green(color), Color.blue(color), outXyz); in colorToXYZ() local
881 @NonNull double[] outXyz) { in RGBToXYZ() argument
882 if (outXyz.length != 3) { in RGBToXYZ()
893 outXyz[0] = 100 * (sr * 0.4124 + sg * 0.3576 + sb * 0.1805); in RGBToXYZ()
894 outXyz[1] = 100 * (sr * 0.2126 + sg * 0.7152 + sb * 0.0722); in RGBToXYZ()
895 outXyz[2] = 100 * (sr * 0.0193 + sg * 0.1192 + sb * 0.9505); in RGBToXYZ()
950 @NonNull double[] outXyz) {
962 outXyz[0] = xr * XYZ_WHITE_REFERENCE_X;
963 outXyz[1] = yr * XYZ_WHITE_REFERENCE_Y;
[all …]