Rabbit-R1/android (non root)/java/sources/com/google/zxing/pdf417/encoder/BarcodeRow.java
2024-05-21 17:08:36 -04:00

40 lines
1.1 KiB
Java

package com.google.zxing.pdf417.encoder;
/* loaded from: classes3.dex */
final class BarcodeRow {
private int currentLocation = 0;
private final byte[] row;
/* JADX INFO: Access modifiers changed from: package-private */
public BarcodeRow(int i) {
this.row = new byte[i];
}
/* JADX INFO: Access modifiers changed from: package-private */
public void set(int i, byte b) {
this.row[i] = b;
}
private void set(int i, boolean z) {
this.row[i] = z ? (byte) 1 : (byte) 0;
}
/* JADX INFO: Access modifiers changed from: package-private */
public void addBar(boolean z, int i) {
for (int i2 = 0; i2 < i; i2++) {
int i3 = this.currentLocation;
this.currentLocation = i3 + 1;
set(i3, z);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public byte[] getScaledRow(int i) {
int length = this.row.length * i;
byte[] bArr = new byte[length];
for (int i2 = 0; i2 < length; i2++) {
bArr[i2] = this.row[i2 / i];
}
return bArr;
}
}