Files
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

30 lines
1.6 KiB
Java

package androidx.vectordrawable.graphics.drawable;
import android.animation.TypeEvaluator;
import androidx.annotation.RestrictTo;
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP_PREFIX})
/* loaded from: classes.dex */
public class ArgbEvaluator implements TypeEvaluator {
private static final ArgbEvaluator sInstance = new ArgbEvaluator();
public static ArgbEvaluator getInstance() {
return sInstance;
}
@Override // android.animation.TypeEvaluator
public Object evaluate(float f, Object obj, Object obj2) {
int intValue = ((Integer) obj).intValue();
float f2 = ((intValue >> 24) & 255) / 255.0f;
int intValue2 = ((Integer) obj2).intValue();
float pow = (float) Math.pow(((intValue >> 16) & 255) / 255.0f, 2.2d);
float pow2 = (float) Math.pow(((intValue >> 8) & 255) / 255.0f, 2.2d);
float pow3 = (float) Math.pow((intValue & 255) / 255.0f, 2.2d);
float pow4 = (float) Math.pow(((intValue2 >> 16) & 255) / 255.0f, 2.2d);
float f3 = f2 + (((((intValue2 >> 24) & 255) / 255.0f) - f2) * f);
float pow5 = pow2 + ((((float) Math.pow(((intValue2 >> 8) & 255) / 255.0f, 2.2d)) - pow2) * f);
float pow6 = pow3 + (f * (((float) Math.pow((intValue2 & 255) / 255.0f, 2.2d)) - pow3));
return Integer.valueOf((Math.round(((float) Math.pow(pow + ((pow4 - pow) * f), 0.45454545454545453d)) * 255.0f) << 16) | (Math.round(f3 * 255.0f) << 24) | (Math.round(((float) Math.pow(pow5, 0.45454545454545453d)) * 255.0f) << 8) | Math.round(((float) Math.pow(pow6, 0.45454545454545453d)) * 255.0f));
}
}