mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-28 14:04:19 -04:00
Fix PCX issue with odd bitmap width; tests; comment GRIDMATRIX byte count
This commit is contained in:
parent
67fac5f600
commit
129fa81c41
14 changed files with 238 additions and 109 deletions
backend
|
@ -230,6 +230,8 @@ static void define_mode(char* mode, const unsigned int gbdata[], const size_t le
|
|||
|
||||
/* Add the length indicator for byte encoded blocks */
|
||||
static void add_byte_count(char binary[], const size_t byte_count_posn, const int byte_count) {
|
||||
/* AIMD014 6.3.7: "Let L be the number of bytes of input data to be encoded in the 8-bit binary data set.
|
||||
* First output (L-1) as a 9-bit binary prefix to record the number of bytes..." */
|
||||
bin_append_posn(byte_count - 1, 9, binary, byte_count_posn);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue