mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-20 02:05:11 -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
|
@ -886,12 +886,12 @@ static void gm_add_ecc(const char binary[], const int data_posn, const int layer
|
|||
rs_init_code(&rs, ecc_size, 1);
|
||||
rs_encode(&rs, data_size, data_block, ecc_block);
|
||||
|
||||
/* Correct error correction data but in reverse order */
|
||||
/* Add error correction data */
|
||||
for (j = 0; j < data_size; j++) {
|
||||
block[j] = data_block[j];
|
||||
}
|
||||
for (j = 0; j < ecc_size; j++) {
|
||||
block[(j + data_size)] = ecc_block[ecc_size - j - 1];
|
||||
block[j + data_size] = ecc_block[j];
|
||||
}
|
||||
|
||||
for (j = 0; j < n2; j++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue