108 lines
3.6 KiB
Java
108 lines
3.6 KiB
Java
|
package o;
|
||
|
|
||
|
import java.io.ByteArrayInputStream;
|
||
|
import java.io.IOException;
|
||
|
import java.util.Arrays;
|
||
|
import java.util.Collections;
|
||
|
import java.util.HashSet;
|
||
|
import java.util.Set;
|
||
|
import o.C15793iet;
|
||
|
import o.DkZ;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class OQe extends AbstractC16191mAf<zju> {
|
||
|
private C2395adm f;
|
||
|
private C15793iet g;
|
||
|
private RLv h;
|
||
|
private DkZ i;
|
||
|
private static final Set<String> d = new HashSet(Arrays.asList("ipro", "pitm", "iinf", "iloc", "ispe", "auxC", "irot", "colr", "pixi"));
|
||
|
private static final Set<String> e = new HashSet(Collections.singletonList("Exif"));
|
||
|
private static final Set<String> b = new HashSet(Arrays.asList("iprp", "ipco", "mdat"));
|
||
|
|
||
|
public OQe(C16613piz c16613piz) {
|
||
|
super(c16613piz);
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC16191mAf
|
||
|
public final boolean b(C6804ccN c6804ccN) {
|
||
|
return d.contains(c6804ccN.d);
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC16191mAf
|
||
|
public final boolean a(C6804ccN c6804ccN) {
|
||
|
return b.contains(c6804ccN.d);
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC16191mAf
|
||
|
public final AbstractC16191mAf<?> b(C6804ccN c6804ccN, byte[] bArr) throws IOException {
|
||
|
C0629LEh c0629LEh = new C0629LEh(bArr);
|
||
|
if (c6804ccN.d.equals("ipro")) {
|
||
|
this.f = new C2395adm(c0629LEh, c6804ccN);
|
||
|
} else if (c6804ccN.d.equals("pitm")) {
|
||
|
this.h = new RLv(c0629LEh, c6804ccN);
|
||
|
} else if (c6804ccN.d.equals("iinf")) {
|
||
|
this.g = new C15793iet(c0629LEh, c6804ccN);
|
||
|
T t = this.c;
|
||
|
} else if (c6804ccN.d.equals("iloc")) {
|
||
|
this.i = new DkZ(c0629LEh, c6804ccN);
|
||
|
} else if (c6804ccN.d.equals("ispe")) {
|
||
|
WJe wJe = new WJe(c0629LEh, c6804ccN);
|
||
|
T t2 = this.c;
|
||
|
if (!t2.d(4) && !t2.d(5)) {
|
||
|
t2.e(4, wJe.a);
|
||
|
t2.e(5, wJe.c);
|
||
|
}
|
||
|
} else if (c6804ccN.d.equals("auxC")) {
|
||
|
new C6311cOz(c0629LEh, c6804ccN);
|
||
|
} else if (c6804ccN.d.equals("irot")) {
|
||
|
Gce gce = new Gce(c0629LEh, c6804ccN);
|
||
|
T t3 = this.c;
|
||
|
if (!t3.d(6)) {
|
||
|
t3.d(6, gce.c);
|
||
|
}
|
||
|
} else if (c6804ccN.d.equals("colr")) {
|
||
|
new EQQ(c0629LEh, c6804ccN, this.a);
|
||
|
T t4 = this.c;
|
||
|
} else if (c6804ccN.d.equals("pixi")) {
|
||
|
DHd dHd = new DHd(c0629LEh, c6804ccN);
|
||
|
T t5 = this.c;
|
||
|
if (!t5.d(7)) {
|
||
|
t5.b(7, dHd.c);
|
||
|
}
|
||
|
}
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC16191mAf
|
||
|
public final void b(C6804ccN c6804ccN, Eaa eaa) throws IOException {
|
||
|
DkZ dkZ;
|
||
|
if (!c6804ccN.d.equals("mdat") || this.g == null || (dkZ = this.i) == null) {
|
||
|
return;
|
||
|
}
|
||
|
for (DkZ.Sts sts : dkZ.c) {
|
||
|
C15793iet.IeS ieS = this.g.a.get(Long.valueOf(sts.a));
|
||
|
long c = sts.d - eaa.c();
|
||
|
if (c > 0) {
|
||
|
eaa.b(c);
|
||
|
}
|
||
|
if (e.contains(ieS.a)) {
|
||
|
C0629LEh c0629LEh = new C0629LEh(eaa.a((int) sts.c));
|
||
|
if (ieS.a.equals("Exif")) {
|
||
|
long f = c0629LEh.f();
|
||
|
if (f <= c0629LEh.d()) {
|
||
|
c0629LEh.b(f);
|
||
|
ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(c0629LEh.a(c0629LEh.d()));
|
||
|
new C5178boD();
|
||
|
C5178boD.b(new WrL(byteArrayInputStream), this.a, 0, null);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC16191mAf
|
||
|
public final zju d() {
|
||
|
return new zju();
|
||
|
}
|
||
|
}
|