1
0
mirror of https://github.com/woo-j/zint.git synced 2024-12-23 13:33:55 +03:00

Syncronize QZint

This commit is contained in:
hooper114 2008-11-18 08:52:43 +00:00
parent 88cc19bab1
commit 6ae8a7d0d8
8 changed files with 18 additions and 8 deletions

View File

@ -8,8 +8,8 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
#set(CMAKE_VERBOSE_MAKEFILE ON) #set(CMAKE_VERBOSE_MAKEFILE ON)
#comment or remove the above line before release #comment or remove the above line before release
set (ZINT_VERSION_MAJOR 1) set (ZINT_VERSION_MAJOR 2)
set (ZINT_VERSION_MINOR 99) set (ZINT_VERSION_MINOR 0)
set (ZINT_VERSION_RELEASE 1) set (ZINT_VERSION_RELEASE 1)
set (ZINT_VERSION "${ZINT_VERSION_MAJOR}.${ZINT_VERSION_MINOR}.${ZINT_VERSION_RELEASE}" ) set (ZINT_VERSION "${ZINT_VERSION_MAJOR}.${ZINT_VERSION_MINOR}.${ZINT_VERSION_RELEASE}" )

View File

@ -8,7 +8,7 @@ find_package(Qr)
set(zint_COMMON_SRCS common.c library.c ps.c large.c reedsol.c) set(zint_COMMON_SRCS common.c library.c ps.c large.c reedsol.c)
set(zint_ONEDIM_SRCS code.c code128.c 2of5.c upcean.c telepen.c medical.c plessey.c rss.c) set(zint_ONEDIM_SRCS code.c code128.c 2of5.c upcean.c telepen.c medical.c plessey.c rss.c)
set(zint_POSTAL_SRCS postal.c auspost.c imail.c) set(zint_POSTAL_SRCS postal.c auspost.c imail.c)
set(zint_TWODIM_SRCS code16k.c blockf.c dmatrix.c dm200.c pdf417.c qr.c maxicode.c composite.c aztec.c) set(zint_TWODIM_SRCS code16k.c blockf.c dmatrix.c dm200.c pdf417.c qr.c micqr.c maxicode.c composite.c aztec.c)
set(zint_SRCS ${zint_COMMON_SRCS} ${zint_ONEDIM_SRCS} ${zint_POSTAL_SRCS} ${zint_TWODIM_SRCS} ) set(zint_SRCS ${zint_COMMON_SRCS} ${zint_ONEDIM_SRCS} ${zint_POSTAL_SRCS} ${zint_TWODIM_SRCS} )
if(PNG_FOUND) if(PNG_FOUND)

View File

@ -7,7 +7,7 @@
# make clean cleans up a previous compilation and any object or editor files # make clean cleans up a previous compilation and any object or editor files
# #
ZINT_VERSION:=-DZINT_VERSION=\"1.99.1\" ZINT_VERSION:=-DZINT_VERSION=\"2.0.1\"
CC := gcc CC := gcc

View File

