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

162 lines
5.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
/* loaded from: classes.dex */
public final class kII extends C0743NnU<C17257vKh> {
public kII(C17257vKh c17257vKh) {
super(c17257vKh);
}
@Override // o.C0743NnU
public final String d(int i) {
if (i == 0) {
return e(0, 4);
}
if (i == 512) {
int[] i2 = ((C17257vKh) this.a).i(512);
if (i2 == null) {
return null;
}
StringBuilder sb = new StringBuilder();
for (int i3 = 0; i3 < i2.length; i3++) {
if (i3 != 0) {
sb.append(" ");
}
sb.append((int) ((short) i2[i3]));
}
return sb.toString();
}
if (i == 4124) {
int[] i4 = ((C17257vKh) this.a).i(4124);
if (i4 == null) {
Integer j = ((C17257vKh) this.a).j(4124);
if (j == null) {
return null;
}
i4 = new int[]{j.intValue()};
}
if (i4.length == 0) {
return null;
}
StringBuilder sb2 = new StringBuilder();
short s = (short) i4[0];
if (s == 0) {
sb2.append("Off");
} else if (s == 2) {
sb2.append("On (2 frames)");
} else if (s == 3) {
sb2.append("On (3 frames)");
} else {
sb2.append("Unknown (");
sb2.append((int) ((short) i4[0]));
sb2.append(")");
}
if (i4.length > 1) {
sb2.append("; ");
sb2.append((int) ((short) i4[1]));
}
return sb2.toString();
}
if (i != 4370) {
if (i == 6400) {
byte[] b = ((C17257vKh) this.a).b(6400);
if (b == null || b.length < 2) {
return null;
}
String format = String.format("%d %d", Byte.valueOf(b[0]), Byte.valueOf(b[1]));
if (format.equals("0 0")) {
return "Off";
}
if (format.equals("0 1")) {
return "On";
}
StringBuilder sb3 = new StringBuilder("Unknown (");
sb3.append(format);
sb3.append(")");
return sb3.toString();
}
if (i != 6401) {
switch (i) {
case 4112:
Integer j2 = ((C17257vKh) this.a).j(4112);
if (j2 == null) {
return null;
}
if (j2.intValue() == 0) {
return "(none)";
}
StringBuilder sb4 = new StringBuilder();
short shortValue = j2.shortValue();
if ((shortValue & 1) != 0) {
sb4.append("Noise Reduction, ");
}
if (((shortValue >> 1) & 1) != 0) {
sb4.append("Noise Filter, ");
}
if (((shortValue >> 2) & 1) != 0) {
sb4.append("Noise Filter (ISO Boost), ");
}
return sb4.substring(0, sb4.length() - 2);
case 4113:
return a(4113, "Off", "On");
case 4114:
return a(4114, "Off", "On");
default:
return super.d(i);
}
}
return a(6401, "Vertical", "Horizontal");
}
byte[] b2 = ((C17257vKh) this.a).b(4370);
if (b2 == null || b2.length < 2) {
return null;
}
String format2 = String.format("%d %d", Byte.valueOf(b2[0]), Byte.valueOf(b2[1]));
if (format2.equals("1 1")) {
return "4:3";
}
if (format2.equals("1 4")) {
return "1:1";
}
if (format2.equals("2 1")) {
return "3:2 (RAW)";
}
if (format2.equals("2 2")) {
return "3:2";
}
if (format2.equals("3 1")) {
return "16:9 (RAW)";
}
if (format2.equals("3 3")) {
return "16:9";
}
if (format2.equals("4 1")) {
return "1:1 (RAW)";
}
if (format2.equals("4 4")) {
return "6:6";
}
if (format2.equals("5 5")) {
return "5:4";
}
if (format2.equals("6 6")) {
return "7:6";
}
if (format2.equals("7 7")) {
return "6:5";
}
if (format2.equals("8 8")) {
return "7:5";
}
if (format2.equals("9 1")) {
return "3:4 (RAW)";
}
if (format2.equals("9 9")) {
return "3:4";
}
StringBuilder sb5 = new StringBuilder("Unknown (");
sb5.append(format2);
sb5.append(")");
return sb5.toString();
}
}