Files
supermegamestre 4bbd74a497 First Upload
Just the APK
Force update disabled, will only work offline.
2026-01-26 00:26:29 -03:00

152 lines
3.3 KiB
Smali

.class public final Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;
.super Ljava/lang/Object;
.source "SourceFile"
# instance fields
.field public currentRow:I
.field public final height:I
.field public final matrix:[Lcom/google/zxing/pdf417/encoder/BarcodeRow;
.field public final width:I
# direct methods
.method public constructor <init>(II)V
.locals 5
.line 35
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 36
new-array v0, p1, [Lcom/google/zxing/pdf417/encoder/BarcodeRow;
iput-object v0, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->matrix:[Lcom/google/zxing/pdf417/encoder/BarcodeRow;
array-length v0, v0
const/4 v1, 0x0
:goto_0
if-ge v1, v0, :cond_0
iget-object v2, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->matrix:[Lcom/google/zxing/pdf417/encoder/BarcodeRow;
.line 39
new-instance v3, Lcom/google/zxing/pdf417/encoder/BarcodeRow;
add-int/lit8 v4, p2, 0x4
mul-int/lit8 v4, v4, 0x11
add-int/lit8 v4, v4, 0x1
invoke-direct {v3, v4}, Lcom/google/zxing/pdf417/encoder/BarcodeRow;-><init>(I)V
aput-object v3, v2, v1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
mul-int/lit8 p2, p2, 0x11
iput p2, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->width:I
iput p1, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->height:I
const/4 p1, -0x1
iput p1, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->currentRow:I
return-void
.end method
# virtual methods
.method public getCurrentRow()Lcom/google/zxing/pdf417/encoder/BarcodeRow;
.locals 2
iget-object v0, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->matrix:[Lcom/google/zxing/pdf417/encoder/BarcodeRow;
iget v1, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->currentRow:I
.line 61
aget-object v0, v0, v1
return-object v0
.end method
.method public getScaledMatrix(II)[[B
.locals 6
iget v0, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->height:I
mul-int/2addr v0, p2
iget v1, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->width:I
mul-int/2addr v1, p1
filled-new-array {v0, v1}, [I
move-result-object v0
sget-object v1, Ljava/lang/Byte;->TYPE:Ljava/lang/Class;
.line 75
invoke-static {v1, v0}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;[I)Ljava/lang/Object;
move-result-object v0
check-cast v0, [[B
iget v1, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->height:I
mul-int/2addr v1, p2
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
sub-int v3, v1, v2
add-int/lit8 v3, v3, -0x1
iget-object v4, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->matrix:[Lcom/google/zxing/pdf417/encoder/BarcodeRow;
.line 78
div-int v5, v2, p2
aget-object v4, v4, v5
invoke-virtual {v4, p1}, Lcom/google/zxing/pdf417/encoder/BarcodeRow;->getScaledRow(I)[B
move-result-object v4
aput-object v4, v0, v3
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-object v0
.end method
.method public startRow()V
.locals 1
iget v0, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->currentRow:I
add-int/lit8 v0, v0, 0x1
iput v0, p0, Lcom/google/zxing/pdf417/encoder/BarcodeMatrix;->currentRow:I
return-void
.end method