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

90 lines
3.1 KiB
Java

package o;
import java.io.IOException;
/* loaded from: classes.dex */
public final class fIO implements InterfaceC16990suK {
private final iQc e;
public fIO(C16613piz c16613piz) {
iQc iqc = new iQc();
this.e = iqc;
c16613piz.c.add(iqc);
}
@Override // o.InterfaceC16990suK
public final boolean a(String str) {
return str.equals("AVI ");
}
@Override // o.InterfaceC16990suK
public final boolean d(String str) {
return str.equals("strh") || str.equals("avih") || str.equals("IDIT");
}
@Override // o.InterfaceC16990suK
public final boolean c(String str) {
return str.equals("hdrl") || str.equals("strl") || str.equals("AVI ");
}
@Override // o.InterfaceC16990suK
public final void c(String str, byte[] bArr) {
try {
if (str.equals("strh")) {
C0925RrQ c0925RrQ = new C0925RrQ(bArr);
c0925RrQ.b = false;
String str2 = new String(c0925RrQ.c(0, 4));
String str3 = new String(c0925RrQ.c(4, 4));
float e = c0925RrQ.e(20);
float e2 = c0925RrQ.e(24);
int g = c0925RrQ.g(32);
if (str2.equals("vids")) {
if (this.e.d(1)) {
return;
}
float f = e2 / e;
this.e.c(1, f);
double d = g / f;
int i = (int) d;
int pow = i / ((int) Math.pow(60.0d, 2.0d));
this.e.e(3, String.format("%1$02d:%2$02d:%3$02d", Integer.valueOf(pow), Integer.valueOf((i / ((int) Math.pow(60.0d, 1.0d))) - (pow * 60)), Integer.valueOf((int) Math.round((d / Math.pow(60.0d, 0.0d)) - (r2 * 60)))));
this.e.e(4, str3);
return;
}
if (!str2.equals("auds") || this.e.d(2)) {
return;
}
this.e.c(2, e2 / e);
return;
}
if (str.equals("avih")) {
C0925RrQ c0925RrQ2 = new C0925RrQ(bArr);
c0925RrQ2.b = false;
int g2 = c0925RrQ2.g(24);
int g3 = c0925RrQ2.g(32);
int g4 = c0925RrQ2.g(36);
this.e.d(6, g3);
this.e.d(7, g4);
this.e.d(8, g2);
return;
}
if (str.equals("IDIT")) {
String e3 = new C0925RrQ(bArr).e(0, bArr.length, "ASCII");
if (e3.length() == 26 && e3.endsWith(String.valueOf(new char[]{'\n', 0}))) {
e3 = e3.substring(0, 24);
}
this.e.e(320, e3);
}
} catch (IOException e4) {
iQc iqc = this.e;
BrP.b(new Object[]{iqc, e4.getMessage()}, -1786863991, 1786863992, System.identityHashCode(iqc));
}
}
@Override // o.InterfaceC16990suK
public final void b(String str) {
iQc iqc = this.e;
BrP.b(new Object[]{iqc, str}, -1786863991, 1786863992, System.identityHashCode(iqc));
}
}