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 | RSblock |
Raw code. More... | |
struct | QRRawCode |
struct | MQRRawCode |
Raw code for Micro QR Code. More... | |
Functions | |
QRRawCode * | QRraw_new (QRinput *input) |
unsigned char | QRraw_getCode (QRRawCode *raw) |
Return a code (byte). More... | |
void | QRraw_free (QRRawCode *raw) |
MQRRawCode * | MQRraw_new (QRinput *input) |
unsigned char | MQRraw_getCode (MQRRawCode *raw) |
Return a code (byte). More... | |
void | MQRraw_free (MQRRawCode *raw) |
unsigned char * | FrameFiller_test (int version) |
Frame filling. More... | |
unsigned char * | FrameFiller_testMQR (int version) |
QRcode * | QRcode_encodeMask (QRinput *input, int mask) |
QR-code encoding. More... | |
QRcode * | QRcode_encodeMaskMQR (QRinput *input, int mask) |
QRcode * | QRcode_new (int version, int width, unsigned char *data) |
QR-code encoding. More... | |
unsigned char * FrameFiller_test | ( | int | version | ) |
Frame filling.
unsigned char * FrameFiller_testMQR | ( | int | version | ) |
void MQRraw_free | ( | MQRRawCode * | raw | ) |
Definition at line 263 of file qrencode.c.
References MQRRawCode::datacode, MQRRawCode::ecccode, and MQRRawCode::rsblock.
Referenced by MQRraw_new(), and QRcode_encodeMaskMQR().
unsigned char MQRraw_getCode | ( | MQRRawCode * | raw | ) |
Return a code (byte).
This function can be called iteratively.
raw | raw code. |
Definition at line 248 of file qrencode.c.
References MQRRawCode::count, MQRRawCode::datacode, MQRRawCode::dataLength, MQRRawCode::ecccode, and MQRRawCode::eccLength.
Referenced by QRcode_encodeMaskMQR().
MQRRawCode * MQRraw_new | ( | QRinput * | input | ) |
Definition at line 206 of file qrencode.c.
References MQRRawCode::count, MQRRawCode::datacode, MQRRawCode::dataLength, MQRRawCode::ecccode, MQRRawCode::eccLength, _QRinput::level, MQRraw_free(), MQRspec_getDataLength(), MQRspec_getDataLengthBit(), MQRspec_getECCLength(), MQRRawCode::oddbits, QRinput_getByteStream(), MQRRawCode::rsblock, RSblock_initBlock(), MQRRawCode::version, and _QRinput::version.
Referenced by QRcode_encodeMaskMQR().
QR-code encoding.
Definition at line 431 of file qrencode.c.
References QRRawCode::dataLength, QRRawCode::eccLength, FrameFiller_next(), FrameFiller_set(), _QRinput::level, Mask_makeMask(), Mask_mask(), _QRinput::mqr, QR_ECLEVEL_H, QR_ECLEVEL_L, QRcode_new(), QRraw_free(), QRraw_getCode(), QRraw_new(), QRspec_getRemainder(), QRspec_getWidth(), QRspec_newFrame(), QRSPEC_VERSION_MAX, version, QRRawCode::version, and _QRinput::version.
Referenced by QRcode_encodeInput().
Definition at line 519 of file qrencode.c.
References MQRRawCode::dataLength, MQRRawCode::eccLength, FrameFiller_next(), FrameFiller_set(), _QRinput::level, MMask_makeMask(), MMask_mask(), _QRinput::mqr, MQRraw_free(), MQRraw_getCode(), MQRraw_new(), MQRspec_getWidth(), MQRspec_newFrame(), MQRSPEC_VERSION_MAX, MQRRawCode::oddbits, QR_ECLEVEL_L, QR_ECLEVEL_Q, QRcode_new(), version, MQRRawCode::version, and _QRinput::version.
Referenced by QRcode_encodeInput().
QRcode * QRcode_new | ( | int | version, |
int | width, | ||
unsigned char * | data | ||
) |
QR-code encoding.
Definition at line 409 of file qrencode.c.
References QRcode::data, version, QRcode::version, and QRcode::width.
Referenced by QRcode_encodeMask(), and QRcode_encodeMaskMQR().
void QRraw_free | ( | QRRawCode * | raw | ) |
Definition at line 180 of file qrencode.c.
References QRRawCode::datacode, QRRawCode::ecccode, and QRRawCode::rsblock.
Referenced by QRcode_encodeMask(), and QRraw_new().
unsigned char QRraw_getCode | ( | QRRawCode * | raw | ) |
Return a code (byte).
This function can be called iteratively.
raw | raw code. |
Definition at line 157 of file qrencode.c.
References QRRawCode::b1, QRRawCode::blocks, QRRawCode::count, RSblock::data, RSblock::dataLength, QRRawCode::dataLength, RSblock::ecc, QRRawCode::eccLength, and QRRawCode::rsblock.
Referenced by QRcode_encodeMask().
Definition at line 107 of file qrencode.c.
References QRRawCode::b1, QRRawCode::blocks, QRRawCode::count, QRRawCode::datacode, QRRawCode::dataLength, QRRawCode::ecccode, QRRawCode::eccLength, _QRinput::level, QRinput_getByteStream(), QRraw_free(), QRspec_getEccSpec(), QRspec_rsBlockNum, QRspec_rsBlockNum1, QRspec_rsDataLength, QRspec_rsEccLength, QRRawCode::rsblock, RSblock_init(), QRRawCode::version, and _QRinput::version.
Referenced by QRcode_encodeMask().