mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-23 19:46:56 -04:00
MAXICODE: add minimal encoding by Bue Jensen (BWIPP PR #279),
around 20% slower than current but much better; numerous other fiddlings reedsol: reverse result in `rs_*encode*()` routines & adjust clients appropriately (may replace later with something faster) test suite: cater for MAXICODE SCM better; add assert & dataset totals BWIPP: update to latest gen_gs1_lint.php: restrict line length to 118 for func calls
This commit is contained in:
parent
1ae7815d95
commit
e94727f07d
22 changed files with 1317 additions and 1172 deletions
|
@ -839,7 +839,7 @@ static void qr_add_ecc(unsigned char fullstream[], const unsigned char datastrea
|
|||
}
|
||||
fputs(" // ", stdout);
|
||||
for (j = 0; j < ecc_block_length; j++) {
|
||||
printf("%2X ", ecc_block[ecc_block_length - j - 1]);
|
||||
printf("%2X ", ecc_block[j]);
|
||||
}
|
||||
fputc('\n', stdout);
|
||||
}
|
||||
|
@ -855,7 +855,7 @@ static void qr_add_ecc(unsigned char fullstream[], const unsigned char datastrea
|
|||
}
|
||||
|
||||
for (j = 0; j < ecc_block_length; j++) {
|
||||
interleaved_ecc[(j * blocks) + i] = ecc_block[ecc_block_length - j - 1];
|
||||
interleaved_ecc[(j * blocks) + i] = ecc_block[j];
|
||||
}
|
||||
|
||||
in_posn += length_this_block;
|
||||
|
@ -1955,7 +1955,7 @@ static int microqr_end(struct zint_symbol *symbol, char binary_data[], int bp, c
|
|||
|
||||
/* Add Reed-Solomon codewords to binary data */
|
||||
for (i = 0; i < ecc_codewords; i++) {
|
||||
bp = bin_append_posn(ecc_blocks[ecc_codewords - i - 1], 8, binary_data, bp);
|
||||
bp = bin_append_posn(ecc_blocks[i], 8, binary_data, bp);
|
||||
}
|
||||
|
||||
return bp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue