Status: New
Owner: ----
New issue 1693 by
fyel...@gmail.com: Non-optimal high-level-encoding in
Aztec
http://code.google.com/p/zxing/issues/detail?id=1693
The current high-level Aztec encoder is locally optimal rather than
globally optimal For each successive character in the input, it determines
the fewest number of bits needed to add that character to the already
existing output.
For example, given "ABC 123", the space is output in UPPER mode. Moving
the shift to DIGIT mode to include the space saves a bit. The airline
Aztec codes use about 5% fewer bits than would be generated by Zxing.
I've modified the current encoder to generate better code. As it reads
each character, it keeps track of all reasonable high-level encodings, and
then at the end chooses the shortest one.
This is a request for comments, concerns, etc., before I request such a big
change to the Encoder.
Attached is the patch with changes to four files:
Encoder.java: Removed the high-level encoder
HighLevelEncoder.java: Implementation of high-level encode
Decoder.java: Added a stub for HighLevelDecoder, so that encoder could be
tested.
EncoderTest.java: Modified tests for new output. Tested some of the new
output.
Attachments:
Patch1.diff 56.1 KB
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings