148 lines
3.6 KiB
Java
148 lines
3.6 KiB
Java
|
package o;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public abstract class RBw {
|
||
|
public static final RBw a;
|
||
|
public static final RBw b;
|
||
|
static final boolean c;
|
||
|
public static final RBw d;
|
||
|
public static final RBw e;
|
||
|
public static final RBw f;
|
||
|
public static final wrW<RBw> i;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public enum jbe {
|
||
|
MEMORY,
|
||
|
QUALITY
|
||
|
}
|
||
|
|
||
|
public abstract float a(int i2, int i3, int i4, int i5);
|
||
|
|
||
|
public abstract jbe c(int i2, int i3, int i4, int i5);
|
||
|
|
||
|
static {
|
||
|
new Sts();
|
||
|
new LWm();
|
||
|
d = new IeS();
|
||
|
a = new HBt();
|
||
|
RVV rvv = new RVV();
|
||
|
e = rvv;
|
||
|
f = new tOB();
|
||
|
b = rvv;
|
||
|
i = wrW.a("com.bumptech.glide.load.resource.bitmap.Downsampler.DownsampleStrategy", rvv);
|
||
|
c = true;
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
static class IeS extends RBw {
|
||
|
IeS() {
|
||
|
}
|
||
|
|
||
|
@Override // o.RBw
|
||
|
public final float a(int i, int i2, int i3, int i4) {
|
||
|
if (c) {
|
||
|
return Math.min(i3 / i, i4 / i2);
|
||
|
}
|
||
|
if (Math.max(i2 / i4, i / i3) != 0) {
|
||
|
return 1.0f / Integer.highestOneBit(r2);
|
||
|
}
|
||
|
return 1.0f;
|
||
|
}
|
||
|
|
||
|
@Override // o.RBw
|
||
|
public final jbe c(int i, int i2, int i3, int i4) {
|
||
|
if (c) {
|
||
|
return jbe.QUALITY;
|
||
|
}
|
||
|
return jbe.MEMORY;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
static class RVV extends RBw {
|
||
|
RVV() {
|
||
|
}
|
||
|
|
||
|
@Override // o.RBw
|
||
|
public final float a(int i, int i2, int i3, int i4) {
|
||
|
return Math.max(i3 / i, i4 / i2);
|
||
|
}
|
||
|
|
||
|
@Override // o.RBw
|
||
|
public final jbe c(int i, int i2, int i3, int i4) {
|
||
|
return jbe.QUALITY;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
static class Sts extends RBw {
|
||
|
Sts() {
|
||
|
}
|
||
|
|
||
|
@Override // o.RBw
|
||
|
public final float a(int i, int i2, int i3, int i4) {
|
||
|
if (Math.min(i2 / i4, i / i3) != 0) {
|
||
|
return 1.0f / Integer.highestOneBit(r1);
|
||
|
}
|
||
|
return 1.0f;
|
||
|
}
|
||
|
|
||
|
@Override // o.RBw
|
||
|
public final jbe c(int i, int i2, int i3, int i4) {
|
||
|
return jbe.QUALITY;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
static class LWm extends RBw {
|
||
|
LWm() {
|
||
|
}
|
||
|
|
||
|
@Override // o.RBw
|
||
|
public final float a(int i, int i2, int i3, int i4) {
|
||
|
int ceil = (int) Math.ceil(Math.max(i2 / i4, i / i3));
|
||
|
return 1.0f / (r2 << (Math.max(1, Integer.highestOneBit(ceil)) >= ceil ? 0 : 1));
|
||
|
}
|
||
|
|
||
|
@Override // o.RBw
|
||
|
public final jbe c(int i, int i2, int i3, int i4) {
|
||
|
return jbe.MEMORY;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
static class tOB extends RBw {
|
||
|
@Override // o.RBw
|
||
|
public final float a(int i, int i2, int i3, int i4) {
|
||
|
return 1.0f;
|
||
|
}
|
||
|
|
||
|
tOB() {
|
||
|
}
|
||
|
|
||
|
@Override // o.RBw
|
||
|
public final jbe c(int i, int i2, int i3, int i4) {
|
||
|
return jbe.QUALITY;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
static class HBt extends RBw {
|
||
|
HBt() {
|
||
|
}
|
||
|
|
||
|
@Override // o.RBw
|
||
|
public final float a(int i, int i2, int i3, int i4) {
|
||
|
return Math.min(1.0f, d.a(i, i2, i3, i4));
|
||
|
}
|
||
|
|
||
|
@Override // o.RBw
|
||
|
public final jbe c(int i, int i2, int i3, int i4) {
|
||
|
if (Math.min(1.0f, d.a(i, i2, i3, i4)) == 1.0f) {
|
||
|
return jbe.QUALITY;
|
||
|
}
|
||
|
return d.c(i, i2, i3, i4);
|
||
|
}
|
||
|
}
|
||
|
}
|