mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Han Xin: Comment possible errors in AIMD-015
This commit is contained in:
parent
032dee1e0e
commit
55b33cfb88
@ -378,7 +378,7 @@ void calculate_binary(char binary[], char mode[], int source[], int length) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (debug) {
|
if (debug) {
|
||||||
printf("0x%4X (%d)", encoding_value, encoding_value);
|
printf("0x%4x (%d)", encoding_value, encoding_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
i += count;
|
i += count;
|
||||||
@ -626,7 +626,8 @@ void calculate_binary(char binary[], char mode[], int source[], int length) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Terminator */
|
/* Terminator */
|
||||||
strcat(binary, "111111111111");
|
strcat(binary, "111111111111111");
|
||||||
|
/* Terminator sequence of length 12 is assumed to be a mistake */
|
||||||
|
|
||||||
if (debug) {
|
if (debug) {
|
||||||
printf("\n");
|
printf("\n");
|
||||||
@ -1130,6 +1131,11 @@ int hx_evaluate(unsigned char *eval, int size, int pattern) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Test 2: Adjacent modules in row/column in same colour */
|
/* Test 2: Adjacent modules in row/column in same colour */
|
||||||
|
/* In AIMD-15 section 5.8.3.2 it is stated... “In Table 9 below, i refers to the row
|
||||||
|
* position of the module.” - however i being the length of the run of the
|
||||||
|
* same colour (i.e. "block" below) in the same fashion as ISO/IEC 18004
|
||||||
|
* makes more sense. The implementation below matches AIMD-015.*/
|
||||||
|
|
||||||
/* Vertical */
|
/* Vertical */
|
||||||
for (x = 0; x < size; x++) {
|
for (x = 0; x < size; x++) {
|
||||||
state = local[x];
|
state = local[x];
|
||||||
|
Loading…
Reference in New Issue
Block a user