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

465 lines
29 KiB
Java

package o;
import java.math.RoundingMode;
import java.text.DecimalFormat;
/* loaded from: classes.dex */
public final class ins extends C0743NnU<C16037kes> {
public ins(C16037kes c16037kes) {
super(c16037kes);
}
@Override // o.C0743NnU
public final String d(int i) {
int i2;
if (i == 0) {
return e(0, 2);
}
if (i == 519) {
String o2 = ((C16037kes) this.a).o(519);
if (o2 == null) {
return null;
}
return C16037kes.b.containsKey(o2) ? C16037kes.b.get(o2) : o2;
}
if (i == 521) {
byte[] b = ((C16037kes) this.a).b(521);
if (b == null) {
return null;
}
return new String(b);
}
if (i == 770) {
return a(770, "Off", "On", "On (Preset)");
}
if (i == 4100) {
return a(4100, null, null, "On", "Off");
}
if (i == 4111) {
return a(4111, "Normal", "Hard", "Soft");
}
if (i == 4113) {
int[] i3 = ((C16037kes) this.a).i(4113);
if (i3 == null) {
return null;
}
StringBuilder sb = new StringBuilder();
for (int i4 = 0; i4 < i3.length; i4++) {
sb.append((int) ((short) i3[i4]));
if (i4 < i3.length - 1) {
sb.append(" ");
}
}
if (sb.length() != 0) {
return sb.toString();
}
return null;
}
if (i == 4117) {
int[] i5 = ((C16037kes) this.a).i(4117);
if (i5 == null) {
return null;
}
String format = String.format("%d %d", Integer.valueOf(i5[0]), Integer.valueOf(i5[1]));
return format.equals("1 0") ? "Auto" : format.equals("1 2") ? "Auto (2)" : format.equals("1 4") ? "Auto (4)" : format.equals("2 2") ? "3000 Kelvin" : format.equals("2 3") ? "3700 Kelvin" : format.equals("2 4") ? "4000 Kelvin" : format.equals("2 5") ? "4500 Kelvin" : format.equals("2 6") ? "5500 Kelvin" : format.equals("2 7") ? "6500 Kelvin" : format.equals("2 8") ? "7500 Kelvin" : format.equals("3 0") ? "One-touch" : "Unknown ".concat(String.valueOf(format));
}
if (i == 4137) {
return a(4137, "High", "Normal", "Low");
}
if (i == 4149) {
return a(4149, "No", "Yes");
}
if (i == 4106) {
return a(4106, "Normal", "Macro");
}
if (i == 4107) {
return a(4107, "Auto", "Manual");
}
if (i == 4119) {
if (((C16037kes) this.a).i(4119) == null) {
return null;
}
return String.valueOf(((short) r1[0]) / 256.0d);
}
if (i != 4120) {
switch (i) {
case 257:
return a(257, "Natural Colour", "Black & White", "Vivid Colour", "Solarization", "AdobeRGB");
case 258:
return a(258, "Raw", "Super Fine", "Fine", "Standard", "Extra Fine");
case 259:
return a(259, "Raw", "Super Fine", "Fine", "Standard", "Extra Fine");
default:
switch (i) {
case 512:
long[] jArr = (long[]) BrP.b(new Object[]{(C16037kes) this.a, 512}, -2120483836, 2120483840, 512);
if (jArr == null) {
return null;
}
if (jArr.length <= 0) {
return "";
}
StringBuilder sb2 = new StringBuilder();
int i6 = (int) jArr[0];
if (i6 == 0) {
sb2.append("Normal picture taking mode");
} else if (i6 == 1) {
sb2.append("Unknown picture taking mode");
} else if (i6 == 2) {
sb2.append("Fast picture taking mode");
} else if (i6 == 3) {
sb2.append("Panorama picture taking mode");
} else {
sb2.append("Unknown picture taking mode");
}
if (jArr.length >= 2 && (i2 = (int) jArr[1]) != 0) {
if (i2 == 1) {
sb2.append(" / 1st in a sequence");
} else if (i2 == 2) {
sb2.append(" / 2nd in a sequence");
} else if (i2 == 3) {
sb2.append(" / 3rd in a sequence");
} else {
sb2.append(" / ");
sb2.append(jArr[1]);
sb2.append("th in a sequence");
}
}
if (jArr.length >= 3) {
int i7 = (int) jArr[2];
if (i7 == 1) {
sb2.append(" / Left to right panorama direction");
} else if (i7 == 2) {
sb2.append(" / Right to left panorama direction");
} else if (i7 == 3) {
sb2.append(" / Bottom to top panorama direction");
} else if (i7 == 4) {
sb2.append(" / Top to bottom panorama direction");
}
}
return sb2.toString();
case 513:
String o3 = ((C16037kes) this.a).o(519);
if (o3 != null) {
Integer j = ((C16037kes) this.a).j(513);
if (j == null) {
return null;
}
if ((o3.startsWith("SX") && !o3.startsWith("SX151")) || o3.startsWith("D4322")) {
int intValue = j.intValue();
if (intValue == 0) {
return "Standard Quality (Low)";
}
if (intValue == 1) {
return "High Quality (Normal)";
}
if (intValue == 2) {
return "Super High Quality (Fine)";
}
if (intValue == 6) {
return "RAW";
}
StringBuilder sb3 = new StringBuilder("Unknown (");
sb3.append(j.toString());
sb3.append(")");
return sb3.toString();
}
int intValue2 = j.intValue();
if (intValue2 == 0) {
return "Standard Quality (Low)";
}
if (intValue2 == 1) {
return "High Quality (Normal)";
}
if (intValue2 == 2) {
return "Super High Quality (Fine)";
}
if (intValue2 == 4) {
return "RAW";
}
if (intValue2 == 5) {
return "Medium-Fine";
}
if (intValue2 == 6) {
return "Small-Fine";
}
if (intValue2 == 33) {
return "Uncompressed";
}
StringBuilder sb4 = new StringBuilder("Unknown (");
sb4.append(j.toString());
sb4.append(")");
return sb4.toString();
}
return d(513, 1, "Standard Quality", "High Quality", "Super High Quality");
case 514:
return a(514, "Normal (no macro)", "Macro");
case 515:
return a(515, "Off", "On");
case 516:
Axo l = ((C16037kes) this.a).l(516);
if (l == null) {
return null;
}
return l.d(false);
case 517:
Axo l2 = ((C16037kes) this.a).l(517);
if (l2 == null) {
return null;
}
DecimalFormat decimalFormat = new DecimalFormat("0.###");
StringBuilder sb5 = new StringBuilder();
sb5.append(decimalFormat.format(l2.doubleValue()));
sb5.append(" mm");
return sb5.toString();
default:
switch (i) {
case 4096:
return super.a(4096);
case 4097:
Axo l3 = ((C16037kes) this.a).l(4097);
if (l3 == null) {
return null;
}
return String.valueOf(Math.round(Math.pow(2.0d, l3.doubleValue() - 5.0d) * 100.0d));
case 4098:
Double c = ((C16037kes) this.a).c(4098);
if (c == null) {
return null;
}
return b(vQH.c(c.doubleValue()));
default:
switch (i) {
case 61442:
return a(61442, "P", "A", "S", "M");
case 61443:
return a(61443, "Normal", "Red-eye reduction", "Rear flash sync", "Wireless");
case 61444:
return a(61444, "Auto", "Daylight", "Cloudy", "Tungsten", null, "Custom", null, "Fluorescent", "Fluorescent 2", null, null, "Custom 2", "Custom 3");
case 61445:
return a(61445, "2560 x 1920", "1600 x 1200", "1280 x 960", "640 x 480");
case 61446:
return a(61446, "Raw", "Super Fine", "Fine", "Standard", "Economy", "Extra Fine");
case 61447:
return a(61447, "Single", "Continuous", "Self Timer", null, "Bracketing", "Interval", "UHS Continuous", "HS Continuous");
case 61448:
return a(61448, "Multi-Segment", "Centre Weighted", "Spot");
case 61449:
if (((C16037kes) this.a).f(61449) == null) {
return null;
}
double pow = Math.pow((r1.longValue() / 8.0d) - 1.0d, 2.0d);
DecimalFormat decimalFormat2 = new DecimalFormat("0.##");
decimalFormat2.setRoundingMode(RoundingMode.HALF_UP);
return decimalFormat2.format(pow * 3.125d);
case 61450:
if (((C16037kes) this.a).f(61450) == null) {
return null;
}
double pow2 = Math.pow((49 - r1.longValue()) / 8.0d, 2.0d);
DecimalFormat decimalFormat3 = new DecimalFormat("0.###");
decimalFormat3.setRoundingMode(RoundingMode.HALF_UP);
StringBuilder sb6 = new StringBuilder();
sb6.append(decimalFormat3.format(pow2));
sb6.append(" sec");
return sb6.toString();
case 61451:
if (((C16037kes) this.a).f(61451) == null) {
return null;
}
return b(Math.pow((r1.longValue() / 16.0d) - 0.5d, 2.0d));
case 61452:
return a(61452, "Off", "On");
case 61453:
return a(61453, "Off", "Electronic magnification", "Digital zoom 2x");
case 61454:
Long f = ((C16037kes) this.a).f(61454);
DecimalFormat decimalFormat4 = new DecimalFormat("0.##");
if (f == null) {
return null;
}
StringBuilder sb7 = new StringBuilder();
sb7.append(decimalFormat4.format((f.longValue() / 3.0d) - 2.0d));
sb7.append(" EV");
return sb7.toString();
case 61455:
return a(61455, "1/3 EV", "2/3 EV", "1 EV");
default:
switch (i) {
case 61457:
Long f2 = ((C16037kes) this.a).f(61447);
if (f2 == null || f2.longValue() != 5) {
return "N/A";
}
Long f3 = ((C16037kes) this.a).f(61457);
if (f3 == null) {
return null;
}
StringBuilder sb8 = new StringBuilder();
sb8.append(f3);
sb8.append(" min");
return sb8.toString();
case 61458:
Long f4 = ((C16037kes) this.a).f(61447);
if (f4 == null || f4.longValue() != 5) {
return "N/A";
}
Long f5 = ((C16037kes) this.a).f(61458);
if (f5 == null) {
return null;
}
return Long.toString(f5.longValue());
case 61459:
if (((C16037kes) this.a).f(61459) == null) {
return null;
}
return d(r1.longValue() / 256.0d);
case 61460:
Long f6 = ((C16037kes) this.a).f(61460);
if (f6 == null) {
return null;
}
if (f6.longValue() == 0) {
return "Infinity";
}
StringBuilder sb9 = new StringBuilder();
sb9.append(f6);
sb9.append(" mm");
return sb9.toString();
case 61461:
return a(61461, "No", "Yes");
case 61462:
Long f7 = ((C16037kes) this.a).f(61462);
if (f7 == null) {
return null;
}
int longValue = (int) (f7.longValue() & 255);
int longValue2 = (int) ((f7.longValue() >> 16) & 255);
int longValue3 = ((int) ((f7.longValue() >> 8) & 255)) + 1970;
return !C11453efd.a(longValue3, longValue2, longValue) ? "Invalid date" : String.format("%04d-%02d-%02d", Integer.valueOf(longValue3), Integer.valueOf(longValue2 + 1), Integer.valueOf(longValue));
case 61463:
Long f8 = ((C16037kes) this.a).f(61463);
if (f8 == null) {
return null;
}
int longValue4 = (int) ((f8.longValue() >> 8) & 255);
int longValue5 = (int) ((f8.longValue() >> 16) & 255);
int longValue6 = (int) (f8.longValue() & 255);
return !C11453efd.c(longValue4, longValue5, longValue6) ? "Invalid time" : String.format("%02d:%02d:%02d", Integer.valueOf(longValue4), Integer.valueOf(longValue5), Integer.valueOf(longValue6));
case 61464:
if (((C16037kes) this.a).f(61463) == null) {
return null;
}
return b(Math.pow((r1.longValue() / 16.0d) - 0.5d, 2.0d));
default:
switch (i) {
case 61467:
return a(61467, "Off", "On");
case 61468:
Long f9 = ((C16037kes) this.a).f(61468);
if (f9 == null) {
return null;
}
return f9.longValue() == 0 ? "File Number Memory Off" : Long.toString(f9.longValue());
case 61469:
Long f10 = ((C16037kes) this.a).f(61469);
DecimalFormat decimalFormat5 = new DecimalFormat("0.##");
if (f10 == null) {
return null;
}
return decimalFormat5.format(f10.longValue() / 256.0d);
case 61470:
Long f11 = ((C16037kes) this.a).f(61470);
DecimalFormat decimalFormat6 = new DecimalFormat("0.##");
if (f11 == null) {
return null;
}
return decimalFormat6.format(f11.longValue() / 256.0d);
case 61471:
Long f12 = ((C16037kes) this.a).f(61471);
DecimalFormat decimalFormat7 = new DecimalFormat("0.##");
if (f12 == null) {
return null;
}
return decimalFormat7.format(f12.longValue() / 256.0d);
case 61472:
Long f13 = ((C16037kes) this.a).f(61472);
if (f13 == null) {
return null;
}
return Long.toString(f13.longValue() - 3);
case 61473:
Long f14 = ((C16037kes) this.a).f(61473);
if (f14 == null) {
return null;
}
return Long.toString(f14.longValue() - 3);
case 61474:
return a(61474, "Hard", "Normal", "Soft");
case 61475:
return a(61475, "None", "Portrait", "Text", "Night Portrait", "Sunset", "Sports Action");
case 61476:
Long f15 = ((C16037kes) this.a).f(61476);
DecimalFormat decimalFormat8 = new DecimalFormat("0.##");
if (f15 == null) {
return null;
}
StringBuilder sb10 = new StringBuilder();
sb10.append(decimalFormat8.format((f15.longValue() - 6) / 3.0d));
sb10.append(" EV");
return sb10.toString();
case 61477:
return a(61477, "100", "200", "400", "800", "Auto", "64");
case 61478:
return a(61478, "DiMAGE 7", "DiMAGE 5", "DiMAGE S304", "DiMAGE S404", "DiMAGE 7i", "DiMAGE 7Hi", "DiMAGE A1", "DiMAGE S414");
case 61479:
return a(61479, "Still Image", "Time Lapse Movie");
case 61480:
return a(61480, "Standard Form", "Data Form");
case 61481:
return a(61481, "Natural Color", "Black & White", "Vivid Color", "Solarization", "AdobeRGB");
case 61482:
Long f16 = ((C16037kes) this.a).f(61482);
if (f16 == null) {
return null;
}
return Long.toString(f16.longValue() - 3);
case 61483:
return super.d(61483);
case 61484:
return a(61484, "Did Not Fire", "Fired");
case 61485:
Long f17 = ((C16037kes) this.a).f(61485);
DecimalFormat decimalFormat9 = new DecimalFormat("0.##");
if (f17 == null) {
return null;
}
return decimalFormat9.format((f17.longValue() / 8.0d) - 6.0d);
case 61486:
return super.d(61486);
case 61487:
return super.d(61487);
case 61488:
return a(61488, "No Zone or AF Failed", "Center Zone (Horizontal Orientation)", "Center Zone (Vertical Orientation)", "Left Zone", "Right Zone");
case 61489:
return a(61489, "Auto Focus", "Manual Focus");
case 61490:
return a(61490, "Wide Focus (Normal)", "Spot Focus");
case 61491:
return a(61491, "Exposure", "Contrast", "Saturation", "Filter");
default:
return super.d(i);
}
}
}
}
}
}
}
if (((C16037kes) this.a).i(4120) == null) {
return null;
}
return String.valueOf(((short) r1[0]) / 256.0d);
}
}