|
TTKMusicPlayer
4.2.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
#include "qrencode.h"Go to the source code of this file.
Macros | |
| #define | MQRSPEC_WIDTH_MAX 17 |
| Maximum width of a symbol. More... | |
| #define | MQRSPEC_MODEID_NUM 0 |
| Mode indicator. More... | |
| #define | MQRSPEC_MODEID_AN 1 |
| #define | MQRSPEC_MODEID_8 2 |
| #define | MQRSPEC_MODEID_KANJI 3 |
Functions | |
| int | MQRspec_getDataLengthBit (int version, QRecLevel level) |
| Return maximum data code length (bits) for the version. More... | |
| int | MQRspec_getDataLength (int version, QRecLevel level) |
| Return maximum data code length (bytes) for the version. More... | |
| int | MQRspec_getECCLength (int version, QRecLevel level) |
| Return maximum error correction code length (bytes) for the version. More... | |
| int | MQRspec_getMinimumVersion (int size, QRecLevel level) |
| Return a version number that satisfies the input code length. More... | |
| int | MQRspec_getWidth (int version) |
| Return the width of the symbol for the version. More... | |
| int | MQRspec_getRemainder (int version) |
| Return the numer of remainder bits. More... | |
| int | MQRspec_lengthIndicator (QRencodeMode mode, int version) |
| Return the size of length indicator for the mode and version. More... | |
| int | MQRspec_maximumWords (QRencodeMode mode, int version) |
| Return the maximum length for the mode and version. More... | |
| unsigned int | MQRspec_getVersionPattern (int version) |
| Return BCH encoded version information pattern that is used for the symbol of version 7 or greater. More... | |
| unsigned int | MQRspec_getFormatInfo (int mask, int version, QRecLevel level) |
| Return BCH encoded format information pattern. More... | |
| unsigned char * | MQRspec_newFrame (int version) |
| Return a copy of initialized frame. More... | |
| #define MQRSPEC_MODEID_8 2 |
Definition at line 147 of file mqrspec.h.
Referenced by QRinput_encodeMode8().
| #define MQRSPEC_MODEID_AN 1 |
Definition at line 146 of file mqrspec.h.
Referenced by QRinput_encodeModeAn().
| #define MQRSPEC_MODEID_KANJI 3 |
Definition at line 148 of file mqrspec.h.
Referenced by QRinput_encodeModeKanji().
| #define MQRSPEC_MODEID_NUM 0 |
Mode indicator.
See Table 2 in Appendix 1 of JIS X0510:2004, pp.107.
Definition at line 145 of file mqrspec.h.
Referenced by QRinput_encodeModeNum().
Return maximum data code length (bytes) for the version.
| version | version of the symbol |
| level | error correction level |
Definition at line 68 of file mqrspec.c.
References MQRspec_getDataLengthBit().
Referenced by MQRraw_new().
Return maximum data code length (bits) for the version.
| version | version of the symbol |
| level | error correction level |
Definition at line 57 of file mqrspec.c.
References MQRspec_Capacity::ec, and MQRspec_Capacity::width.
Referenced by MQRraw_new(), MQRspec_getDataLength(), and QRinput_appendPaddingBitMQR().
Return maximum error correction code length (bytes) for the version.
| version | version of the symbol |
| level | error correction level |
Definition at line 73 of file mqrspec.c.
References MQRspec_Capacity::ec.
Referenced by MQRraw_new(), QRinput_newMQR(), and QRinput_setVersionAndErrorCorrectionLevel().
Return BCH encoded format information pattern.
| mask | mask number |
| version | version of the symbol |
| level | error correction level |
Definition at line 137 of file mqrspec.c.
References formatInfo, MQRSPEC_VERSION_MAX, QR_ECLEVEL_H, and typeTable.
Referenced by MMask_writeFormatInformation().
Return a version number that satisfies the input code length.
| size | input code length (byte) |
| level | error correction level |
Return the numer of remainder bits.
| version | version of the symbol |
Return BCH encoded version information pattern that is used for the symbol of version 7 or greater.
Use lower 18 bits.
| version | vesion of the symbol |
Return the width of the symbol for the version.
| version | version of the symbol |
Definition at line 78 of file mqrspec.c.
References MQRspec_Capacity::width.
Referenced by MMask_makeMask(), MMask_mask(), and QRcode_encodeMaskMQR().
| int MQRspec_lengthIndicator | ( | QRencodeMode | mode, |
| int | version | ||
| ) |
Return the size of length indicator for the mode and version.
| mode | encode mode |
| version | vesion of the symbol |
Definition at line 97 of file mqrspec.c.
References lengthTableBits.
Referenced by QRinput_encodeMode8(), QRinput_encodeModeAn(), QRinput_encodeModeKanji(), QRinput_encodeModeNum(), and QRinput_estimateBitStreamSizeOfEntry().
| int MQRspec_maximumWords | ( | QRencodeMode | mode, |
| int | version | ||
| ) |
Return the maximum length for the mode and version.
| mode | encode mode |
| version | vesion of the symbol |
Definition at line 102 of file mqrspec.c.
References lengthTableBits, and QR_MODE_KANJI.
Referenced by QRinput_encodeBitStream().
| unsigned char* MQRspec_newFrame | ( | int | version | ) |
Return a copy of initialized frame.
| version | version of the symbol |
Definition at line 225 of file mqrspec.c.
References MQRspec_createFrame(), and MQRSPEC_VERSION_MAX.
Referenced by QRcode_encodeMaskMQR().
1.8.8