mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
ULTRA_COMPRESSION option_1 -> option_3 typo
This commit is contained in:
parent
129fa81c41
commit
111c819e43
@ -123,7 +123,7 @@ static const int tiles[] = {
|
|||||||
* contradictions, so this is a "best guess" implementation. Because it is not guaranteed
|
* contradictions, so this is a "best guess" implementation. Because it is not guaranteed
|
||||||
* to be correct this compression is not applied by default. To enable compression set
|
* to be correct this compression is not applied by default. To enable compression set
|
||||||
*
|
*
|
||||||
* symbol->option_1 = ULTRA_COMPRESSION;
|
* symbol->option_3 = ULTRA_COMPRESSION;
|
||||||
*
|
*
|
||||||
* Code compression should be enabled by default when it has been implemented according to
|
* Code compression should be enabled by default when it has been implemented according to
|
||||||
* a more reliable version of the specification.
|
* a more reliable version of the specification.
|
||||||
@ -594,7 +594,7 @@ int ultra_generate_codewords(struct zint_symbol *symbol, const unsigned char sou
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (symbol->option_1 != ULTRA_COMPRESSION) {
|
if (symbol->option_3 != ULTRA_COMPRESSION) {
|
||||||
// Force eight-bit mode by default as other modes are poorly documented
|
// Force eight-bit mode by default as other modes are poorly documented
|
||||||
symbol_mode = EIGHTBIT_MODE;
|
symbol_mode = EIGHTBIT_MODE;
|
||||||
}
|
}
|
||||||
@ -705,7 +705,7 @@ int ultra_generate_codewords(struct zint_symbol *symbol, const unsigned char sou
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Attempt encoding in all three modes to see which offers best compaction and store results */
|
/* Attempt encoding in all three modes to see which offers best compaction and store results */
|
||||||
if (symbol->option_1 == ULTRA_COMPRESSION) {
|
if (symbol->option_3 == ULTRA_COMPRESSION) {
|
||||||
current_mode = symbol_mode;
|
current_mode = symbol_mode;
|
||||||
input_locn = 0;
|
input_locn = 0;
|
||||||
do {
|
do {
|
||||||
|
@ -270,7 +270,7 @@ extern "C" {
|
|||||||
// QR, Han Xin, Grid Matrix specific options (option_3)
|
// QR, Han Xin, Grid Matrix specific options (option_3)
|
||||||
#define ZINT_FULL_MULTIBYTE 200
|
#define ZINT_FULL_MULTIBYTE 200
|
||||||
|
|
||||||
// Ultracode specific option
|
// Ultracode specific option (option_3)
|
||||||
#define ULTRA_COMPRESSION 128
|
#define ULTRA_COMPRESSION 128
|
||||||
|
|
||||||
// Warning and error conditions
|
// Warning and error conditions
|
||||||
|
Loading…
Reference in New Issue
Block a user