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

245 lines
15 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Build;
import android.util.DisplayMetrics;
import com.bumptech.glide.load.ImageHeaderParser;
import java.io.IOException;
import java.util.Arrays;
import java.util.Collections;
import java.util.EnumSet;
import java.util.HashSet;
import java.util.List;
import java.util.Queue;
/* loaded from: classes.dex */
public final class NLP {
static final RVV b;
public static final wrW<Boolean> d;
private static wrW<Boolean> f;
private static final Queue<BitmapFactory.Options> g;
final Opg a;
private final DisplayMetrics h;
private final sqY i;
final List<ImageHeaderParser> j;
private final sTL n = sTL.d();
public static final wrW<EnumC16061koj> c = wrW.a("com.bumptech.glide.load.resource.bitmap.Downsampler.DecodeFormat", EnumC16061koj.DEFAULT);
public static final wrW<QqG> e = wrW.c("com.bumptech.glide.load.resource.bitmap.Downsampler.PreferredColorSpace");
/* loaded from: classes.dex */
public interface RVV {
void EY_(sqY sqy, Bitmap bitmap) throws IOException;
void c();
}
public static boolean a() {
return true;
}
public static boolean b() {
return true;
}
static {
wrW<RBw> wrw = RBw.i;
Boolean bool = Boolean.FALSE;
f = wrW.a("com.bumptech.glide.load.resource.bitmap.Downsampler.FixBitmapSize", bool);
d = wrW.a("com.bumptech.glide.load.resource.bitmap.Downsampler.AllowHardwareDecode", bool);
Collections.unmodifiableSet(new HashSet(Arrays.asList("image/vnd.wap.wbmp", "image/x-ico")));
b = new RVV() { // from class: o.NLP.2
@Override // o.NLP.RVV
public final void EY_(sqY sqy, Bitmap bitmap) {
}
@Override // o.NLP.RVV
public final void c() {
}
};
Collections.unmodifiableSet(EnumSet.of(ImageHeaderParser.ImageType.JPEG, ImageHeaderParser.ImageType.PNG_A, ImageHeaderParser.ImageType.PNG));
g = FKd.e(0);
}
public NLP(List<ImageHeaderParser> list, DisplayMetrics displayMetrics, sqY sqy, Opg opg) {
this.j = list;
if (displayMetrics == null) {
throw new NullPointerException("Argument must not be null");
}
this.h = displayMetrics;
if (sqy == null) {
throw new NullPointerException("Argument must not be null");
}
this.i = sqy;
if (opg == null) {
throw new NullPointerException("Argument must not be null");
}
this.a = opg;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* JADX WARN: Removed duplicated region for block: B:109:0x030f A[ADDED_TO_REGION] */
/* JADX WARN: Removed duplicated region for block: B:112:0x0319 A[Catch: all -> 0x03b7, TryCatch #2 {all -> 0x03b7, blocks: (B:31:0x00c5, B:44:0x00f2, B:84:0x028c, B:86:0x0298, B:88:0x02a1, B:93:0x02a7, B:95:0x02b1, B:96:0x02b6, B:98:0x02be, B:91:0x02c2, B:99:0x02b4, B:102:0x02c6, B:110:0x0311, B:112:0x0319, B:114:0x031d, B:115:0x031f, B:117:0x0327, B:119:0x032d, B:121:0x0333, B:123:0x0337, B:125:0x033f, B:126:0x0344, B:127:0x0342, B:128:0x034b, B:129:0x0353, B:131:0x0367, B:134:0x037b, B:136:0x0390, B:137:0x0397, B:152:0x039c, B:155:0x02d1, B:157:0x02d7, B:158:0x02df, B:160:0x0309), top: B:30:0x00c5 }] */
/* JADX WARN: Removed duplicated region for block: B:117:0x0327 A[Catch: all -> 0x03b7, TryCatch #2 {all -> 0x03b7, blocks: (B:31:0x00c5, B:44:0x00f2, B:84:0x028c, B:86:0x0298, B:88:0x02a1, B:93:0x02a7, B:95:0x02b1, B:96:0x02b6, B:98:0x02be, B:91:0x02c2, B:99:0x02b4, B:102:0x02c6, B:110:0x0311, B:112:0x0319, B:114:0x031d, B:115:0x031f, B:117:0x0327, B:119:0x032d, B:121:0x0333, B:123:0x0337, B:125:0x033f, B:126:0x0344, B:127:0x0342, B:128:0x034b, B:129:0x0353, B:131:0x0367, B:134:0x037b, B:136:0x0390, B:137:0x0397, B:152:0x039c, B:155:0x02d1, B:157:0x02d7, B:158:0x02df, B:160:0x0309), top: B:30:0x00c5 }] */
/* JADX WARN: Removed duplicated region for block: B:131:0x0367 A[Catch: all -> 0x03b7, TryCatch #2 {all -> 0x03b7, blocks: (B:31:0x00c5, B:44:0x00f2, B:84:0x028c, B:86:0x0298, B:88:0x02a1, B:93:0x02a7, B:95:0x02b1, B:96:0x02b6, B:98:0x02be, B:91:0x02c2, B:99:0x02b4, B:102:0x02c6, B:110:0x0311, B:112:0x0319, B:114:0x031d, B:115:0x031f, B:117:0x0327, B:119:0x032d, B:121:0x0333, B:123:0x0337, B:125:0x033f, B:126:0x0344, B:127:0x0342, B:128:0x034b, B:129:0x0353, B:131:0x0367, B:134:0x037b, B:136:0x0390, B:137:0x0397, B:152:0x039c, B:155:0x02d1, B:157:0x02d7, B:158:0x02df, B:160:0x0309), top: B:30:0x00c5 }] */
/* JADX WARN: Removed duplicated region for block: B:134:0x037b A[Catch: all -> 0x03b7, TryCatch #2 {all -> 0x03b7, blocks: (B:31:0x00c5, B:44:0x00f2, B:84:0x028c, B:86:0x0298, B:88:0x02a1, B:93:0x02a7, B:95:0x02b1, B:96:0x02b6, B:98:0x02be, B:91:0x02c2, B:99:0x02b4, B:102:0x02c6, B:110:0x0311, B:112:0x0319, B:114:0x031d, B:115:0x031f, B:117:0x0327, B:119:0x032d, B:121:0x0333, B:123:0x0337, B:125:0x033f, B:126:0x0344, B:127:0x0342, B:128:0x034b, B:129:0x0353, B:131:0x0367, B:134:0x037b, B:136:0x0390, B:137:0x0397, B:152:0x039c, B:155:0x02d1, B:157:0x02d7, B:158:0x02df, B:160:0x0309), top: B:30:0x00c5 }] */
/* JADX WARN: Removed duplicated region for block: B:139:0x039b */
/* JADX WARN: Removed duplicated region for block: B:142:0x03a7 A[EXC_TOP_SPLITTER, SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:152:0x039c A[Catch: all -> 0x03b7, TRY_LEAVE, TryCatch #2 {all -> 0x03b7, blocks: (B:31:0x00c5, B:44:0x00f2, B:84:0x028c, B:86:0x0298, B:88:0x02a1, B:93:0x02a7, B:95:0x02b1, B:96:0x02b6, B:98:0x02be, B:91:0x02c2, B:99:0x02b4, B:102:0x02c6, B:110:0x0311, B:112:0x0319, B:114:0x031d, B:115:0x031f, B:117:0x0327, B:119:0x032d, B:121:0x0333, B:123:0x0337, B:125:0x033f, B:126:0x0344, B:127:0x0342, B:128:0x034b, B:129:0x0353, B:131:0x0367, B:134:0x037b, B:136:0x0390, B:137:0x0397, B:152:0x039c, B:155:0x02d1, B:157:0x02d7, B:158:0x02df, B:160:0x0309), top: B:30:0x00c5 }] */
/* JADX WARN: Removed duplicated region for block: B:154:0x0396 */
/* JADX WARN: Removed duplicated region for block: B:157:0x02d7 A[Catch: all -> 0x03b7, TryCatch #2 {all -> 0x03b7, blocks: (B:31:0x00c5, B:44:0x00f2, B:84:0x028c, B:86:0x0298, B:88:0x02a1, B:93:0x02a7, B:95:0x02b1, B:96:0x02b6, B:98:0x02be, B:91:0x02c2, B:99:0x02b4, B:102:0x02c6, B:110:0x0311, B:112:0x0319, B:114:0x031d, B:115:0x031f, B:117:0x0327, B:119:0x032d, B:121:0x0333, B:123:0x0337, B:125:0x033f, B:126:0x0344, B:127:0x0342, B:128:0x034b, B:129:0x0353, B:131:0x0367, B:134:0x037b, B:136:0x0390, B:137:0x0397, B:152:0x039c, B:155:0x02d1, B:157:0x02d7, B:158:0x02df, B:160:0x0309), top: B:30:0x00c5 }] */
/* JADX WARN: Removed duplicated region for block: B:160:0x0309 A[Catch: all -> 0x03b7, TryCatch #2 {all -> 0x03b7, blocks: (B:31:0x00c5, B:44:0x00f2, B:84:0x028c, B:86:0x0298, B:88:0x02a1, B:93:0x02a7, B:95:0x02b1, B:96:0x02b6, B:98:0x02be, B:91:0x02c2, B:99:0x02b4, B:102:0x02c6, B:110:0x0311, B:112:0x0319, B:114:0x031d, B:115:0x031f, B:117:0x0327, B:119:0x032d, B:121:0x0333, B:123:0x0337, B:125:0x033f, B:126:0x0344, B:127:0x0342, B:128:0x034b, B:129:0x0353, B:131:0x0367, B:134:0x037b, B:136:0x0390, B:137:0x0397, B:152:0x039c, B:155:0x02d1, B:157:0x02d7, B:158:0x02df, B:160:0x0309), top: B:30:0x00c5 }] */
/* JADX WARN: Removed duplicated region for block: B:199:0x00e3 */
/* JADX WARN: Removed duplicated region for block: B:33:0x00d5 */
/* JADX WARN: Removed duplicated region for block: B:39:0x00e9 */
/* JADX WARN: Removed duplicated region for block: B:86:0x0298 A[Catch: all -> 0x03b7, TryCatch #2 {all -> 0x03b7, blocks: (B:31:0x00c5, B:44:0x00f2, B:84:0x028c, B:86:0x0298, B:88:0x02a1, B:93:0x02a7, B:95:0x02b1, B:96:0x02b6, B:98:0x02be, B:91:0x02c2, B:99:0x02b4, B:102:0x02c6, B:110:0x0311, B:112:0x0319, B:114:0x031d, B:115:0x031f, B:117:0x0327, B:119:0x032d, B:121:0x0333, B:123:0x0337, B:125:0x033f, B:126:0x0344, B:127:0x0342, B:128:0x034b, B:129:0x0353, B:131:0x0367, B:134:0x037b, B:136:0x0390, B:137:0x0397, B:152:0x039c, B:155:0x02d1, B:157:0x02d7, B:158:0x02df, B:160:0x0309), top: B:30:0x00c5 }] */
/* JADX WARN: Removed duplicated region for block: B:88:0x02a1 A[Catch: all -> 0x03b7, TRY_LEAVE, TryCatch #2 {all -> 0x03b7, blocks: (B:31:0x00c5, B:44:0x00f2, B:84:0x028c, B:86:0x0298, B:88:0x02a1, B:93:0x02a7, B:95:0x02b1, B:96:0x02b6, B:98:0x02be, B:91:0x02c2, B:99:0x02b4, B:102:0x02c6, B:110:0x0311, B:112:0x0319, B:114:0x031d, B:115:0x031f, B:117:0x0327, B:119:0x032d, B:121:0x0333, B:123:0x0337, B:125:0x033f, B:126:0x0344, B:127:0x0342, B:128:0x034b, B:129:0x0353, B:131:0x0367, B:134:0x037b, B:136:0x0390, B:137:0x0397, B:152:0x039c, B:155:0x02d1, B:157:0x02d7, B:158:0x02df, B:160:0x0309), top: B:30:0x00c5 }] */
/* JADX WARN: Removed duplicated region for block: B:98:0x02be A[Catch: all -> 0x03b7, TryCatch #2 {all -> 0x03b7, blocks: (B:31:0x00c5, B:44:0x00f2, B:84:0x028c, B:86:0x0298, B:88:0x02a1, B:93:0x02a7, B:95:0x02b1, B:96:0x02b6, B:98:0x02be, B:91:0x02c2, B:99:0x02b4, B:102:0x02c6, B:110:0x0311, B:112:0x0319, B:114:0x031d, B:115:0x031f, B:117:0x0327, B:119:0x032d, B:121:0x0333, B:123:0x0337, B:125:0x033f, B:126:0x0344, B:127:0x0342, B:128:0x034b, B:129:0x0353, B:131:0x0367, B:134:0x037b, B:136:0x0390, B:137:0x0397, B:152:0x039c, B:155:0x02d1, B:157:0x02d7, B:158:0x02df, B:160:0x0309), top: B:30:0x00c5 }] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final o.Ezi<android.graphics.Bitmap> e(o.zSt r31, int r32, int r33, o.unA r34, o.NLP.RVV r35) throws java.io.IOException {
/*
Method dump skipped, instructions count: 976
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: o.NLP.e(o.zSt, int, int, o.unA, o.NLP$RVV):o.Ezi");
}
private static int[] EI_(zSt zst, BitmapFactory.Options options, RVV rvv, sqY sqy) throws IOException {
options.inJustDecodeBounds = true;
EF_(zst, options, rvv, sqy);
options.inJustDecodeBounds = false;
return new int[]{options.outWidth, options.outHeight};
}
/* JADX WARN: Code restructure failed: missing block: B:18:?, code lost:
throw r0;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static android.graphics.Bitmap EF_(o.zSt r6, android.graphics.BitmapFactory.Options r7, o.NLP.RVV r8, o.sqY r9) throws java.io.IOException {
/*
boolean r0 = r7.inJustDecodeBounds
if (r0 != 0) goto La
r8.c()
r6.c()
La:
int r0 = r7.outWidth
int r1 = r7.outHeight
java.lang.String r2 = r7.outMimeType
java.util.concurrent.locks.Lock r3 = o.JUv.d()
r3.lock()
android.graphics.Bitmap r6 = r6.EU_(r7) // Catch: java.lang.Throwable -> L23 java.lang.IllegalArgumentException -> L25
L1b:
java.util.concurrent.locks.Lock r7 = o.JUv.d()
r7.unlock()
return r6
L23:
r6 = move-exception
goto L6a
L25:
r3 = move-exception
java.lang.StringBuilder r4 = new java.lang.StringBuilder // Catch: java.lang.Throwable -> L23
java.lang.String r5 = "Exception decoding bitmap, outWidth: "
r4.<init>(r5) // Catch: java.lang.Throwable -> L23
r4.append(r0) // Catch: java.lang.Throwable -> L23
java.lang.String r0 = ", outHeight: "
r4.append(r0) // Catch: java.lang.Throwable -> L23
r4.append(r1) // Catch: java.lang.Throwable -> L23
java.lang.String r0 = ", outMimeType: "
r4.append(r0) // Catch: java.lang.Throwable -> L23
r4.append(r2) // Catch: java.lang.Throwable -> L23
java.lang.String r0 = ", inBitmap: "
r4.append(r0) // Catch: java.lang.Throwable -> L23
java.io.IOException r0 = new java.io.IOException // Catch: java.lang.Throwable -> L23
android.graphics.Bitmap r1 = r7.inBitmap // Catch: java.lang.Throwable -> L23
java.lang.String r1 = EG_(r1) // Catch: java.lang.Throwable -> L23
r4.append(r1) // Catch: java.lang.Throwable -> L23
java.lang.String r1 = r4.toString() // Catch: java.lang.Throwable -> L23
r0.<init>(r1, r3) // Catch: java.lang.Throwable -> L23
android.graphics.Bitmap r1 = r7.inBitmap // Catch: java.lang.Throwable -> L23
if (r1 == 0) goto L69
android.graphics.Bitmap r1 = r7.inBitmap // Catch: java.lang.Throwable -> L23 java.io.IOException -> L68
r9.EP_(r1) // Catch: java.lang.Throwable -> L23 java.io.IOException -> L68
r1 = 0
r7.inBitmap = r1 // Catch: java.lang.Throwable -> L23 java.io.IOException -> L68
android.graphics.Bitmap r6 = EF_(r6, r7, r8, r9) // Catch: java.lang.Throwable -> L23 java.io.IOException -> L68
goto L1b
L68:
throw r0 // Catch: java.lang.Throwable -> L23
L69:
throw r0 // Catch: java.lang.Throwable -> L23
L6a:
java.util.concurrent.locks.Lock r7 = o.JUv.d()
r7.unlock()
throw r6
*/
throw new UnsupportedOperationException("Method not decompiled: o.NLP.EF_(o.zSt, android.graphics.BitmapFactory$Options, o.NLP$RVV, o.sqY):android.graphics.Bitmap");
}
private static boolean EJ_(BitmapFactory.Options options) {
return options.inTargetDensity > 0 && options.inDensity > 0 && options.inTargetDensity != options.inDensity;
}
private static String EG_(Bitmap bitmap) {
if (bitmap == null) {
return null;
}
StringBuilder sb = new StringBuilder(" (");
sb.append(bitmap.getAllocationByteCount());
sb.append(")");
String obj = sb.toString();
StringBuilder sb2 = new StringBuilder("[");
sb2.append(bitmap.getWidth());
sb2.append("x");
sb2.append(bitmap.getHeight());
sb2.append("] ");
sb2.append(bitmap.getConfig());
sb2.append(obj);
return sb2.toString();
}
private static BitmapFactory.Options EH_() {
BitmapFactory.Options poll;
synchronized (NLP.class) {
Queue<BitmapFactory.Options> queue = g;
synchronized (queue) {
poll = queue.poll();
}
if (poll == null) {
poll = new BitmapFactory.Options();
EK_(poll);
}
}
return poll;
}
private static void EK_(BitmapFactory.Options options) {
options.inTempStorage = null;
options.inDither = false;
options.inScaled = false;
options.inSampleSize = 1;
options.inPreferredConfig = null;
options.inJustDecodeBounds = false;
options.inDensity = 0;
options.inTargetDensity = 0;
options.inPreferredColorSpace = null;
options.outColorSpace = null;
options.outConfig = null;
options.outWidth = 0;
options.outHeight = 0;
options.outMimeType = null;
options.inBitmap = null;
options.inMutable = true;
}
public static boolean e() {
return !"robolectric".equals(Build.FINGERPRINT);
}
}