119 lines
5.2 KiB
Java
119 lines
5.2 KiB
Java
package com.google.zxing.aztec;
|
|
|
|
import com.google.zxing.Reader;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class AztecReader implements Reader {
|
|
/* JADX WARN: Removed duplicated region for block: B:21:0x0051 */
|
|
/* JADX WARN: Removed duplicated region for block: B:25:0x005e A[LOOP:0: B:24:0x005c->B:25:0x005e, LOOP_END] */
|
|
/* JADX WARN: Removed duplicated region for block: B:29:0x0084 */
|
|
/* JADX WARN: Removed duplicated region for block: B:32:0x008f */
|
|
/* JADX WARN: Removed duplicated region for block: B:8:0x0031 */
|
|
@Override // com.google.zxing.Reader
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct code enable 'Show inconsistent code' option in preferences
|
|
*/
|
|
public com.google.zxing.Result a(com.google.zxing.BinaryBitmap r13, java.util.Map<com.google.zxing.DecodeHintType, ?> r14) throws com.google.zxing.NotFoundException, com.google.zxing.FormatException {
|
|
/*
|
|
r12 = this;
|
|
com.google.zxing.aztec.detector.Detector r0 = new com.google.zxing.aztec.detector.Detector
|
|
com.google.zxing.common.BitMatrix r13 = r13.a()
|
|
r0.<init>(r13)
|
|
r13 = 0
|
|
r1 = 0
|
|
com.google.zxing.aztec.AztecDetectorResult r2 = r0.a(r13) // Catch: com.google.zxing.FormatException -> L25 com.google.zxing.NotFoundException -> L2b
|
|
com.google.zxing.ResultPoint[] r3 = r2.b() // Catch: com.google.zxing.FormatException -> L25 com.google.zxing.NotFoundException -> L2b
|
|
com.google.zxing.aztec.decoder.Decoder r4 = new com.google.zxing.aztec.decoder.Decoder // Catch: com.google.zxing.FormatException -> L21 com.google.zxing.NotFoundException -> L23
|
|
r4.<init>() // Catch: com.google.zxing.FormatException -> L21 com.google.zxing.NotFoundException -> L23
|
|
com.google.zxing.common.DecoderResult r2 = r4.a(r2) // Catch: com.google.zxing.FormatException -> L21 com.google.zxing.NotFoundException -> L23
|
|
r4 = r3
|
|
r3 = r1
|
|
r1 = r2
|
|
r2 = r3
|
|
goto L2f
|
|
L21:
|
|
r2 = move-exception
|
|
goto L27
|
|
L23:
|
|
r2 = move-exception
|
|
goto L2d
|
|
L25:
|
|
r2 = move-exception
|
|
r3 = r1
|
|
L27:
|
|
r4 = r3
|
|
r3 = r2
|
|
r2 = r1
|
|
goto L2f
|
|
L2b:
|
|
r2 = move-exception
|
|
r3 = r1
|
|
L2d:
|
|
r4 = r3
|
|
r3 = r1
|
|
L2f:
|
|
if (r1 != 0) goto L4e
|
|
r1 = 1
|
|
com.google.zxing.aztec.AztecDetectorResult r0 = r0.a(r1) // Catch: com.google.zxing.FormatException -> L44 com.google.zxing.NotFoundException -> L46
|
|
com.google.zxing.ResultPoint[] r4 = r0.b() // Catch: com.google.zxing.FormatException -> L44 com.google.zxing.NotFoundException -> L46
|
|
com.google.zxing.aztec.decoder.Decoder r1 = new com.google.zxing.aztec.decoder.Decoder // Catch: com.google.zxing.FormatException -> L44 com.google.zxing.NotFoundException -> L46
|
|
r1.<init>() // Catch: com.google.zxing.FormatException -> L44 com.google.zxing.NotFoundException -> L46
|
|
com.google.zxing.common.DecoderResult r1 = r1.a(r0) // Catch: com.google.zxing.FormatException -> L44 com.google.zxing.NotFoundException -> L46
|
|
goto L4e
|
|
L44:
|
|
r13 = move-exception
|
|
goto L47
|
|
L46:
|
|
r13 = move-exception
|
|
L47:
|
|
if (r2 != 0) goto L4d
|
|
if (r3 == 0) goto L4c
|
|
throw r3
|
|
L4c:
|
|
throw r13
|
|
L4d:
|
|
throw r2
|
|
L4e:
|
|
r8 = r4
|
|
if (r14 == 0) goto L66
|
|
com.google.zxing.DecodeHintType r0 = com.google.zxing.DecodeHintType.NEED_RESULT_POINT_CALLBACK
|
|
java.lang.Object r14 = r14.get(r0)
|
|
com.google.zxing.ResultPointCallback r14 = (com.google.zxing.ResultPointCallback) r14
|
|
if (r14 == 0) goto L66
|
|
int r0 = r8.length
|
|
L5c:
|
|
if (r13 >= r0) goto L66
|
|
r2 = r8[r13]
|
|
r14.a(r2)
|
|
int r13 = r13 + 1
|
|
goto L5c
|
|
L66:
|
|
com.google.zxing.Result r13 = new com.google.zxing.Result
|
|
java.lang.String r5 = r1.h()
|
|
byte[] r6 = r1.e()
|
|
int r7 = r1.c()
|
|
com.google.zxing.BarcodeFormat r9 = com.google.zxing.BarcodeFormat.AZTEC
|
|
long r10 = java.lang.System.currentTimeMillis()
|
|
r4 = r13
|
|
r4.<init>(r5, r6, r7, r8, r9, r10)
|
|
java.util.List r14 = r1.a()
|
|
if (r14 == 0) goto L89
|
|
com.google.zxing.ResultMetadataType r0 = com.google.zxing.ResultMetadataType.BYTE_SEGMENTS
|
|
r13.a(r0, r14)
|
|
L89:
|
|
java.lang.String r14 = r1.b()
|
|
if (r14 == 0) goto L94
|
|
com.google.zxing.ResultMetadataType r0 = com.google.zxing.ResultMetadataType.ERROR_CORRECTION_LEVEL
|
|
r13.a(r0, r14)
|
|
L94:
|
|
return r13
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.zxing.aztec.AztecReader.a(com.google.zxing.BinaryBitmap, java.util.Map):com.google.zxing.Result");
|
|
}
|
|
|
|
@Override // com.google.zxing.Reader
|
|
public void reset() {
|
|
}
|
|
}
|