NetMirror.apk
Download file
package androidx.core.content.res;
import android.graphics.Color;
/* JADX INFO: loaded from: classes.dex */
abstract class b {
/* JADX INFO: renamed from: a, reason: collision with root package name */
static final float[][] f4428a = {new float[]{0.401288f, 0.650173f, -0.051461f}, new float[]{-0.250268f, 1.204414f, 0.045854f}, new float[]{-0.002079f, 0.048952f, 0.953127f}};
/* JADX INFO: renamed from: b, reason: collision with root package name */
static final float[][] f4429b = {new float[]{1.8620678f, -1.0112547f, 0.14918678f}, new float[]{0.38752654f, 0.62144744f, -0.00897398f}, new float[]{-0.0158415f, -0.03412294f, 1.0499644f}};
/* JADX INFO: renamed from: c, reason: collision with root package name */
static final float[] f4430c = {95.047f, 100.0f, 108.883f};
/* JADX INFO: renamed from: d, reason: collision with root package name */
static final float[][] f4431d = {new float[]{0.41233894f, 0.35762063f, 0.18051042f}, new float[]{0.2126f, 0.7152f, 0.0722f}, new float[]{0.01932141f, 0.11916382f, 0.9503448f}};
static int a(float f3) {
if (f3 < 1.0f) {
return -16777216;
}
if (f3 > 99.0f) {
return -1;
}
float f4 = (f3 + 16.0f) / 116.0f;
float f5 = f3 > 8.0f ? f4 * f4 * f4 : f3 / 903.2963f;
float f6 = f4 * f4 * f4;
boolean z3 = f6 > 0.008856452f;
float f7 = z3 ? f6 : ((f4 * 116.0f) - 16.0f) / 903.2963f;
if (!z3) {
f6 = ((f4 * 116.0f) - 16.0f) / 903.2963f;
}
float[] fArr = f4430c;
return androidx.core.graphics.a.a(f7 * fArr[0], f5 * fArr[1], f6 * fArr[2]);
}
static float b(int i3) {
return c(g(i3));
}
static float c(float f3) {
float f4 = f3 / 100.0f;
return f4 <= 0.008856452f ? f4 * 903.2963f : (((float) Math.cbrt(f4)) * 116.0f) - 16.0f;
}
static float d(float f3, float f4, float f5) {
return f3 + ((f4 - f3) * f5);
}
static float e(int i3) {
float f3 = i3 / 255.0f;
return (f3 <= 0.04045f ? f3 / 12.92f : (float) Math.pow((f3 + 0.055f) / 1.055f, 2.4000000953674316d)) * 100.0f;
}
static void f(int i3, float[] fArr) {
float fE = e(Color.red(i3));
float fE2 = e(Color.green(i3));
float fE3 = e(Color.blue(i3));
float[][] fArr2 = f4431d;
float[] fArr3 = fArr2[0];
fArr[0] = (fArr3[0] * fE) + (fArr3[1] * fE2) + (fArr3[2] * fE3);
float[] fArr4 = fArr2[1];
fArr[1] = (fArr4[0] * fE) + (fArr4[1] * fE2) + (fArr4[2] * fE3);
float[] fArr5 = fArr2[2];
fArr[2] = (fE * fArr5[0]) + (fE2 * fArr5[1]) + (fE3 * fArr5[2]);
}
static float g(int i3) {
float fE = e(Color.red(i3));
float fE2 = e(Color.green(i3));
float fE3 = e(Color.blue(i3));
float[] fArr = f4431d[1];
return (fE * fArr[0]) + (fE2 * fArr[1]) + (fE3 * fArr[2]);
}
static float h(float f3) {
return (f3 > 8.0f ? (float) Math.pow((((double) f3) + 16.0d) / 116.0d, 3.0d) : f3 / 903.2963f) * 100.0f;
}
}
⚠️ This content was hidden by an advertisement filtering extension in your browser. Please disable it and reload the page to access the decompiled content.
We only display one small text ad to keep this service free. Here's what it looks like:
Read the Docs for Business: You write the docs. We do the rest.
Try it today!Ad by EthicalAds
Download file