package com.google.zxing.pdf417.encoder; /* loaded from: classes3.dex */ public final class BarcodeRow { public int currentLocation = 0; public final byte[] row; public BarcodeRow(int i) { this.row = new byte[i]; } public final void set(int i, boolean z) { this.row[i] = z ? (byte) 1 : (byte) 0; } 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); } } 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; } }