PDF417 enhancements:

- Switched mode selection to better optimized method listed in Appendix D of the AIM PDF417 specification.
- Removed extraneous text latch after a byte shift.
- Removed invalid numeric->byte shift transitions.
This commit is contained in:
Jeff Skaistis 2022-08-10 13:40:40 -05:00
parent c0ec67f99e
commit e8a125a2e1
3 changed files with 124 additions and 123 deletions

View file

@ -328,7 +328,7 @@ static void cc_b(struct zint_symbol *symbol, const char source[], const int cc_w
chainemc[mclength] = 920;
mclength++;
pdf_byteprocess(chainemc, &mclength, data_string, 0, length, debug_print);
pdf_byteprocess(chainemc, &mclength, data_string, 0, length, 0, debug_print);
/* Now figure out which variant of the symbol to use and load values accordingly */
@ -547,7 +547,7 @@ static void cc_c(struct zint_symbol *symbol, const char source[], const int cc_w
chainemc[mclength] = 920; /* CC-C identifier */
mclength++;
pdf_byteprocess(chainemc, &mclength, data_string, 0, length, debug_print);
pdf_byteprocess(chainemc, &mclength, data_string, 0, length, 0, debug_print);
chainemc[0] = mclength;