83 lines
2.4 KiB
Java
83 lines
2.4 KiB
Java
|
package o;
|
||
|
|
||
|
import com.google.common.primitives.UnsignedBytes;
|
||
|
import java.io.IOException;
|
||
|
import java.util.List;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class NZL extends C0743NnU<C0778Ojb> {
|
||
|
public NZL(C0778Ojb c0778Ojb) {
|
||
|
super(c0778Ojb);
|
||
|
}
|
||
|
|
||
|
@Override // o.C0743NnU
|
||
|
public final String d(int i) {
|
||
|
if (i == 4) {
|
||
|
Integer j = ((C0778Ojb) this.a).j(4);
|
||
|
if (j == null) {
|
||
|
return null;
|
||
|
}
|
||
|
return Gnf.d(j.intValue()).c;
|
||
|
}
|
||
|
if (i == 5) {
|
||
|
return a(5, "Deflate");
|
||
|
}
|
||
|
if (i == 6) {
|
||
|
return a(6, "Adaptive");
|
||
|
}
|
||
|
if (i == 7) {
|
||
|
return a(7, "No Interlace", "Adam7 Interlace");
|
||
|
}
|
||
|
if (i == 9) {
|
||
|
return a(9, null, "Yes");
|
||
|
}
|
||
|
if (i == 10) {
|
||
|
return a(10, "Perceptual", "Relative Colorimetric", "Saturation", "Absolute Colorimetric");
|
||
|
}
|
||
|
if (i != 13) {
|
||
|
if (i == 15) {
|
||
|
return e();
|
||
|
}
|
||
|
if (i != 18) {
|
||
|
return super.d(i);
|
||
|
}
|
||
|
return a(18, "Unspecified", "Metres");
|
||
|
}
|
||
|
Object b = BrP.b(new Object[]{(C0778Ojb) this.a, 13}, -2120483836, 2120483840, 13);
|
||
|
if (b == null) {
|
||
|
return null;
|
||
|
}
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
for (MFl mFl : (List) b) {
|
||
|
if (sb.length() != 0) {
|
||
|
sb.append('\n');
|
||
|
}
|
||
|
sb.append(String.format("%s: %s", mFl.c, mFl.d));
|
||
|
}
|
||
|
return sb.toString();
|
||
|
}
|
||
|
|
||
|
private String e() {
|
||
|
byte[] b = ((C0778Ojb) this.a).b(15);
|
||
|
if (b == null) {
|
||
|
return null;
|
||
|
}
|
||
|
C0629LEh c0629LEh = new C0629LEh(b);
|
||
|
try {
|
||
|
int length = b.length;
|
||
|
if (length == 1) {
|
||
|
return String.format("Palette Index %d", Short.valueOf((short) (c0629LEh.b() & UnsignedBytes.MAX_VALUE)));
|
||
|
}
|
||
|
if (length == 2) {
|
||
|
return String.format("Greyscale Level %d", Integer.valueOf(c0629LEh.h()));
|
||
|
}
|
||
|
if (length != 6) {
|
||
|
return null;
|
||
|
}
|
||
|
return String.format("R %d, G %d, B %d", Integer.valueOf(c0629LEh.h()), Integer.valueOf(c0629LEh.h()), Integer.valueOf(c0629LEh.h()));
|
||
|
} catch (IOException unused) {
|
||
|
return null;
|
||
|
}
|
||
|
}
|
||
|
}
|