mirror of
https://github.com/zxing/zxing.git
synced 2024-11-09 20:44:03 -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
|
||||
Yakov Okshtein (Google)
|
||||
Yao Wei
|
||||
Younes CHTIOUI
|
||||
|
|
|
@ -94,8 +94,9 @@ final class DataBlock {
|
|||
int max = result[0].codewords.length;
|
||||
for (int i = longerBlocksNumDataCodewords; i < max; i++) {
|
||||
for (int j = 0; j < numResultBlocks; j++) {
|
||||
int iOffset = specialVersion && j > 7 ? i - 1 : i;
|
||||
result[j].codewords[iOffset] = rawCodewords[rawCodewordsOffset++];
|
||||
int jOffset = specialVersion ? (j + 8) % numResultBlocks : j;
|
||||
int iOffset = specialVersion && jOffset > 7 ? i - 1 : i;
|
||||
result[jOffset].codewords[iOffset] = rawCodewords[rawCodewordsOffset++];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue