what-the-bank/sources/o/Yeg.java

103 lines
3.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import org.bouncycastle.math.Primes;
/* loaded from: classes.dex */
public final class Yeg extends C0743NnU<VyV> {
public Yeg(VyV vyV) {
super(vyV);
}
@Override // o.C0743NnU
public final String d(int i) {
if (i == 204 || i == 205) {
String o2 = ((VyV) this.a).o(i);
if (o2 == null) {
return null;
}
StringBuilder sb = new StringBuilder();
sb.append(o2);
sb.append(" pixels");
return sb.toString();
}
if (i == 209) {
Integer j = ((VyV) this.a).j(209);
if (j == null) {
return null;
}
int intValue = j.intValue();
if (intValue == 1 || intValue == 2 || intValue == 4 || intValue == 8 || intValue == 16 || intValue == 24 || intValue == 32) {
StringBuilder sb2 = new StringBuilder();
sb2.append(j);
sb2.append("-bit color");
return sb2.toString();
}
if (intValue == 34 || intValue == 36 || intValue == 40) {
StringBuilder sb3 = new StringBuilder();
sb3.append(j.intValue() - 32);
sb3.append("-bit grayscale");
return sb3.toString();
}
StringBuilder sb4 = new StringBuilder("Unknown (");
sb4.append(j);
sb4.append(")");
return sb4.toString();
}
if (i != 211) {
if (i != 213) {
return super.d(i);
}
Integer j2 = ((VyV) this.a).j(213);
if (j2 == null) {
return null;
}
int intValue2 = j2.intValue();
if (intValue2 == -1) {
Integer j3 = ((VyV) this.a).j(209);
return (j3 == null || j3.intValue() >= 16) ? "None" : "Default";
}
if (intValue2 == 0) {
return "Color table within file";
}
StringBuilder sb5 = new StringBuilder("Unknown (");
sb5.append(j2);
sb5.append(")");
return sb5.toString();
}
Integer j4 = ((VyV) this.a).j(Primes.SMALL_FACTOR_LIMIT);
if (j4 == null) {
return null;
}
int intValue3 = j4.intValue();
if (intValue3 == 0) {
return "Copy";
}
if (intValue3 == 32) {
return "Blend";
}
if (intValue3 == 36) {
return "Transparent";
}
if (intValue3 == 64) {
return "Dither copy";
}
switch (intValue3) {
case 256:
return "Straight alpha";
case 257:
return "Premul white alpha";
case 258:
return "Premul black alpha";
case 259:
return "Composition (dither copy)";
case 260:
return "Straight alpha blend";
default:
StringBuilder sb6 = new StringBuilder("Unknown (");
sb6.append(j4);
sb6.append(")");
return sb6.toString();
}
}
}