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

111 lines
3.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.io.IOException;
/* loaded from: classes.dex */
public final class RWU implements InterfaceC16990suK {
private final C16613piz e;
@Override // o.InterfaceC16990suK
public final boolean c(String str) {
return false;
}
public RWU(C16613piz c16613piz) {
this.e = c16613piz;
}
@Override // o.InterfaceC16990suK
public final boolean a(String str) {
return str.equals("WEBP");
}
@Override // o.InterfaceC16990suK
public final boolean d(String str) {
return str.equals("VP8X") || str.equals("VP8L") || str.equals("VP8 ") || str.equals("EXIF") || str.equals("ICCP") || str.equals("XMP ");
}
@Override // o.InterfaceC16990suK
public final void c(String str, byte[] bArr) {
AZu aZu = new AZu();
if (str.equals("EXIF")) {
C0925RrQ c0925RrQ = C5178boD.a(bArr) ? new C0925RrQ(bArr, 6) : new C0925RrQ(bArr);
new C5178boD();
C5178boD.b(c0925RrQ, this.e, 0, null);
return;
}
if (str.equals("ICCP")) {
new GXv();
GXv.a(new C0925RrQ(bArr), this.e);
return;
}
if (str.equals("XMP ")) {
new RKF();
RKF.e(bArr, this.e);
return;
}
if (str.equals("VP8X") && bArr.length == 10) {
C0925RrQ c0925RrQ2 = new C0925RrQ(bArr);
c0925RrQ2.b = false;
try {
boolean c = c0925RrQ2.c(1);
boolean c2 = c0925RrQ2.c(4);
int f = c0925RrQ2.f(4);
int f2 = c0925RrQ2.f(7);
aZu.d(2, f + 1);
aZu.d(1, f2 + 1);
aZu.e(3, c2);
aZu.e(4, c);
this.e.c.add(aZu);
return;
} catch (IOException e) {
BrP.b(new Object[]{aZu, e.getMessage()}, -1786863991, 1786863992, System.identityHashCode(aZu));
return;
}
}
if (str.equals("VP8L") && bArr.length > 4) {
C0925RrQ c0925RrQ3 = new C0925RrQ(bArr);
c0925RrQ3.b = false;
try {
if (c0925RrQ3.j(0) != 47) {
return;
}
short m = c0925RrQ3.m(1);
short m2 = c0925RrQ3.m(2);
short m3 = c0925RrQ3.m(3);
short m4 = c0925RrQ3.m(4);
aZu.d(2, (m | ((m2 & 63) << 8)) + 1);
aZu.d(1, (((m4 & 15) << 10) | (m3 << 2) | ((m2 & 192) >> 6)) + 1);
this.e.c.add(aZu);
return;
} catch (IOException e2) {
BrP.b(new Object[]{aZu, e2.getMessage()}, -1786863991, 1786863992, System.identityHashCode(aZu));
return;
}
}
if (!str.equals("VP8 ") || bArr.length <= 9) {
return;
}
C0925RrQ c0925RrQ4 = new C0925RrQ(bArr);
c0925RrQ4.b = false;
try {
if (c0925RrQ4.m(3) == 157 && c0925RrQ4.m(4) == 1 && c0925RrQ4.m(5) == 42) {
int l = c0925RrQ4.l(6);
int l2 = c0925RrQ4.l(8);
aZu.d(2, l);
aZu.d(1, l2);
this.e.c.add(aZu);
}
} catch (IOException e3) {
BrP.b(new Object[]{aZu, e3.getMessage()}, -1786863991, 1786863992, System.identityHashCode(aZu));
}
}
@Override // o.InterfaceC16990suK
public final void b(String str) {
AZu aZu = new AZu();
BrP.b(new Object[]{aZu, str}, -1786863991, 1786863992, System.identityHashCode(aZu));
this.e.c.add(aZu);
}
}