mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Closes #262 : fix parsing of Data Matrix with dimension >= 144
This commit is contained in:
parent
aa97cd17fb
commit
344d55e688
1
AUTHORS
1
AUTHORS
|
@ -124,3 +124,4 @@ Wolfgang Jung
|
||||||
Yahoe001
|
Yahoe001
|
||||||
Yakov Okshtein (Google)
|
Yakov Okshtein (Google)
|
||||||
Yao Wei
|
Yao Wei
|
||||||
|
Younes CHTIOUI
|
||||||
|
|
|
@ -94,8 +94,9 @@ final class DataBlock {
|
||||||
int max = result[0].codewords.length;
|
int max = result[0].codewords.length;
|
||||||
for (int i = longerBlocksNumDataCodewords; i < max; i++) {
|
for (int i = longerBlocksNumDataCodewords; i < max; i++) {
|
||||||
for (int j = 0; j < numResultBlocks; j++) {
|
for (int j = 0; j < numResultBlocks; j++) {
|
||||||
int iOffset = specialVersion && j > 7 ? i - 1 : i;
|
int jOffset = specialVersion ? (j + 8) % numResultBlocks : j;
|
||||||
result[j].codewords[iOffset] = rawCodewords[rawCodewordsOffset++];
|
int iOffset = specialVersion && jOffset > 7 ? i - 1 : i;
|
||||||
|
result[jOffset].codewords[iOffset] = rawCodewords[rawCodewordsOffset++];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue