Files
rr3-apk/smali_classes3/com/google/zxing/pdf417/encoder/BarcodeMatrix.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08: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