qrencode
4.1.1
About: libqrencode is a fast and compact library and command-line utility for encoding data in a QR Code symbol.
![]() ![]() |
Go to the source code of this file.
Data Structures | |
struct | _QRinput_List |
struct | _QRinput |
Input Data. More... | |
struct | _QRinput_InputList |
struct | _QRinput_Struct |
Macros | |
#define | QRinput_lookAnTable(__c__) ((__c__ & 0x80)?-1:QRinput_anTable[(int)__c__]) |
Look up the alphabet-numeric convesion table (see JIS X0510:2004, pp.19). More... | |
#define | MODE_INDICATOR_SIZE 4 |
Length of a standard mode indicator in bits. More... | |
#define | STRUCTURE_HEADER_SIZE 20 |
Length of a segment of structured-append header. More... | |
#define | MAX_STRUCTURED_SYMBOLS 16 |
Maximum number of symbols in a set of structured-appended symbols. More... | |
Typedefs | |
typedef struct _QRinput_List | QRinput_List |
Entry of input data. More... | |
typedef struct _QRinput_InputList | QRinput_InputList |
Structured append input data. More... | |
Functions | |
int | QRinput_isSplittableMode (QRencodeMode mode) |
Utilities. More... | |
unsigned char * | QRinput_getByteStream (QRinput *input) |
Pack all bit streams padding bits into a byte array. More... | |
int | QRinput_estimateBitsModeNum (int size) |
Estimate the length of the encoded bit stream of numeric data. More... | |
int | QRinput_estimateBitsModeAn (int size) |
Estimate the length of the encoded bit stream of alphabet-numeric data. More... | |
int | QRinput_estimateBitsMode8 (int size) |
8 bit data More... | |
int | QRinput_estimateBitsModeKanji (int size) |
Kanji data. More... | |
QRinput * | QRinput_dup (QRinput *input) |
Variables | |
const signed char | QRinput_anTable [128] |
Alphabet-numeric data. More... | |
#define MAX_STRUCTURED_SYMBOLS 16 |
#define MODE_INDICATOR_SIZE 4 |
#define QRinput_lookAnTable | ( | __c__ | ) | ((__c__ & 0x80)?-1:QRinput_anTable[(int)__c__]) |
#define STRUCTURE_HEADER_SIZE 20 |
typedef struct _QRinput_InputList QRinput_InputList |
typedef struct _QRinput_List QRinput_List |
Definition at line 328 of file qrinput.c.
References _QRinput::head, _QRinput::level, _QRinput::mqr, _QRinput_List::next, QRinput_appendEntry(), QRinput_free(), QRinput_List_dup(), QRinput_new2(), QRinput_newMQR(), and _QRinput::version.
Referenced by QRinput_splitQRinputToStruct().
int QRinput_estimateBitsMode8 | ( | int | size | ) |
8 bit data
Estimate the length of the encoded bit stream of 8 bit data.
size |
Definition at line 566 of file qrinput.c.
References size.
Referenced by QRinput_estimateBitStreamSizeOfEntry(), Split_eat8(), Split_eatAn(), and Split_eatNum().
int QRinput_estimateBitsModeAn | ( | int | size | ) |
Estimate the length of the encoded bit stream of alphabet-numeric data.
size |
Definition at line 493 of file qrinput.c.
References size.
Referenced by QRinput_estimateBitStreamSizeOfEntry(), Split_eat8(), Split_eatAn(), and Split_eatNum().
int QRinput_estimateBitsModeKanji | ( | int | size | ) |
Kanji data.
Estimate the length of the encoded bit stream of kanji data.
size |
Definition at line 616 of file qrinput.c.
References size.
Referenced by QRinput_estimateBitStreamSizeOfEntry().
int QRinput_estimateBitsModeNum | ( | int | size | ) |
Estimate the length of the encoded bit stream of numeric data.
size |
Definition at line 381 of file qrinput.c.
References size.
Referenced by QRinput_estimateBitStreamSizeOfEntry(), Split_eat8(), Split_eatAn(), and Split_eatNum().
unsigned char * QRinput_getByteStream | ( | QRinput * | input | ) |
Pack all bit streams padding bits into a byte array.
input | input data. |
Definition at line 1326 of file qrinput.c.
References BitStream_free(), BitStream_new(), BitStream_toByte(), and QRinput_getBitStream().
Referenced by MQRraw_new(), and QRraw_new().
int QRinput_isSplittableMode | ( | QRencodeMode | mode | ) |
Utilities.
Definition at line 39 of file qrinput.c.
References QR_MODE_KANJI, and QR_MODE_NUM.
Referenced by QRspec_lengthIndicator(), and QRspec_maximumWords().