1034 lines
67 KiB
Java
1034 lines
67 KiB
Java
|
package o;
|
||
|
|
||
|
import com.google.common.primitives.UnsignedBytes;
|
||
|
import com.google.firebase.crashlytics.internal.common.IdManager;
|
||
|
import io.flutter.embedding.android.KeyboardMap;
|
||
|
import java.io.UnsupportedEncodingException;
|
||
|
import java.text.DecimalFormat;
|
||
|
import o.BrP;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public abstract class TTe<T extends BrP> extends C0743NnU<T> {
|
||
|
private final boolean e;
|
||
|
|
||
|
public TTe(T t) {
|
||
|
super(t);
|
||
|
this.e = true;
|
||
|
}
|
||
|
|
||
|
@Override // o.C0743NnU
|
||
|
public String d(int i) {
|
||
|
String obj;
|
||
|
String obj2;
|
||
|
StringBuilder sb;
|
||
|
String str;
|
||
|
if (i == 1) {
|
||
|
String o2 = this.a.o(1);
|
||
|
if (o2 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
if ("R98".equalsIgnoreCase(o2.trim())) {
|
||
|
return "Recommended Exif Interoperability Rules (ExifR98)";
|
||
|
}
|
||
|
StringBuilder sb2 = new StringBuilder("Unknown (");
|
||
|
sb2.append(o2);
|
||
|
sb2.append(")");
|
||
|
return sb2.toString();
|
||
|
}
|
||
|
if (i == 2) {
|
||
|
return e(2, 2);
|
||
|
}
|
||
|
if (i == 262) {
|
||
|
Integer j = this.a.j(262);
|
||
|
if (j == null) {
|
||
|
return null;
|
||
|
}
|
||
|
int intValue = j.intValue();
|
||
|
if (intValue == 32803) {
|
||
|
return "Color Filter Array";
|
||
|
}
|
||
|
if (intValue == 32892) {
|
||
|
return "Linear Raw";
|
||
|
}
|
||
|
switch (intValue) {
|
||
|
case 0:
|
||
|
return "WhiteIsZero";
|
||
|
case 1:
|
||
|
return "BlackIsZero";
|
||
|
case 2:
|
||
|
return "RGB";
|
||
|
case 3:
|
||
|
return "RGB Palette";
|
||
|
case 4:
|
||
|
return "Transparency Mask";
|
||
|
case 5:
|
||
|
return "CMYK";
|
||
|
case 6:
|
||
|
return "YCbCr";
|
||
|
default:
|
||
|
switch (intValue) {
|
||
|
case 8:
|
||
|
return "CIELab";
|
||
|
case 9:
|
||
|
return "ICCLab";
|
||
|
case 10:
|
||
|
return "ITULab";
|
||
|
default:
|
||
|
switch (intValue) {
|
||
|
case 32844:
|
||
|
return "Pixar LogL";
|
||
|
case 32845:
|
||
|
return "Pixar LogLuv";
|
||
|
default:
|
||
|
return "Unknown colour space";
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
if (i == 263) {
|
||
|
return d(263, 1, "No dithering or halftoning", "Ordered dither or halftone", "Randomized dither");
|
||
|
}
|
||
|
if (i == 338) {
|
||
|
return a(338, "Unspecified", "Associated alpha", "Unassociated alpha");
|
||
|
}
|
||
|
int i2 = 0;
|
||
|
if (i != 339) {
|
||
|
switch (i) {
|
||
|
case 254:
|
||
|
return d(254, 0, "Full-resolution image", "Reduced-resolution image", "Single page of multi-page image", "Single page of multi-page reduced-resolution image", "Transparency mask", "Transparency mask of reduced-resolution image", "Transparency mask of multi-page image", "Transparency mask of reduced-resolution multi-page image");
|
||
|
case 255:
|
||
|
return d(255, 1, "Full-resolution image", "Reduced-resolution image", "Single page of multi-page image");
|
||
|
case 256:
|
||
|
String o3 = this.a.o(256);
|
||
|
if (o3 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
StringBuilder sb3 = new StringBuilder();
|
||
|
sb3.append(o3);
|
||
|
sb3.append(" pixels");
|
||
|
return sb3.toString();
|
||
|
case 257:
|
||
|
String o4 = this.a.o(257);
|
||
|
if (o4 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
StringBuilder sb4 = new StringBuilder();
|
||
|
sb4.append(o4);
|
||
|
sb4.append(" pixels");
|
||
|
return sb4.toString();
|
||
|
case 258:
|
||
|
String o5 = this.a.o(258);
|
||
|
if (o5 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
StringBuilder sb5 = new StringBuilder();
|
||
|
sb5.append(o5);
|
||
|
sb5.append(" bits/component/pixel");
|
||
|
return sb5.toString();
|
||
|
case 259:
|
||
|
Integer j2 = this.a.j(259);
|
||
|
if (j2 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
int intValue2 = j2.intValue();
|
||
|
if (intValue2 == 32766) {
|
||
|
return "Next";
|
||
|
}
|
||
|
if (intValue2 == 32767) {
|
||
|
return "Sony ARW Compressed";
|
||
|
}
|
||
|
switch (intValue2) {
|
||
|
case 1:
|
||
|
return "Uncompressed";
|
||
|
case 2:
|
||
|
return "CCITT 1D";
|
||
|
case 3:
|
||
|
return "T4/Group 3 Fax";
|
||
|
case 4:
|
||
|
return "T6/Group 4 Fax";
|
||
|
case 5:
|
||
|
return "LZW";
|
||
|
case 6:
|
||
|
return "JPEG (old-style)";
|
||
|
case 7:
|
||
|
return "JPEG";
|
||
|
case 8:
|
||
|
return "Adobe Deflate";
|
||
|
case 9:
|
||
|
return "JBIG B&W";
|
||
|
case 10:
|
||
|
return "JBIG Color";
|
||
|
default:
|
||
|
switch (intValue2) {
|
||
|
case 99:
|
||
|
return "JPEG";
|
||
|
case 262:
|
||
|
return "Kodak 262";
|
||
|
case 32809:
|
||
|
return "Thunderscan";
|
||
|
case 32867:
|
||
|
return "Kodak KDC Compressed";
|
||
|
case 34661:
|
||
|
return "JBIG";
|
||
|
case 34715:
|
||
|
return "JBIG2 TIFF FX";
|
||
|
case 34892:
|
||
|
return "Lossy JPEG";
|
||
|
case 65000:
|
||
|
return "Kodak DCR Compressed";
|
||
|
case 65535:
|
||
|
return "Pentax PEF Compressed";
|
||
|
default:
|
||
|
switch (intValue2) {
|
||
|
case 32769:
|
||
|
return "Packed RAW";
|
||
|
case 32770:
|
||
|
return "Samsung SRW Compressed";
|
||
|
case 32771:
|
||
|
return "CCIRLEW";
|
||
|
case 32772:
|
||
|
return "Samsung SRW Compressed 2";
|
||
|
case 32773:
|
||
|
return "PackBits";
|
||
|
default:
|
||
|
switch (intValue2) {
|
||
|
case 32895:
|
||
|
return "IT8CTPAD";
|
||
|
case 32896:
|
||
|
return "IT8LW";
|
||
|
case 32897:
|
||
|
return "IT8MP";
|
||
|
case 32898:
|
||
|
return "IT8BL";
|
||
|
default:
|
||
|
switch (intValue2) {
|
||
|
case 32908:
|
||
|
return "PixarFilm";
|
||
|
case 32909:
|
||
|
return "PixarLog";
|
||
|
default:
|
||
|
switch (intValue2) {
|
||
|
case 32946:
|
||
|
return "Deflate";
|
||
|
case 32947:
|
||
|
return "DCS";
|
||
|
default:
|
||
|
switch (intValue2) {
|
||
|
case 34676:
|
||
|
return "SGILog";
|
||
|
case 34677:
|
||
|
return "SGILog24";
|
||
|
default:
|
||
|
switch (intValue2) {
|
||
|
case 34712:
|
||
|
return "JPEG 2000";
|
||
|
case 34713:
|
||
|
return "Nikon NEF Compressed";
|
||
|
default:
|
||
|
switch (intValue2) {
|
||
|
case 34718:
|
||
|
return "Microsoft Document Imaging (MDI) Binary Level Codec";
|
||
|
case 34719:
|
||
|
return "Microsoft Document Imaging (MDI) Progressive Transform Codec";
|
||
|
case 34720:
|
||
|
return "Microsoft Document Imaging (MDI) Vector";
|
||
|
default:
|
||
|
StringBuilder sb6 = new StringBuilder("Unknown (");
|
||
|
sb6.append(j2);
|
||
|
sb6.append(")");
|
||
|
return sb6.toString();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
default:
|
||
|
switch (i) {
|
||
|
case 266:
|
||
|
return d(266, 1, "Normal", "Reversed");
|
||
|
case 274:
|
||
|
return super.b();
|
||
|
case 296:
|
||
|
return g();
|
||
|
case 512:
|
||
|
Integer j3 = this.a.j(512);
|
||
|
if (j3 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
int intValue3 = j3.intValue();
|
||
|
if (intValue3 == 1) {
|
||
|
return "Baseline";
|
||
|
}
|
||
|
if (intValue3 == 14) {
|
||
|
return "Lossless";
|
||
|
}
|
||
|
StringBuilder sb7 = new StringBuilder("Unknown (");
|
||
|
sb7.append(j3);
|
||
|
sb7.append(")");
|
||
|
return sb7.toString();
|
||
|
case 33422:
|
||
|
byte[] b = this.a.b(33422);
|
||
|
if (b == null) {
|
||
|
return null;
|
||
|
}
|
||
|
int[] i3 = this.a.i(33421);
|
||
|
if (i3 == null) {
|
||
|
return String.format("Repeat Pattern not found for CFAPattern (%s)", super.d(33422));
|
||
|
}
|
||
|
if (i3.length == 2) {
|
||
|
int length = b.length;
|
||
|
int i4 = i3[0];
|
||
|
int i5 = i3[1];
|
||
|
if (length == i4 * i5) {
|
||
|
int[] iArr = new int[b.length + 2];
|
||
|
iArr[0] = i4;
|
||
|
iArr[1] = i5;
|
||
|
while (i2 < b.length) {
|
||
|
iArr[i2 + 2] = b[i2] & UnsignedBytes.MAX_VALUE;
|
||
|
i2++;
|
||
|
}
|
||
|
return d(iArr);
|
||
|
}
|
||
|
}
|
||
|
return String.format("Unknown Pattern (%s)", super.d(33422));
|
||
|
case 33434:
|
||
|
String o6 = this.a.o(33434);
|
||
|
if (o6 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
StringBuilder sb8 = new StringBuilder();
|
||
|
sb8.append(o6);
|
||
|
sb8.append(" sec");
|
||
|
return sb8.toString();
|
||
|
case 33437:
|
||
|
Axo l = this.a.l(33437);
|
||
|
if (l == null) {
|
||
|
return null;
|
||
|
}
|
||
|
return b(l.doubleValue());
|
||
|
case 34850:
|
||
|
return d(34850, 1, "Manual control", "Program normal", "Aperture priority", "Shutter priority", "Program creative (slow program)", "Program action (high-speed program)", "Portrait mode", "Landscape mode");
|
||
|
case 34855:
|
||
|
Integer j4 = this.a.j(34855);
|
||
|
if (j4 != null) {
|
||
|
return Integer.toString(j4.intValue());
|
||
|
}
|
||
|
return null;
|
||
|
case 34864:
|
||
|
return a(34864, "Unknown", "Standard Output Sensitivity", "Recommended Exposure Index", "ISO Speed", "Standard Output Sensitivity and Recommended Exposure Index", "Standard Output Sensitivity and ISO Speed", "Recommended Exposure Index and ISO Speed", "Standard Output Sensitivity, Recommended Exposure Index and ISO Speed");
|
||
|
case 36864:
|
||
|
return e(36864, 2);
|
||
|
case 37510:
|
||
|
return e(37510);
|
||
|
case 41495:
|
||
|
return d(41495, 1, "(Not defined)", "One-chip color area sensor", "Two-chip color area sensor", "Three-chip color area sensor", "Color sequential area sensor", null, "Trilinear sensor", "Color sequential linear sensor");
|
||
|
case 41996:
|
||
|
return a(41996, "Unknown", "Macro", "Close view", "Distant view");
|
||
|
case 42034:
|
||
|
return b(42034);
|
||
|
default:
|
||
|
switch (i) {
|
||
|
case 37377:
|
||
|
return super.a(37377);
|
||
|
case 37378:
|
||
|
Double c = this.a.c(37378);
|
||
|
if (c == null) {
|
||
|
return null;
|
||
|
}
|
||
|
return b(vQH.c(c.doubleValue()));
|
||
|
case 37379:
|
||
|
Axo l2 = this.a.l(37379);
|
||
|
if (l2 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
return l2.b == KeyboardMap.kValueMask ? "Unknown" : new DecimalFormat("0.0##").format(l2.doubleValue());
|
||
|
case 37380:
|
||
|
Axo l3 = this.a.l(37380);
|
||
|
if (l3 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
StringBuilder sb9 = new StringBuilder();
|
||
|
sb9.append(l3.d(true));
|
||
|
sb9.append(" EV");
|
||
|
return sb9.toString();
|
||
|
case 37381:
|
||
|
Double c2 = this.a.c(37381);
|
||
|
if (c2 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
return b(vQH.c(c2.doubleValue()));
|
||
|
case 37382:
|
||
|
Axo l4 = this.a.l(37382);
|
||
|
if (l4 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
if (l4.b == KeyboardMap.kValueMask) {
|
||
|
return "Infinity";
|
||
|
}
|
||
|
if (l4.b == 0) {
|
||
|
return "Unknown";
|
||
|
}
|
||
|
DecimalFormat decimalFormat = new DecimalFormat("0.0##");
|
||
|
StringBuilder sb10 = new StringBuilder();
|
||
|
sb10.append(decimalFormat.format(l4.doubleValue()));
|
||
|
sb10.append(" metres");
|
||
|
return sb10.toString();
|
||
|
case 37383:
|
||
|
Integer j5 = this.a.j(37383);
|
||
|
if (j5 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
int intValue4 = j5.intValue();
|
||
|
if (intValue4 == 255) {
|
||
|
return "(Other)";
|
||
|
}
|
||
|
switch (intValue4) {
|
||
|
case 0:
|
||
|
return "Unknown";
|
||
|
case 1:
|
||
|
return "Average";
|
||
|
case 2:
|
||
|
return "Center weighted average";
|
||
|
case 3:
|
||
|
return "Spot";
|
||
|
case 4:
|
||
|
return "Multi-spot";
|
||
|
case 5:
|
||
|
return "Multi-segment";
|
||
|
case 6:
|
||
|
return "Partial";
|
||
|
default:
|
||
|
StringBuilder sb11 = new StringBuilder("Unknown (");
|
||
|
sb11.append(j5);
|
||
|
sb11.append(")");
|
||
|
return sb11.toString();
|
||
|
}
|
||
|
case 37384:
|
||
|
Integer j6 = this.a.j(37384);
|
||
|
if (j6 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
return f(j6.intValue());
|
||
|
case 37385:
|
||
|
Integer j7 = this.a.j(37385);
|
||
|
if (j7 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
StringBuilder sb12 = new StringBuilder();
|
||
|
if ((j7.intValue() & 1) != 0) {
|
||
|
sb12.append("Flash fired");
|
||
|
} else {
|
||
|
sb12.append("Flash did not fire");
|
||
|
}
|
||
|
if ((j7.intValue() & 4) != 0) {
|
||
|
if ((j7.intValue() & 2) != 0) {
|
||
|
sb12.append(", return detected");
|
||
|
} else {
|
||
|
sb12.append(", return not detected");
|
||
|
}
|
||
|
}
|
||
|
if ((j7.intValue() & 16) != 0 && (j7.intValue() & 15) != 0) {
|
||
|
sb12.append(", auto");
|
||
|
}
|
||
|
if ((j7.intValue() & 64) != 0) {
|
||
|
sb12.append(", red-eye reduction");
|
||
|
}
|
||
|
return sb12.toString();
|
||
|
case 37386:
|
||
|
Axo l5 = this.a.l(37386);
|
||
|
if (l5 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
return d(l5.doubleValue());
|
||
|
default:
|
||
|
switch (i) {
|
||
|
case 40091:
|
||
|
return g(40091);
|
||
|
case 40092:
|
||
|
return g(40092);
|
||
|
case 40093:
|
||
|
return g(40093);
|
||
|
case 40094:
|
||
|
return g(40094);
|
||
|
case 40095:
|
||
|
return g(40095);
|
||
|
default:
|
||
|
switch (i) {
|
||
|
case 40960:
|
||
|
return e(40960, 2);
|
||
|
case 40961:
|
||
|
Integer j8 = this.a.j(40961);
|
||
|
if (j8 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
if (j8.intValue() == 1) {
|
||
|
return "sRGB";
|
||
|
}
|
||
|
if (j8.intValue() == 65535) {
|
||
|
return "Undefined";
|
||
|
}
|
||
|
StringBuilder sb13 = new StringBuilder("Unknown (");
|
||
|
sb13.append(j8);
|
||
|
sb13.append(")");
|
||
|
return sb13.toString();
|
||
|
case 40962:
|
||
|
Integer j9 = this.a.j(40962);
|
||
|
if (j9 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
StringBuilder sb14 = new StringBuilder();
|
||
|
sb14.append(j9);
|
||
|
sb14.append(" pixels");
|
||
|
return sb14.toString();
|
||
|
case 40963:
|
||
|
Integer j10 = this.a.j(40963);
|
||
|
if (j10 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
StringBuilder sb15 = new StringBuilder();
|
||
|
sb15.append(j10);
|
||
|
sb15.append(" pixels");
|
||
|
return sb15.toString();
|
||
|
default:
|
||
|
switch (i) {
|
||
|
case 41486:
|
||
|
Axo l6 = this.a.l(41486);
|
||
|
if (l6 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
String j11 = j();
|
||
|
StringBuilder sb16 = new StringBuilder();
|
||
|
sb16.append(new Axo(l6.c, l6.b).d(true));
|
||
|
if (j11 == null) {
|
||
|
obj = "";
|
||
|
} else {
|
||
|
StringBuilder sb17 = new StringBuilder(" ");
|
||
|
sb17.append(j11.toLowerCase());
|
||
|
obj = sb17.toString();
|
||
|
}
|
||
|
sb16.append(obj);
|
||
|
return sb16.toString();
|
||
|
case 41487:
|
||
|
Axo l7 = this.a.l(41487);
|
||
|
if (l7 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
String j12 = j();
|
||
|
StringBuilder sb18 = new StringBuilder();
|
||
|
sb18.append(new Axo(l7.c, l7.b).d(true));
|
||
|
if (j12 == null) {
|
||
|
obj2 = "";
|
||
|
} else {
|
||
|
StringBuilder sb19 = new StringBuilder(" ");
|
||
|
sb19.append(j12.toLowerCase());
|
||
|
obj2 = sb19.toString();
|
||
|
}
|
||
|
sb18.append(obj2);
|
||
|
return sb18.toString();
|
||
|
case 41488:
|
||
|
return j();
|
||
|
default:
|
||
|
switch (i) {
|
||
|
case 41728:
|
||
|
return d(41728, 1, "Film Scanner", "Reflection Print Scanner", "Digital Still Camera (DSC)");
|
||
|
case 41729:
|
||
|
return d(41729, 1, "Directly photographed image");
|
||
|
case 41730:
|
||
|
return d(e());
|
||
|
default:
|
||
|
switch (i) {
|
||
|
case 41985:
|
||
|
return a(41985, "Normal process", "Custom process");
|
||
|
case 41986:
|
||
|
return a(41986, "Auto exposure", "Manual exposure", "Auto bracket");
|
||
|
case 41987:
|
||
|
return a(41987, "Auto white balance", "Manual white balance");
|
||
|
case 41988:
|
||
|
Axo l8 = this.a.l(41988);
|
||
|
if (l8 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
if (l8.b == 0) {
|
||
|
return "Digital zoom not used";
|
||
|
}
|
||
|
return new DecimalFormat("0.#").format(l8.doubleValue());
|
||
|
case 41989:
|
||
|
Integer j13 = this.a.j(41989);
|
||
|
if (j13 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
return j13.intValue() == 0 ? "Unknown" : d(j13.intValue());
|
||
|
case 41990:
|
||
|
return a(41990, "Standard", "Landscape", "Portrait", "Night scene");
|
||
|
case 41991:
|
||
|
return a(41991, "None", "Low gain up", "Low gain down", "High gain up", "High gain down");
|
||
|
case 41992:
|
||
|
return a(41992, "None", "Soft", "Hard");
|
||
|
case 41993:
|
||
|
return a(41993, "None", "Low saturation", "High saturation");
|
||
|
case 41994:
|
||
|
return a(41994, "None", "Low", "Hard");
|
||
|
default:
|
||
|
switch (i) {
|
||
|
case 277:
|
||
|
String o7 = this.a.o(277);
|
||
|
if (o7 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
StringBuilder sb20 = new StringBuilder();
|
||
|
sb20.append(o7);
|
||
|
sb20.append(" samples/pixel");
|
||
|
return sb20.toString();
|
||
|
case 278:
|
||
|
String o8 = this.a.o(278);
|
||
|
if (o8 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
StringBuilder sb21 = new StringBuilder();
|
||
|
sb21.append(o8);
|
||
|
sb21.append(" rows/strip");
|
||
|
return sb21.toString();
|
||
|
case 279:
|
||
|
String o9 = this.a.o(279);
|
||
|
if (o9 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
StringBuilder sb22 = new StringBuilder();
|
||
|
sb22.append(o9);
|
||
|
sb22.append(" bytes");
|
||
|
return sb22.toString();
|
||
|
default:
|
||
|
switch (i) {
|
||
|
case 282:
|
||
|
Axo l9 = this.a.l(282);
|
||
|
if (l9 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
String g = g();
|
||
|
Object[] objArr = new Object[2];
|
||
|
objArr[0] = l9.d(true);
|
||
|
objArr[1] = g == null ? "unit" : g.toLowerCase();
|
||
|
return String.format("%s dots per %s", objArr);
|
||
|
case 283:
|
||
|
Axo l10 = this.a.l(283);
|
||
|
if (l10 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
String g2 = g();
|
||
|
Object[] objArr2 = new Object[2];
|
||
|
objArr2[0] = l10.d(true);
|
||
|
objArr2[1] = g2 == null ? "unit" : g2.toLowerCase();
|
||
|
return String.format("%s dots per %s", objArr2);
|
||
|
case 284:
|
||
|
return d(284, 1, "Chunky (contiguous for each subsampling pixel)", "Separate (Y-plane/Cb-plane/Cr-plane format)");
|
||
|
default:
|
||
|
switch (i) {
|
||
|
case 530:
|
||
|
int[] i6 = this.a.i(530);
|
||
|
if (i6 == null || i6.length < 2) {
|
||
|
return null;
|
||
|
}
|
||
|
int i7 = i6[0];
|
||
|
return (i7 == 2 && i6[1] == 1) ? "YCbCr4:2:2" : (i7 == 2 && i6[1] == 2) ? "YCbCr4:2:0" : "(Unknown)";
|
||
|
case 531:
|
||
|
return d(531, 1, "Center of pixel array", "Datum point");
|
||
|
case 532:
|
||
|
int[] i8 = this.a.i(532);
|
||
|
if (i8 == null || i8.length < 6) {
|
||
|
Object b2 = BrP.b(new Object[]{this.a, 532}, -2120483836, 2120483840, 532);
|
||
|
if (b2 != null && (b2 instanceof long[])) {
|
||
|
long[] jArr = (long[]) b2;
|
||
|
if (jArr.length >= 6) {
|
||
|
int[] iArr2 = new int[jArr.length];
|
||
|
for (int i9 = 0; i9 < jArr.length; i9++) {
|
||
|
iArr2[i9] = (int) jArr[i9];
|
||
|
}
|
||
|
i8 = iArr2;
|
||
|
}
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
return String.format("[%d,%d,%d] [%d,%d,%d]", Integer.valueOf(i8[0]), Integer.valueOf(i8[2]), Integer.valueOf(i8[4]), Integer.valueOf(i8[1]), Integer.valueOf(i8[3]), Integer.valueOf(i8[5]));
|
||
|
default:
|
||
|
switch (i) {
|
||
|
case 37121:
|
||
|
int[] i10 = this.a.i(37121);
|
||
|
if (i10 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
String[] strArr = {"", "Y", "Cb", "Cr", "R", "G", "B"};
|
||
|
StringBuilder sb23 = new StringBuilder();
|
||
|
while (i2 < Math.min(4, i10.length)) {
|
||
|
int i11 = i10[i2];
|
||
|
if (i11 > 0 && i11 < 7) {
|
||
|
sb23.append(strArr[i11]);
|
||
|
}
|
||
|
i2++;
|
||
|
}
|
||
|
return sb23.toString();
|
||
|
case 37122:
|
||
|
Axo l11 = this.a.l(37122);
|
||
|
if (l11 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
String d = l11.d(true);
|
||
|
if (l11.b() && l11.intValue() == 1) {
|
||
|
sb = new StringBuilder();
|
||
|
sb.append(d);
|
||
|
str = " bit/pixel";
|
||
|
} else {
|
||
|
sb = new StringBuilder();
|
||
|
sb.append(d);
|
||
|
str = " bits/pixel";
|
||
|
}
|
||
|
sb.append(str);
|
||
|
return sb.toString();
|
||
|
default:
|
||
|
switch (i) {
|
||
|
case 37888:
|
||
|
Axo l12 = this.a.l(37888);
|
||
|
if (l12 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
if (l12.c == KeyboardMap.kValueMask) {
|
||
|
return "Unknown";
|
||
|
}
|
||
|
DecimalFormat decimalFormat2 = new DecimalFormat(IdManager.DEFAULT_VERSION_NAME);
|
||
|
StringBuilder sb24 = new StringBuilder();
|
||
|
sb24.append(decimalFormat2.format(l12.doubleValue()));
|
||
|
sb24.append(" °C");
|
||
|
return sb24.toString();
|
||
|
case 37889:
|
||
|
Axo l13 = this.a.l(37889);
|
||
|
if (l13 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
if (l13.c == KeyboardMap.kValueMask) {
|
||
|
return "Unknown";
|
||
|
}
|
||
|
DecimalFormat decimalFormat3 = new DecimalFormat(IdManager.DEFAULT_VERSION_NAME);
|
||
|
StringBuilder sb25 = new StringBuilder();
|
||
|
sb25.append(decimalFormat3.format(l13.doubleValue()));
|
||
|
sb25.append(" %");
|
||
|
return sb25.toString();
|
||
|
case 37890:
|
||
|
Axo l14 = this.a.l(37890);
|
||
|
if (l14 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
if (l14.c == KeyboardMap.kValueMask) {
|
||
|
return "Unknown";
|
||
|
}
|
||
|
DecimalFormat decimalFormat4 = new DecimalFormat(IdManager.DEFAULT_VERSION_NAME);
|
||
|
StringBuilder sb26 = new StringBuilder();
|
||
|
sb26.append(decimalFormat4.format(l14.doubleValue()));
|
||
|
sb26.append(" hPa");
|
||
|
return sb26.toString();
|
||
|
case 37891:
|
||
|
Axo l15 = this.a.l(37891);
|
||
|
if (l15 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
if (l15.c == KeyboardMap.kValueMask) {
|
||
|
return "Unknown";
|
||
|
}
|
||
|
DecimalFormat decimalFormat5 = new DecimalFormat("0.0##");
|
||
|
StringBuilder sb27 = new StringBuilder();
|
||
|
sb27.append(decimalFormat5.format(l15.doubleValue()));
|
||
|
sb27.append(" metres");
|
||
|
return sb27.toString();
|
||
|
case 37892:
|
||
|
Axo l16 = this.a.l(37892);
|
||
|
if (l16 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
if (l16.c == KeyboardMap.kValueMask) {
|
||
|
return "Unknown";
|
||
|
}
|
||
|
DecimalFormat decimalFormat6 = new DecimalFormat("0.0##");
|
||
|
StringBuilder sb28 = new StringBuilder();
|
||
|
sb28.append(decimalFormat6.format(l16.doubleValue()));
|
||
|
sb28.append(" mGal");
|
||
|
return sb28.toString();
|
||
|
case 37893:
|
||
|
Axo l17 = this.a.l(37893);
|
||
|
if (l17 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
if (l17.c == KeyboardMap.kValueMask) {
|
||
|
return "Unknown";
|
||
|
}
|
||
|
DecimalFormat decimalFormat7 = new DecimalFormat("0.##");
|
||
|
StringBuilder sb29 = new StringBuilder();
|
||
|
sb29.append(decimalFormat7.format(l17.doubleValue()));
|
||
|
sb29.append(" degrees");
|
||
|
return sb29.toString();
|
||
|
default:
|
||
|
return super.d(i);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
int[] i12 = this.a.i(339);
|
||
|
if (i12 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
StringBuilder sb30 = new StringBuilder();
|
||
|
int length2 = i12.length;
|
||
|
while (i2 < length2) {
|
||
|
int i13 = i12[i2];
|
||
|
if (sb30.length() != 0) {
|
||
|
sb30.append(", ");
|
||
|
}
|
||
|
switch (i13) {
|
||
|
case 1:
|
||
|
sb30.append("Unsigned");
|
||
|
break;
|
||
|
case 2:
|
||
|
sb30.append("Signed");
|
||
|
break;
|
||
|
case 3:
|
||
|
sb30.append("Float");
|
||
|
break;
|
||
|
case 4:
|
||
|
sb30.append("Undefined");
|
||
|
break;
|
||
|
case 5:
|
||
|
sb30.append("Complex int");
|
||
|
break;
|
||
|
case 6:
|
||
|
sb30.append("Complex float");
|
||
|
break;
|
||
|
default:
|
||
|
sb30.append("Unknown (");
|
||
|
sb30.append(i13);
|
||
|
sb30.append(")");
|
||
|
break;
|
||
|
}
|
||
|
i2++;
|
||
|
}
|
||
|
return sb30.toString();
|
||
|
}
|
||
|
|
||
|
private String g() {
|
||
|
return d(296, 1, "(No unit)", "Inch", "cm");
|
||
|
}
|
||
|
|
||
|
private static String d(int[] iArr) {
|
||
|
if (iArr == null) {
|
||
|
return null;
|
||
|
}
|
||
|
if (iArr.length < 2) {
|
||
|
return "<truncated data>";
|
||
|
}
|
||
|
int i = iArr[0];
|
||
|
if (i == 0 && iArr[1] == 0) {
|
||
|
return "<zero pattern size>";
|
||
|
}
|
||
|
int i2 = i * iArr[1];
|
||
|
int i3 = i2 + 2;
|
||
|
if (i3 > iArr.length) {
|
||
|
return "<invalid pattern size>";
|
||
|
}
|
||
|
String[] strArr = {"Red", "Green", "Blue", "Cyan", "Magenta", "Yellow", "White"};
|
||
|
StringBuilder sb = new StringBuilder("[");
|
||
|
for (int i4 = 2; i4 < i3; i4++) {
|
||
|
int i5 = iArr[i4];
|
||
|
if (i5 <= 6) {
|
||
|
sb.append(strArr[i5]);
|
||
|
} else {
|
||
|
sb.append("Unknown");
|
||
|
}
|
||
|
if ((i4 - 2) % iArr[1] == 0) {
|
||
|
sb.append(",");
|
||
|
} else if (i4 != i2 + 1) {
|
||
|
sb.append("][");
|
||
|
}
|
||
|
}
|
||
|
sb.append("]");
|
||
|
return sb.toString();
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static String f(int i) {
|
||
|
if (i == 0) {
|
||
|
return "Unknown";
|
||
|
}
|
||
|
if (i == 1) {
|
||
|
return "Daylight";
|
||
|
}
|
||
|
if (i == 2) {
|
||
|
return "Florescent";
|
||
|
}
|
||
|
if (i == 3) {
|
||
|
return "Tungsten (Incandescent)";
|
||
|
}
|
||
|
if (i == 4) {
|
||
|
return "Flash";
|
||
|
}
|
||
|
if (i == 255) {
|
||
|
return "Other";
|
||
|
}
|
||
|
switch (i) {
|
||
|
case 9:
|
||
|
return "Fine Weather";
|
||
|
case 10:
|
||
|
return "Cloudy";
|
||
|
case 11:
|
||
|
return "Shade";
|
||
|
case 12:
|
||
|
return "Daylight Fluorescent";
|
||
|
case 13:
|
||
|
return "Day White Fluorescent";
|
||
|
case 14:
|
||
|
return "Cool White Fluorescent";
|
||
|
case 15:
|
||
|
return "White Fluorescent";
|
||
|
case 16:
|
||
|
return "Warm White Fluorescent";
|
||
|
case 17:
|
||
|
return "Standard light A";
|
||
|
case 18:
|
||
|
return "Standard light B";
|
||
|
case 19:
|
||
|
return "Standard light C";
|
||
|
case 20:
|
||
|
return "D55";
|
||
|
case 21:
|
||
|
return "D65";
|
||
|
case 22:
|
||
|
return "D75";
|
||
|
case 23:
|
||
|
return "D50";
|
||
|
case 24:
|
||
|
return "ISO Studio Tungsten";
|
||
|
default:
|
||
|
StringBuilder sb = new StringBuilder("Unknown (");
|
||
|
sb.append(i);
|
||
|
sb.append(")");
|
||
|
return sb.toString();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private String g(int i) {
|
||
|
byte[] b = this.a.b(i);
|
||
|
if (b == null) {
|
||
|
return null;
|
||
|
}
|
||
|
try {
|
||
|
return new String(b, "UTF-16LE").trim();
|
||
|
} catch (UnsupportedEncodingException unused) {
|
||
|
return null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private String j() {
|
||
|
return d(41488, 1, "(No unit)", "Inches", "cm");
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:22:0x0052 A[Catch: IOException -> 0x0064, TryCatch #0 {IOException -> 0x0064, blocks: (B:15:0x0025, B:17:0x0039, B:22:0x0052, B:23:0x0056, B:25:0x0059), top: B:14:0x0025 }] */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
private int[] e() {
|
||
|
/*
|
||
|
r11 = this;
|
||
|
T extends o.BrP r0 = r11.a
|
||
|
r1 = 41730(0xa302, float:5.8476E-41)
|
||
|
byte[] r0 = r0.b(r1)
|
||
|
if (r0 != 0) goto Ld
|
||
|
r0 = 0
|
||
|
return r0
|
||
|
Ld:
|
||
|
int r1 = r0.length
|
||
|
r2 = 4
|
||
|
r3 = 0
|
||
|
if (r1 >= r2) goto L20
|
||
|
int r1 = r0.length
|
||
|
int[] r1 = new int[r1]
|
||
|
L15:
|
||
|
int r2 = r0.length
|
||
|
if (r3 >= r2) goto L1f
|
||
|
r2 = r0[r3]
|
||
|
r1[r3] = r2
|
||
|
int r3 = r3 + 1
|
||
|
goto L15
|
||
|
L1f:
|
||
|
return r1
|
||
|
L20:
|
||
|
int r1 = r0.length
|
||
|
r4 = 2
|
||
|
int r1 = r1 - r4
|
||
|
int[] r1 = new int[r1]
|
||
|
o.RrQ r5 = new o.RrQ // Catch: java.io.IOException -> L64
|
||
|
r5.<init>(r0) // Catch: java.io.IOException -> L64
|
||
|
short r6 = r5.a(r3) // Catch: java.io.IOException -> L64
|
||
|
short r7 = r5.a(r4) // Catch: java.io.IOException -> L64
|
||
|
int r8 = r6 * r7
|
||
|
int r8 = r8 + r4
|
||
|
int r9 = r0.length // Catch: java.io.IOException -> L64
|
||
|
r10 = 1
|
||
|
if (r8 <= r9) goto L4f
|
||
|
boolean r6 = r5.b // Catch: java.io.IOException -> L64
|
||
|
r6 = r6 ^ r10
|
||
|
r5.b = r6 // Catch: java.io.IOException -> L64
|
||
|
short r6 = r5.a(r3) // Catch: java.io.IOException -> L64
|
||
|
short r7 = r5.a(r4) // Catch: java.io.IOException -> L64
|
||
|
int r8 = r0.length // Catch: java.io.IOException -> L64
|
||
|
int r9 = r6 * r7
|
||
|
int r9 = r9 + r4
|
||
|
if (r8 < r9) goto L4d
|
||
|
goto L4f
|
||
|
L4d:
|
||
|
r4 = r3
|
||
|
goto L50
|
||
|
L4f:
|
||
|
r4 = r10
|
||
|
L50:
|
||
|
if (r4 == 0) goto L8a
|
||
|
r1[r3] = r6 // Catch: java.io.IOException -> L64
|
||
|
r1[r10] = r7 // Catch: java.io.IOException -> L64
|
||
|
L56:
|
||
|
int r3 = r0.length // Catch: java.io.IOException -> L64
|
||
|
if (r2 >= r3) goto L8a
|
||
|
int r3 = r2 + (-2)
|
||
|
byte r4 = r5.j(r2) // Catch: java.io.IOException -> L64
|
||
|
r1[r3] = r4 // Catch: java.io.IOException -> L64
|
||
|
int r2 = r2 + 1
|
||
|
goto L56
|
||
|
L64:
|
||
|
r0 = move-exception
|
||
|
T extends o.BrP r2 = r11.a
|
||
|
java.lang.StringBuilder r3 = new java.lang.StringBuilder
|
||
|
java.lang.String r4 = "IO exception processing data: "
|
||
|
r3.<init>(r4)
|
||
|
java.lang.String r0 = r0.getMessage()
|
||
|
r3.append(r0)
|
||
|
java.lang.String r0 = r3.toString()
|
||
|
java.lang.Object[] r0 = new java.lang.Object[]{r2, r0}
|
||
|
int r2 = java.lang.System.identityHashCode(r2)
|
||
|
r3 = -1786863991(0xffffffff957e9e89, float:-5.1419954E-26)
|
||
|
r4 = 1786863992(0x6a816178, float:7.820586E25)
|
||
|
o.BrP.b(r0, r3, r4, r2)
|
||
|
L8a:
|
||
|
return r1
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: o.TTe.e():int[]");
|
||
|
}
|
||
|
}
|