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

100 lines
2.8 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.graphics.Bitmap;
import java.io.IOException;
import java.io.InputStream;
import java.util.Queue;
import o.NLP;
import o.zSt;
/* loaded from: classes.dex */
public final class PIG implements iYP<InputStream, Bitmap> {
private final Opg c;
private final NLP e;
@Override // o.iYP
public final /* synthetic */ boolean a(InputStream inputStream, unA una) throws IOException {
return NLP.b();
}
public PIG(NLP nlp, Opg opg) {
this.e = nlp;
this.c = opg;
}
/* JADX INFO: Access modifiers changed from: private */
@Override // o.iYP
/* renamed from: c, reason: merged with bridge method [inline-methods] */
public Ezi<Bitmap> a(InputStream inputStream, int i, int i2, unA una) throws IOException {
boolean z;
C16158ljW c16158ljW;
if (inputStream instanceof C16158ljW) {
c16158ljW = (C16158ljW) inputStream;
z = false;
} else {
z = true;
c16158ljW = new C16158ljW(inputStream, this.c);
}
cST e = cST.e(c16158ljW);
zBt zbt = new zBt(e);
IeS ieS = new IeS(c16158ljW, e);
try {
NLP nlp = this.e;
Ezi<Bitmap> e2 = nlp.e(new zSt.Sts(zbt, nlp.j, nlp.a), i, i2, una, ieS);
e.c = null;
e.d = null;
Queue<cST> queue = cST.b;
synchronized (queue) {
queue.offer(e);
}
if (z) {
c16158ljW.a();
}
return e2;
} catch (Throwable th) {
e.c = null;
e.d = null;
Queue<cST> queue2 = cST.b;
synchronized (queue2) {
queue2.offer(e);
if (z) {
c16158ljW.a();
}
throw th;
}
}
}
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public static class IeS implements NLP.RVV {
private final cST b;
private final C16158ljW c;
IeS(C16158ljW c16158ljW, cST cst) {
this.c = c16158ljW;
this.b = cst;
}
@Override // o.NLP.RVV
public final void c() {
C16158ljW c16158ljW = this.c;
synchronized (c16158ljW) {
c16158ljW.e = c16158ljW.c.length;
}
}
@Override // o.NLP.RVV
public final void EY_(sqY sqy, Bitmap bitmap) throws IOException {
IOException iOException = this.b.c;
if (iOException != null) {
if (bitmap != null) {
sqy.EP_(bitmap);
throw iOException;
}
throw iOException;
}
}
}
}