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

70 lines
2.0 KiB
Java

package o;
/* loaded from: classes.dex */
public final class FWc extends C0743NnU<C4231bTz> {
public FWc(C4231bTz c4231bTz) {
super(c4231bTz);
}
@Override // o.C0743NnU
public final String d(int i) {
if (i == 1) {
Integer j = ((C4231bTz) this.a).j(1);
if (j == null) {
return null;
}
StringBuilder sb = new StringBuilder();
sb.append(j);
sb.append(" channel");
sb.append(j.intValue() != 1 ? "s" : "");
return sb.toString();
}
if (i == 2) {
Integer j2 = ((C4231bTz) this.a).j(2);
if (j2 == null) {
return null;
}
StringBuilder sb2 = new StringBuilder();
sb2.append(j2);
sb2.append(" pixel");
sb2.append(j2.intValue() != 1 ? "s" : "");
return sb2.toString();
}
if (i == 3) {
return e();
}
if (i != 4) {
if (i != 5) {
return super.d(i);
}
return a(5, "Bitmap", "Grayscale", "Indexed", "RGB", "CMYK", null, null, "Multichannel", "Duotone", "Lab");
}
Integer j3 = ((C4231bTz) this.a).j(4);
if (j3 == null) {
return null;
}
StringBuilder sb3 = new StringBuilder();
sb3.append(j3);
sb3.append(" bit");
sb3.append(j3.intValue() != 1 ? "s" : "");
sb3.append(" per channel");
return sb3.toString();
}
private String e() {
try {
Integer j = ((C4231bTz) this.a).j(3);
if (j == null) {
return null;
}
StringBuilder sb = new StringBuilder();
sb.append(j);
sb.append(" pixel");
sb.append(j.intValue() == 1 ? "" : "s");
return sb.toString();
} catch (Exception unused) {
return null;
}
}
}