This commit is contained in:
2022-06-10 21:38:30 +09:00
commit 27f5152838
51323 changed files with 12934539 additions and 0 deletions
@@ -0,0 +1,60 @@
.class public final Lcom/google/zxing/aztec/AztecDetectorResult;
.super Lcom/google/zxing/common/DetectorResult;
.source "AztecDetectorResult.java"
# instance fields
.field private final compact:Z
.field private final nbDatablocks:I
.field private final nbLayers:I
# direct methods
.method public constructor <init>(Lcom/google/zxing/common/BitMatrix;[Lcom/google/zxing/ResultPoint;ZII)V
.locals 0
.line 1
invoke-direct {p0, p1, p2}, Lcom/google/zxing/common/DetectorResult;-><init>(Lcom/google/zxing/common/BitMatrix;[Lcom/google/zxing/ResultPoint;)V
.line 2
iput-boolean p3, p0, Lcom/google/zxing/aztec/AztecDetectorResult;->compact:Z
.line 3
iput p4, p0, Lcom/google/zxing/aztec/AztecDetectorResult;->nbDatablocks:I
.line 4
iput p5, p0, Lcom/google/zxing/aztec/AztecDetectorResult;->nbLayers:I
return-void
.end method
# virtual methods
.method public getNbDatablocks()I
.locals 1
.line 1
iget v0, p0, Lcom/google/zxing/aztec/AztecDetectorResult;->nbDatablocks:I
return v0
.end method
.method public getNbLayers()I
.locals 1
.line 1
iget v0, p0, Lcom/google/zxing/aztec/AztecDetectorResult;->nbLayers:I
return v0
.end method
.method public isCompact()Z
.locals 1
.line 1
iget-boolean v0, p0, Lcom/google/zxing/aztec/AztecDetectorResult;->compact:Z
return v0
.end method
@@ -0,0 +1,170 @@
.class public final Lcom/google/zxing/aztec/AztecReader;
.super Ljava/lang/Object;
.source "AztecReader.java"
# interfaces
.implements Lcom/google/zxing/Reader;
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public decode(Lcom/google/zxing/BinaryBitmap;)Lcom/google/zxing/Result;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/zxing/NotFoundException;,
Lcom/google/zxing/FormatException;
}
.end annotation
const/4 v0, 0x0
.line 1
invoke-virtual {p0, p1, v0}, Lcom/google/zxing/aztec/AztecReader;->decode(Lcom/google/zxing/BinaryBitmap;Ljava/util/Map;)Lcom/google/zxing/Result;
move-result-object p1
return-object p1
.end method
.method public decode(Lcom/google/zxing/BinaryBitmap;Ljava/util/Map;)Lcom/google/zxing/Result;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/zxing/BinaryBitmap;",
"Ljava/util/Map<",
"Lcom/google/zxing/DecodeHintType;",
"*>;)",
"Lcom/google/zxing/Result;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/zxing/NotFoundException;,
Lcom/google/zxing/FormatException;
}
.end annotation
.line 2
new-instance v0, Lcom/google/zxing/aztec/detector/Detector;
invoke-virtual {p1}, Lcom/google/zxing/BinaryBitmap;->getBlackMatrix()Lcom/google/zxing/common/BitMatrix;
move-result-object p1
invoke-direct {v0, p1}, Lcom/google/zxing/aztec/detector/Detector;-><init>(Lcom/google/zxing/common/BitMatrix;)V
invoke-virtual {v0}, Lcom/google/zxing/aztec/detector/Detector;->detect()Lcom/google/zxing/aztec/AztecDetectorResult;
move-result-object p1
.line 3
invoke-virtual {p1}, Lcom/google/zxing/common/DetectorResult;->getPoints()[Lcom/google/zxing/ResultPoint;
move-result-object v0
if-eqz p2, :cond_1
.line 4
sget-object v1, Lcom/google/zxing/DecodeHintType;->NEED_RESULT_POINT_CALLBACK:Lcom/google/zxing/DecodeHintType;
invoke-interface {p2, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p2
check-cast p2, Lcom/google/zxing/ResultPointCallback;
if-eqz p2, :cond_1
.line 5
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-lt v2, v1, :cond_0
goto :goto_1
:cond_0
aget-object v3, v0, v2
.line 6
invoke-interface {p2, v3}, Lcom/google/zxing/ResultPointCallback;->foundPossibleResultPoint(Lcom/google/zxing/ResultPoint;)V
add-int/lit8 v2, v2, 0x1
goto :goto_0
.line 7
:cond_1
:goto_1
new-instance p2, Lcom/google/zxing/aztec/decoder/Decoder;
invoke-direct {p2}, Lcom/google/zxing/aztec/decoder/Decoder;-><init>()V
invoke-virtual {p2, p1}, Lcom/google/zxing/aztec/decoder/Decoder;->decode(Lcom/google/zxing/aztec/AztecDetectorResult;)Lcom/google/zxing/common/DecoderResult;
move-result-object p1
.line 8
new-instance p2, Lcom/google/zxing/Result;
invoke-virtual {p1}, Lcom/google/zxing/common/DecoderResult;->getText()Ljava/lang/String;
move-result-object v1
invoke-virtual {p1}, Lcom/google/zxing/common/DecoderResult;->getRawBytes()[B
move-result-object v2
sget-object v3, Lcom/google/zxing/BarcodeFormat;->AZTEC:Lcom/google/zxing/BarcodeFormat;
invoke-direct {p2, v1, v2, v0, v3}, Lcom/google/zxing/Result;-><init>(Ljava/lang/String;[B[Lcom/google/zxing/ResultPoint;Lcom/google/zxing/BarcodeFormat;)V
.line 9
invoke-virtual {p1}, Lcom/google/zxing/common/DecoderResult;->getByteSegments()Ljava/util/List;
move-result-object v0
if-eqz v0, :cond_2
.line 10
sget-object v1, Lcom/google/zxing/ResultMetadataType;->BYTE_SEGMENTS:Lcom/google/zxing/ResultMetadataType;
invoke-virtual {p2, v1, v0}, Lcom/google/zxing/Result;->putMetadata(Lcom/google/zxing/ResultMetadataType;Ljava/lang/Object;)V
.line 11
:cond_2
invoke-virtual {p1}, Lcom/google/zxing/common/DecoderResult;->getECLevel()Ljava/lang/String;
move-result-object p1
if-eqz p1, :cond_3
.line 12
sget-object v0, Lcom/google/zxing/ResultMetadataType;->ERROR_CORRECTION_LEVEL:Lcom/google/zxing/ResultMetadataType;
invoke-virtual {p2, v0, p1}, Lcom/google/zxing/Result;->putMetadata(Lcom/google/zxing/ResultMetadataType;Ljava/lang/Object;)V
:cond_3
return-object p2
.end method
.method public reset()V
.locals 0
return-void
.end method
@@ -0,0 +1,172 @@
.class final enum Lcom/google/zxing/aztec/decoder/Decoder$Table;
.super Ljava/lang/Enum;
.source "Decoder.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/zxing/aztec/decoder/Decoder;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "Table"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/zxing/aztec/decoder/Decoder$Table;",
">;"
}
.end annotation
# static fields
.field public static final enum BINARY:Lcom/google/zxing/aztec/decoder/Decoder$Table;
.field public static final enum DIGIT:Lcom/google/zxing/aztec/decoder/Decoder$Table;
.field private static final synthetic ENUM$VALUES:[Lcom/google/zxing/aztec/decoder/Decoder$Table;
.field public static final enum LOWER:Lcom/google/zxing/aztec/decoder/Decoder$Table;
.field public static final enum MIXED:Lcom/google/zxing/aztec/decoder/Decoder$Table;
.field public static final enum PUNCT:Lcom/google/zxing/aztec/decoder/Decoder$Table;
.field public static final enum UPPER:Lcom/google/zxing/aztec/decoder/Decoder$Table;
# direct methods
.method public static constructor <clinit>()V
.locals 13
.line 1
new-instance v0, Lcom/google/zxing/aztec/decoder/Decoder$Table;
const-string v1, "UPPER"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Lcom/google/zxing/aztec/decoder/Decoder$Table;-><init>(Ljava/lang/String;I)V
sput-object v0, Lcom/google/zxing/aztec/decoder/Decoder$Table;->UPPER:Lcom/google/zxing/aztec/decoder/Decoder$Table;
.line 2
new-instance v1, Lcom/google/zxing/aztec/decoder/Decoder$Table;
const-string v3, "LOWER"
const/4 v4, 0x1
invoke-direct {v1, v3, v4}, Lcom/google/zxing/aztec/decoder/Decoder$Table;-><init>(Ljava/lang/String;I)V
sput-object v1, Lcom/google/zxing/aztec/decoder/Decoder$Table;->LOWER:Lcom/google/zxing/aztec/decoder/Decoder$Table;
.line 3
new-instance v3, Lcom/google/zxing/aztec/decoder/Decoder$Table;
const-string v5, "MIXED"
const/4 v6, 0x2
invoke-direct {v3, v5, v6}, Lcom/google/zxing/aztec/decoder/Decoder$Table;-><init>(Ljava/lang/String;I)V
sput-object v3, Lcom/google/zxing/aztec/decoder/Decoder$Table;->MIXED:Lcom/google/zxing/aztec/decoder/Decoder$Table;
.line 4
new-instance v5, Lcom/google/zxing/aztec/decoder/Decoder$Table;
const-string v7, "DIGIT"
const/4 v8, 0x3
invoke-direct {v5, v7, v8}, Lcom/google/zxing/aztec/decoder/Decoder$Table;-><init>(Ljava/lang/String;I)V
sput-object v5, Lcom/google/zxing/aztec/decoder/Decoder$Table;->DIGIT:Lcom/google/zxing/aztec/decoder/Decoder$Table;
.line 5
new-instance v7, Lcom/google/zxing/aztec/decoder/Decoder$Table;
const-string v9, "PUNCT"
const/4 v10, 0x4
invoke-direct {v7, v9, v10}, Lcom/google/zxing/aztec/decoder/Decoder$Table;-><init>(Ljava/lang/String;I)V
sput-object v7, Lcom/google/zxing/aztec/decoder/Decoder$Table;->PUNCT:Lcom/google/zxing/aztec/decoder/Decoder$Table;
.line 6
new-instance v9, Lcom/google/zxing/aztec/decoder/Decoder$Table;
const-string v11, "BINARY"
const/4 v12, 0x5
invoke-direct {v9, v11, v12}, Lcom/google/zxing/aztec/decoder/Decoder$Table;-><init>(Ljava/lang/String;I)V
sput-object v9, Lcom/google/zxing/aztec/decoder/Decoder$Table;->BINARY:Lcom/google/zxing/aztec/decoder/Decoder$Table;
const/4 v11, 0x6
new-array v11, v11, [Lcom/google/zxing/aztec/decoder/Decoder$Table;
aput-object v0, v11, v2
aput-object v1, v11, v4
aput-object v3, v11, v6
aput-object v5, v11, v8
aput-object v7, v11, v10
aput-object v9, v11, v12
.line 7
sput-object v11, Lcom/google/zxing/aztec/decoder/Decoder$Table;->ENUM$VALUES:[Lcom/google/zxing/aztec/decoder/Decoder$Table;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;I)V
.locals 0
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
return-void
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/zxing/aztec/decoder/Decoder$Table;
.locals 1
.line 1
const-class v0, Lcom/google/zxing/aztec/decoder/Decoder$Table;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/zxing/aztec/decoder/Decoder$Table;
return-object p0
.end method
.method public static values()[Lcom/google/zxing/aztec/decoder/Decoder$Table;
.locals 4
.line 1
sget-object v0, Lcom/google/zxing/aztec/decoder/Decoder$Table;->ENUM$VALUES:[Lcom/google/zxing/aztec/decoder/Decoder$Table;
array-length v1, v0
new-array v2, v1, [Lcom/google/zxing/aztec/decoder/Decoder$Table;
const/4 v3, 0x0
invoke-static {v0, v3, v2, v3, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
return-object v2
.end method
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,67 @@
.class final Lcom/google/zxing/aztec/detector/Detector$Point;
.super Ljava/lang/Object;
.source "Detector.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/zxing/aztec/detector/Detector;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Point"
.end annotation
# instance fields
.field public final x:I
.field public final y:I
# direct methods
.method private constructor <init>(II)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput p1, p0, Lcom/google/zxing/aztec/detector/Detector$Point;->x:I
.line 3
iput p2, p0, Lcom/google/zxing/aztec/detector/Detector$Point;->y:I
return-void
.end method
.method public synthetic constructor <init>(IILcom/google/zxing/aztec/detector/Detector$Point;)V
.locals 0
.line 4
invoke-direct {p0, p1, p2}, Lcom/google/zxing/aztec/detector/Detector$Point;-><init>(II)V
return-void
.end method
# virtual methods
.method public toResultPoint()Lcom/google/zxing/ResultPoint;
.locals 3
.line 1
new-instance v0, Lcom/google/zxing/ResultPoint;
iget v1, p0, Lcom/google/zxing/aztec/detector/Detector$Point;->x:I
int-to-float v1, v1
iget v2, p0, Lcom/google/zxing/aztec/detector/Detector$Point;->y:I
int-to-float v2, v2
invoke-direct {v0, v1, v2}, Lcom/google/zxing/ResultPoint;-><init>(FF)V
return-object v0
.end method
File diff suppressed because it is too large Load Diff