Disable GS1 in QR Code (to allow building against official qrencode) and compress bullseye in Maxicode to save memory.

This commit is contained in:
hooper114 2009-09-05 06:48:10 +00:00
parent 2ab4cb712b
commit 467433f0d0
4 changed files with 130 additions and 104 deletions

View file

@ -39,9 +39,9 @@ QRcode *encode(int security, int size, const unsigned char *intext, int kanji, i
if(kanji) {
hint = QR_MODE_KANJI;
}
if(gs1) {
/* if(gs1) {
hint = QR_MODE_GS1;
}
} - for future expansion */
if(hint == 0) {
hint = QR_MODE_8;
}
@ -67,7 +67,8 @@ QRcode *encode(int security, int size, const unsigned char *intext, int kanji, i
code = QRcode_encodeString((char*)intext, version, level, hint, 1);
} else {
/* NULL characters in data */
code = QRcode_encodeString8bit((char*)intext, version, level, input_length);
code = QRcode_encodeString8bit((char*)intext, version, level);
/* code = QRcode_encodeString8bit((char*)intext, version, level, input_length); */
}
return code;