mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-18 02:17:06 +00: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:
@@ -1106,7 +1106,7 @@ INTERNAL int codeone(struct zint_symbol *symbol, struct zint_seg segs[], const i
|
||||
rs_encode_uint(&rs, codewords, target, ecc);
|
||||
|
||||
for (i = 0; i < codewords; i++) {
|
||||
target[i + codewords] = ecc[codewords - i - 1];
|
||||
target[i + codewords] = ecc[i];
|
||||
}
|
||||
|
||||
if (debug_print) {
|
||||
@@ -1195,7 +1195,7 @@ INTERNAL int codeone(struct zint_symbol *symbol, struct zint_seg segs[], const i
|
||||
rs_encode_uint(&rs, data_cw, target, ecc);
|
||||
|
||||
for (i = 0; i < ecc_cw; i++) {
|
||||
target[data_cw + i] = ecc[ecc_cw - i - 1];
|
||||
target[data_cw + i] = ecc[i];
|
||||
}
|
||||
|
||||
if (debug_print) {
|
||||
@@ -1285,7 +1285,7 @@ INTERNAL int codeone(struct zint_symbol *symbol, struct zint_seg segs[], const i
|
||||
}
|
||||
rs_encode_uint(&rs, data_blocks, sub_data, sub_ecc);
|
||||
for (j = 0; j < ecc_blocks; j++) {
|
||||
target[data_cw + j * blocks + i] = sub_ecc[ecc_blocks - 1 - j];
|
||||
target[data_cw + j * blocks + i] = sub_ecc[j];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user