@ -561,7 +561,7 @@ void protect_ecc050(char protected_stream[], char unprotected_stream[])
char mid_reg[4]; char mid_reg[4];
char low_reg[4]; char low_reg[4];
char u1, u2, u3; char u1, u2, u3;
char output[4]; char output[6];
char gate_input[8]; char gate_input[8];
int i, blocks, j, count; int i, blocks, j, count;
@ -1073,6 +1073,7 @@ int matrix89(struct zint_symbol *symbol, unsigned char source[])
char header[20]; char header[20];
int symbol_size, hex_segment, width; int symbol_size, hex_segment, width;
symbol_size = 0;
for(i = 0; i < input_length; i++) { for(i = 0; i < input_length; i++) {
if(source[i] > 127) { if(source[i] > 127) {
strcpy(symbol->errtxt, "Data Matrix ECC 000 - 140 doesn't support extended ASCII"); strcpy(symbol->errtxt, "Data Matrix ECC 000 - 140 doesn't support extended ASCII");

View File

@ -39,6 +39,7 @@ void qrnumeric_encode(char binary[], unsigned char source[])
char block_binary[11]; char block_binary[11];
int block_value; int block_value;
block_value = 0;
input_length = ustrlen(source); input_length = ustrlen(source);
blocks = input_length / 3; blocks = input_length / 3;
remainder = input_length % 3; remainder = input_length % 3;
@ -597,6 +598,8 @@ int microqr(struct zint_symbol *symbol, unsigned char source[])
symbol_size = 0; symbol_size = 0;
if(is_sane(QRSET, source) == 0) { char_system = ALPHANUM; } if(is_sane(QRSET, source) == 0) { char_system = ALPHANUM; }
if(is_sane(NESET, source) == 0) { char_system = NUMERIC; } if(is_sane(NESET, source) == 0) { char_system = NUMERIC; }
width = 0;
format = 0;
if(symbol->option_1 == 4) { if(symbol->option_1 == 4) {
strcpy(symbol->errtxt, "Error correction level H not available for Micro QR symbols"); strcpy(symbol->errtxt, "Error correction level H not available for Micro QR symbols");

View File

@ -45,12 +45,15 @@ SOURCES += qrencode/bitstream.c \
qrencode/split.c qrencode/split.c
} }
HEADERS += ../backend/common.h \ HEADERS += ../backend/aztec.h \
../backend/common.h \
../backend/composite.h \ ../backend/composite.h \
../backend/dm200.h \ ../backend/dm200.h \
../backend/dmatrix.h \
../backend/large.h \ ../backend/large.h \
../backend/maxicode.h \ ../backend/maxicode.h \
../backend/maxipng.h \ ../backend/maxipng.h \
../backend/micqr.h \
../backend/pdf417.h \ ../backend/pdf417.h \
../backend/reedsol.h \ ../backend/reedsol.h \
../backend/rss.h \ ../backend/rss.h \
@ -73,6 +76,7 @@ SOURCES += ../backend/2of5.c \
../backend/library.c \ ../backend/library.c \
../backend/maxicode.c \ ../backend/maxicode.c \
../backend/medical.c \ ../backend/medical.c \
../backend/micqr.c \
../backend/pdf417.c \ ../backend/pdf417.c \
../backend/plessey.c \ ../backend/plessey.c \
../backend/postal.c \ ../backend/postal.c \

View File

@ -38,8 +38,8 @@ MainWindow::MainWindow(QWidget* parent, Qt::WFlags fl)
"Data Matrix", "EAN-14", "Codablock-F", "NVE-18", "Databar Stacked", "Data Matrix", "EAN-14", "Codablock-F", "NVE-18", "Databar Stacked",
"Databar Stacked Omni", "Databar Expanded Stacked", "PLANET", "Databar Stacked Omni", "Databar Expanded Stacked", "PLANET",
"MicroPDF417", "USPS One Code", "UK Plessey", "Telepen Numeric", "MicroPDF417", "USPS One Code", "UK Plessey", "Telepen Numeric",
"ITF-14", "Dutch Post KIX", "Aztec Code", "Code 32", "ITF-14", "Dutch Post KIX", "Aztec Code", "Micro QR Code", "Aztec Runes",
"Composite EAN", "Composite EAN-128", "Composite Databar", "Code 32", "Composite EAN", "Composite EAN-128", "Composite Databar",
"Composite Databar Limited", "Composite Databar Expanded", "Composite Databar Limited", "Composite Databar Expanded",
"Composite UPC-A", "Composite UPC-E", "Composite Databar Stacked", "Composite UPC-A", "Composite UPC-E", "Composite Databar Stacked",
"Composite Databar Stacked Omni", "Composite Databar Expanded Stacked" "Composite Databar Stacked Omni", "Composite Databar Expanded Stacked"

View File

@ -90,8 +90,10 @@ public:
ITF14 =89, ITF14 =89,
KIX =90, KIX =90,
AZTEC =92, AZTEC =92,
MICROQR =97,
/* Zint specific */ /* Zint specific */
AZRUNE =128,
CODE32 =129, CODE32 =129,
EANX_CC =130, EANX_CC =130,
EAN128_CC =131, EAN128_CC =131,