- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
517 lines
20 KiB
Java
517 lines
20 KiB
Java
package com.google.zxing.qrcode.encoder;
|
|
|
|
import com.google.zxing.WriterException;
|
|
import com.google.zxing.common.BitArray;
|
|
import com.google.zxing.common.CharacterSetECI;
|
|
import com.google.zxing.common.reedsolomon.GenericGF;
|
|
import com.google.zxing.common.reedsolomon.ReedSolomonEncoder;
|
|
import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel;
|
|
import com.google.zxing.qrcode.decoder.Mode;
|
|
import com.google.zxing.qrcode.decoder.Version;
|
|
import java.io.UnsupportedEncodingException;
|
|
import java.util.ArrayList;
|
|
import java.util.Iterator;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public abstract class Encoder {
|
|
public static final int[] ALPHANUMERIC_TABLE = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 36, -1, -1, -1, 37, 38, -1, -1, -1, -1, 39, 40, -1, 41, 42, 43, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 44, -1, -1, -1, -1, -1, -1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, -1, -1, -1, -1, -1};
|
|
|
|
public static int calculateMaskPenalty(ByteMatrix byteMatrix) {
|
|
return MaskUtil.applyMaskPenaltyRule1(byteMatrix) + MaskUtil.applyMaskPenaltyRule2(byteMatrix) + MaskUtil.applyMaskPenaltyRule3(byteMatrix) + MaskUtil.applyMaskPenaltyRule4(byteMatrix);
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:30:0x009b */
|
|
/* JADX WARN: Removed duplicated region for block: B:33:0x00a0 */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static com.google.zxing.qrcode.encoder.QRCode encode(java.lang.String r6, com.google.zxing.qrcode.decoder.ErrorCorrectionLevel r7, java.util.Map r8) {
|
|
/*
|
|
if (r8 == 0) goto Lc
|
|
com.google.zxing.EncodeHintType r0 = com.google.zxing.EncodeHintType.CHARACTER_SET
|
|
boolean r0 = r8.containsKey(r0)
|
|
if (r0 == 0) goto Lc
|
|
r0 = 1
|
|
goto Ld
|
|
Lc:
|
|
r0 = 0
|
|
Ld:
|
|
if (r0 == 0) goto L1a
|
|
com.google.zxing.EncodeHintType r1 = com.google.zxing.EncodeHintType.CHARACTER_SET
|
|
java.lang.Object r1 = r8.get(r1)
|
|
java.lang.String r1 = r1.toString()
|
|
goto L1c
|
|
L1a:
|
|
java.lang.String r1 = "ISO-8859-1"
|
|
L1c:
|
|
com.google.zxing.qrcode.decoder.Mode r2 = chooseMode(r6, r1)
|
|
com.google.zxing.common.BitArray r3 = new com.google.zxing.common.BitArray
|
|
r3.<init>()
|
|
com.google.zxing.qrcode.decoder.Mode r4 = com.google.zxing.qrcode.decoder.Mode.BYTE
|
|
if (r2 != r4) goto L34
|
|
if (r0 == 0) goto L34
|
|
com.google.zxing.common.CharacterSetECI r0 = com.google.zxing.common.CharacterSetECI.getCharacterSetECIByName(r1)
|
|
if (r0 == 0) goto L34
|
|
appendECI(r0, r3)
|
|
L34:
|
|
if (r8 == 0) goto L55
|
|
com.google.zxing.EncodeHintType r0 = com.google.zxing.EncodeHintType.GS1_FORMAT
|
|
boolean r5 = r8.containsKey(r0)
|
|
if (r5 == 0) goto L55
|
|
java.lang.Object r0 = r8.get(r0)
|
|
java.lang.String r0 = r0.toString()
|
|
java.lang.Boolean r0 = java.lang.Boolean.valueOf(r0)
|
|
boolean r0 = r0.booleanValue()
|
|
if (r0 == 0) goto L55
|
|
com.google.zxing.qrcode.decoder.Mode r0 = com.google.zxing.qrcode.decoder.Mode.FNC1_FIRST_POSITION
|
|
appendModeInfo(r0, r3)
|
|
L55:
|
|
appendModeInfo(r2, r3)
|
|
com.google.zxing.common.BitArray r0 = new com.google.zxing.common.BitArray
|
|
r0.<init>()
|
|
appendBytes(r6, r2, r0, r1)
|
|
if (r8 == 0) goto L8d
|
|
com.google.zxing.EncodeHintType r1 = com.google.zxing.EncodeHintType.QR_VERSION
|
|
boolean r5 = r8.containsKey(r1)
|
|
if (r5 == 0) goto L8d
|
|
java.lang.Object r8 = r8.get(r1)
|
|
java.lang.String r8 = r8.toString()
|
|
int r8 = java.lang.Integer.parseInt(r8)
|
|
com.google.zxing.qrcode.decoder.Version r8 = com.google.zxing.qrcode.decoder.Version.getVersionForNumber(r8)
|
|
int r1 = calculateBitsNeeded(r2, r3, r0, r8)
|
|
boolean r1 = willFit(r1, r8, r7)
|
|
if (r1 == 0) goto L85
|
|
goto L91
|
|
L85:
|
|
com.google.zxing.WriterException r6 = new com.google.zxing.WriterException
|
|
java.lang.String r7 = "Data too big for requested version"
|
|
r6.<init>(r7)
|
|
throw r6
|
|
L8d:
|
|
com.google.zxing.qrcode.decoder.Version r8 = recommendVersion(r7, r2, r3, r0)
|
|
L91:
|
|
com.google.zxing.common.BitArray r1 = new com.google.zxing.common.BitArray
|
|
r1.<init>()
|
|
r1.appendBitArray(r3)
|
|
if (r2 != r4) goto La0
|
|
int r6 = r0.getSizeInBytes()
|
|
goto La4
|
|
La0:
|
|
int r6 = r6.length()
|
|
La4:
|
|
appendLengthInfo(r6, r8, r2, r1)
|
|
r1.appendBitArray(r0)
|
|
com.google.zxing.qrcode.decoder.Version$ECBlocks r6 = r8.getECBlocksForLevel(r7)
|
|
int r0 = r8.getTotalCodewords()
|
|
int r3 = r6.getTotalECCodewords()
|
|
int r0 = r0 - r3
|
|
terminateBits(r0, r1)
|
|
int r3 = r8.getTotalCodewords()
|
|
int r6 = r6.getNumBlocks()
|
|
com.google.zxing.common.BitArray r6 = interleaveWithECBytes(r1, r3, r0, r6)
|
|
com.google.zxing.qrcode.encoder.QRCode r0 = new com.google.zxing.qrcode.encoder.QRCode
|
|
r0.<init>()
|
|
r0.setECLevel(r7)
|
|
r0.setMode(r2)
|
|
r0.setVersion(r8)
|
|
int r1 = r8.getDimensionForVersion()
|
|
com.google.zxing.qrcode.encoder.ByteMatrix r2 = new com.google.zxing.qrcode.encoder.ByteMatrix
|
|
r2.<init>(r1, r1)
|
|
int r1 = chooseMaskPattern(r6, r7, r8, r2)
|
|
r0.setMaskPattern(r1)
|
|
com.google.zxing.qrcode.encoder.MatrixUtil.buildMatrix(r6, r7, r8, r1, r2)
|
|
r0.setMatrix(r2)
|
|
return r0
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.zxing.qrcode.encoder.Encoder.encode(java.lang.String, com.google.zxing.qrcode.decoder.ErrorCorrectionLevel, java.util.Map):com.google.zxing.qrcode.encoder.QRCode");
|
|
}
|
|
|
|
public static Version recommendVersion(ErrorCorrectionLevel errorCorrectionLevel, Mode mode, BitArray bitArray, BitArray bitArray2) {
|
|
return chooseVersion(calculateBitsNeeded(mode, bitArray, bitArray2, chooseVersion(calculateBitsNeeded(mode, bitArray, bitArray2, Version.getVersionForNumber(1)), errorCorrectionLevel)), errorCorrectionLevel);
|
|
}
|
|
|
|
public static int calculateBitsNeeded(Mode mode, BitArray bitArray, BitArray bitArray2, Version version) {
|
|
return bitArray.getSize() + mode.getCharacterCountBits(version) + bitArray2.getSize();
|
|
}
|
|
|
|
public static int getAlphanumericCode(int i) {
|
|
int[] iArr = ALPHANUMERIC_TABLE;
|
|
if (i < iArr.length) {
|
|
return iArr[i];
|
|
}
|
|
return -1;
|
|
}
|
|
|
|
public static Mode chooseMode(String str, String str2) {
|
|
if ("Shift_JIS".equals(str2) && isOnlyDoubleByteKanji(str)) {
|
|
return Mode.KANJI;
|
|
}
|
|
boolean z = false;
|
|
boolean z2 = false;
|
|
for (int i = 0; i < str.length(); i++) {
|
|
char charAt = str.charAt(i);
|
|
if (charAt >= '0' && charAt <= '9') {
|
|
z2 = true;
|
|
} else {
|
|
if (getAlphanumericCode(charAt) == -1) {
|
|
return Mode.BYTE;
|
|
}
|
|
z = true;
|
|
}
|
|
}
|
|
if (z) {
|
|
return Mode.ALPHANUMERIC;
|
|
}
|
|
if (z2) {
|
|
return Mode.NUMERIC;
|
|
}
|
|
return Mode.BYTE;
|
|
}
|
|
|
|
public static boolean isOnlyDoubleByteKanji(String str) {
|
|
try {
|
|
byte[] bytes = str.getBytes("Shift_JIS");
|
|
int length = bytes.length;
|
|
if (length % 2 != 0) {
|
|
return false;
|
|
}
|
|
for (int i = 0; i < length; i += 2) {
|
|
int i2 = bytes[i] & 255;
|
|
if ((i2 < 129 || i2 > 159) && (i2 < 224 || i2 > 235)) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
} catch (UnsupportedEncodingException unused) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public static int chooseMaskPattern(BitArray bitArray, ErrorCorrectionLevel errorCorrectionLevel, Version version, ByteMatrix byteMatrix) {
|
|
int i = Integer.MAX_VALUE;
|
|
int i2 = -1;
|
|
for (int i3 = 0; i3 < 8; i3++) {
|
|
MatrixUtil.buildMatrix(bitArray, errorCorrectionLevel, version, i3, byteMatrix);
|
|
int calculateMaskPenalty = calculateMaskPenalty(byteMatrix);
|
|
if (calculateMaskPenalty < i) {
|
|
i2 = i3;
|
|
i = calculateMaskPenalty;
|
|
}
|
|
}
|
|
return i2;
|
|
}
|
|
|
|
public static Version chooseVersion(int i, ErrorCorrectionLevel errorCorrectionLevel) {
|
|
for (int i2 = 1; i2 <= 40; i2++) {
|
|
Version versionForNumber = Version.getVersionForNumber(i2);
|
|
if (willFit(i, versionForNumber, errorCorrectionLevel)) {
|
|
return versionForNumber;
|
|
}
|
|
}
|
|
throw new WriterException("Data too big");
|
|
}
|
|
|
|
public static boolean willFit(int i, Version version, ErrorCorrectionLevel errorCorrectionLevel) {
|
|
return version.getTotalCodewords() - version.getECBlocksForLevel(errorCorrectionLevel).getTotalECCodewords() >= (i + 7) / 8;
|
|
}
|
|
|
|
public static void terminateBits(int i, BitArray bitArray) {
|
|
int i2 = i << 3;
|
|
if (bitArray.getSize() > i2) {
|
|
throw new WriterException("data bits cannot fit in the QR Code" + bitArray.getSize() + " > " + i2);
|
|
}
|
|
for (int i3 = 0; i3 < 4 && bitArray.getSize() < i2; i3++) {
|
|
bitArray.appendBit(false);
|
|
}
|
|
int size = bitArray.getSize() & 7;
|
|
if (size > 0) {
|
|
while (size < 8) {
|
|
bitArray.appendBit(false);
|
|
size++;
|
|
}
|
|
}
|
|
int sizeInBytes = i - bitArray.getSizeInBytes();
|
|
for (int i4 = 0; i4 < sizeInBytes; i4++) {
|
|
bitArray.appendBits((i4 & 1) == 0 ? 236 : 17, 8);
|
|
}
|
|
if (bitArray.getSize() != i2) {
|
|
throw new WriterException("Bits size does not equal capacity");
|
|
}
|
|
}
|
|
|
|
public static void getNumDataBytesAndNumECBytesForBlockID(int i, int i2, int i3, int i4, int[] iArr, int[] iArr2) {
|
|
if (i4 >= i3) {
|
|
throw new WriterException("Block ID too large");
|
|
}
|
|
int i5 = i % i3;
|
|
int i6 = i3 - i5;
|
|
int i7 = i / i3;
|
|
int i8 = i7 + 1;
|
|
int i9 = i2 / i3;
|
|
int i10 = i9 + 1;
|
|
int i11 = i7 - i9;
|
|
int i12 = i8 - i10;
|
|
if (i11 != i12) {
|
|
throw new WriterException("EC bytes mismatch");
|
|
}
|
|
if (i3 != i6 + i5) {
|
|
throw new WriterException("RS blocks mismatch");
|
|
}
|
|
if (i != ((i9 + i11) * i6) + ((i10 + i12) * i5)) {
|
|
throw new WriterException("Total bytes mismatch");
|
|
}
|
|
if (i4 < i6) {
|
|
iArr[0] = i9;
|
|
iArr2[0] = i11;
|
|
} else {
|
|
iArr[0] = i10;
|
|
iArr2[0] = i12;
|
|
}
|
|
}
|
|
|
|
public static BitArray interleaveWithECBytes(BitArray bitArray, int i, int i2, int i3) {
|
|
if (bitArray.getSizeInBytes() != i2) {
|
|
throw new WriterException("Number of bits and data bytes does not match");
|
|
}
|
|
ArrayList arrayList = new ArrayList(i3);
|
|
int i4 = 0;
|
|
int i5 = 0;
|
|
int i6 = 0;
|
|
for (int i7 = 0; i7 < i3; i7++) {
|
|
int[] iArr = new int[1];
|
|
int[] iArr2 = new int[1];
|
|
getNumDataBytesAndNumECBytesForBlockID(i, i2, i3, i7, iArr, iArr2);
|
|
int i8 = iArr[0];
|
|
byte[] bArr = new byte[i8];
|
|
bitArray.toBytes(i4 << 3, bArr, 0, i8);
|
|
byte[] generateECBytes = generateECBytes(bArr, iArr2[0]);
|
|
arrayList.add(new BlockPair(bArr, generateECBytes));
|
|
i5 = Math.max(i5, i8);
|
|
i6 = Math.max(i6, generateECBytes.length);
|
|
i4 += iArr[0];
|
|
}
|
|
if (i2 != i4) {
|
|
throw new WriterException("Data bytes does not match offset");
|
|
}
|
|
BitArray bitArray2 = new BitArray();
|
|
for (int i9 = 0; i9 < i5; i9++) {
|
|
Iterator it = arrayList.iterator();
|
|
while (it.hasNext()) {
|
|
byte[] dataBytes = ((BlockPair) it.next()).getDataBytes();
|
|
if (i9 < dataBytes.length) {
|
|
bitArray2.appendBits(dataBytes[i9], 8);
|
|
}
|
|
}
|
|
}
|
|
for (int i10 = 0; i10 < i6; i10++) {
|
|
Iterator it2 = arrayList.iterator();
|
|
while (it2.hasNext()) {
|
|
byte[] errorCorrectionBytes = ((BlockPair) it2.next()).getErrorCorrectionBytes();
|
|
if (i10 < errorCorrectionBytes.length) {
|
|
bitArray2.appendBits(errorCorrectionBytes[i10], 8);
|
|
}
|
|
}
|
|
}
|
|
if (i == bitArray2.getSizeInBytes()) {
|
|
return bitArray2;
|
|
}
|
|
throw new WriterException("Interleaving error: " + i + " and " + bitArray2.getSizeInBytes() + " differ.");
|
|
}
|
|
|
|
public static byte[] generateECBytes(byte[] bArr, int i) {
|
|
int length = bArr.length;
|
|
int[] iArr = new int[length + i];
|
|
for (int i2 = 0; i2 < length; i2++) {
|
|
iArr[i2] = bArr[i2] & 255;
|
|
}
|
|
new ReedSolomonEncoder(GenericGF.QR_CODE_FIELD_256).encode(iArr, i);
|
|
byte[] bArr2 = new byte[i];
|
|
for (int i3 = 0; i3 < i; i3++) {
|
|
bArr2[i3] = (byte) iArr[length + i3];
|
|
}
|
|
return bArr2;
|
|
}
|
|
|
|
public static void appendModeInfo(Mode mode, BitArray bitArray) {
|
|
bitArray.appendBits(mode.getBits(), 4);
|
|
}
|
|
|
|
public static void appendLengthInfo(int i, Version version, Mode mode, BitArray bitArray) {
|
|
int characterCountBits = mode.getCharacterCountBits(version);
|
|
int i2 = 1 << characterCountBits;
|
|
if (i >= i2) {
|
|
throw new WriterException(i + " is bigger than " + (i2 - 1));
|
|
}
|
|
bitArray.appendBits(i, characterCountBits);
|
|
}
|
|
|
|
/* renamed from: com.google.zxing.qrcode.encoder.Encoder$1, reason: invalid class name */
|
|
public static /* synthetic */ class AnonymousClass1 {
|
|
public static final /* synthetic */ int[] $SwitchMap$com$google$zxing$qrcode$decoder$Mode;
|
|
|
|
static {
|
|
int[] iArr = new int[Mode.values().length];
|
|
$SwitchMap$com$google$zxing$qrcode$decoder$Mode = iArr;
|
|
try {
|
|
iArr[Mode.NUMERIC.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
$SwitchMap$com$google$zxing$qrcode$decoder$Mode[Mode.ALPHANUMERIC.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
try {
|
|
$SwitchMap$com$google$zxing$qrcode$decoder$Mode[Mode.BYTE.ordinal()] = 3;
|
|
} catch (NoSuchFieldError unused3) {
|
|
}
|
|
try {
|
|
$SwitchMap$com$google$zxing$qrcode$decoder$Mode[Mode.KANJI.ordinal()] = 4;
|
|
} catch (NoSuchFieldError unused4) {
|
|
}
|
|
}
|
|
}
|
|
|
|
public static void appendBytes(String str, Mode mode, BitArray bitArray, String str2) {
|
|
int i = AnonymousClass1.$SwitchMap$com$google$zxing$qrcode$decoder$Mode[mode.ordinal()];
|
|
if (i == 1) {
|
|
appendNumericBytes(str, bitArray);
|
|
return;
|
|
}
|
|
if (i == 2) {
|
|
appendAlphanumericBytes(str, bitArray);
|
|
} else if (i == 3) {
|
|
append8BitBytes(str, bitArray, str2);
|
|
} else {
|
|
if (i == 4) {
|
|
appendKanjiBytes(str, bitArray);
|
|
return;
|
|
}
|
|
throw new WriterException("Invalid mode: ".concat(String.valueOf(mode)));
|
|
}
|
|
}
|
|
|
|
public static void appendNumericBytes(CharSequence charSequence, BitArray bitArray) {
|
|
int length = charSequence.length();
|
|
int i = 0;
|
|
while (i < length) {
|
|
int charAt = charSequence.charAt(i) - '0';
|
|
int i2 = i + 2;
|
|
if (i2 < length) {
|
|
bitArray.appendBits((charAt * 100) + ((charSequence.charAt(i + 1) - '0') * 10) + (charSequence.charAt(i2) - '0'), 10);
|
|
i += 3;
|
|
} else {
|
|
i++;
|
|
if (i < length) {
|
|
bitArray.appendBits((charAt * 10) + (charSequence.charAt(i) - '0'), 7);
|
|
i = i2;
|
|
} else {
|
|
bitArray.appendBits(charAt, 4);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public static void appendAlphanumericBytes(CharSequence charSequence, BitArray bitArray) {
|
|
int length = charSequence.length();
|
|
int i = 0;
|
|
while (i < length) {
|
|
int alphanumericCode = getAlphanumericCode(charSequence.charAt(i));
|
|
if (alphanumericCode == -1) {
|
|
throw new WriterException();
|
|
}
|
|
int i2 = i + 1;
|
|
if (i2 < length) {
|
|
int alphanumericCode2 = getAlphanumericCode(charSequence.charAt(i2));
|
|
if (alphanumericCode2 == -1) {
|
|
throw new WriterException();
|
|
}
|
|
bitArray.appendBits((alphanumericCode * 45) + alphanumericCode2, 11);
|
|
i += 2;
|
|
} else {
|
|
bitArray.appendBits(alphanumericCode, 6);
|
|
i = i2;
|
|
}
|
|
}
|
|
}
|
|
|
|
public static void append8BitBytes(String str, BitArray bitArray, String str2) {
|
|
try {
|
|
for (byte b : str.getBytes(str2)) {
|
|
bitArray.appendBits(b, 8);
|
|
}
|
|
} catch (UnsupportedEncodingException e) {
|
|
throw new WriterException(e);
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:11:0x0035 A[LOOP:0: B:4:0x0008->B:11:0x0035, LOOP_END] */
|
|
/* JADX WARN: Removed duplicated region for block: B:12:0x0044 A[SYNTHETIC] */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public static void appendKanjiBytes(java.lang.String r6, com.google.zxing.common.BitArray r7) {
|
|
/*
|
|
java.lang.String r0 = "Shift_JIS"
|
|
byte[] r6 = r6.getBytes(r0) // Catch: java.io.UnsupportedEncodingException -> L4d
|
|
int r0 = r6.length
|
|
r1 = 0
|
|
L8:
|
|
if (r1 >= r0) goto L4c
|
|
r2 = r6[r1]
|
|
r2 = r2 & 255(0xff, float:3.57E-43)
|
|
int r3 = r1 + 1
|
|
r3 = r6[r3]
|
|
r3 = r3 & 255(0xff, float:3.57E-43)
|
|
int r2 = r2 << 8
|
|
r2 = r2 | r3
|
|
r3 = 33088(0x8140, float:4.6366E-41)
|
|
r4 = -1
|
|
if (r2 < r3) goto L24
|
|
r5 = 40956(0x9ffc, float:5.7392E-41)
|
|
if (r2 > r5) goto L24
|
|
L22:
|
|
int r2 = r2 - r3
|
|
goto L33
|
|
L24:
|
|
r3 = 57408(0xe040, float:8.0446E-41)
|
|
if (r2 < r3) goto L32
|
|
r3 = 60351(0xebbf, float:8.457E-41)
|
|
if (r2 > r3) goto L32
|
|
r3 = 49472(0xc140, float:6.9325E-41)
|
|
goto L22
|
|
L32:
|
|
r2 = r4
|
|
L33:
|
|
if (r2 == r4) goto L44
|
|
int r3 = r2 >> 8
|
|
int r3 = r3 * 192
|
|
r2 = r2 & 255(0xff, float:3.57E-43)
|
|
int r3 = r3 + r2
|
|
r2 = 13
|
|
r7.appendBits(r3, r2)
|
|
int r1 = r1 + 2
|
|
goto L8
|
|
L44:
|
|
com.google.zxing.WriterException r6 = new com.google.zxing.WriterException
|
|
java.lang.String r7 = "Invalid byte sequence"
|
|
r6.<init>(r7)
|
|
throw r6
|
|
L4c:
|
|
return
|
|
L4d:
|
|
r6 = move-exception
|
|
com.google.zxing.WriterException r7 = new com.google.zxing.WriterException
|
|
r7.<init>(r6)
|
|
throw r7
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.zxing.qrcode.encoder.Encoder.appendKanjiBytes(java.lang.String, com.google.zxing.common.BitArray):void");
|
|
}
|
|
|
|
public static void appendECI(CharacterSetECI characterSetECI, BitArray bitArray) {
|
|
bitArray.appendBits(Mode.ECI.getBits(), 4);
|
|
bitArray.appendBits(characterSetECI.getValue(), 8);
|
|
}
|
|
}
|