TTKMusicPlayer
4.1.3.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 | QRSPEC_WIDTH_MAX 177 |
Maximum width of a symbol. More... | |
#define | QRspec_rsBlockNum(__spec__) (__spec__[0] + __spec__[3]) |
#define | QRspec_rsBlockNum1(__spec__) (__spec__[0]) |
#define | QRspec_rsDataCodes1(__spec__) (__spec__[1]) |
#define | QRspec_rsEccCodes1(__spec__) (__spec__[2]) |
#define | QRspec_rsBlockNum2(__spec__) (__spec__[3]) |
#define | QRspec_rsDataCodes2(__spec__) (__spec__[4]) |
#define | QRspec_rsEccCodes2(__spec__) (__spec__[2]) |
#define | QRspec_rsDataLength(__spec__) |
#define | QRspec_rsEccLength(__spec__) (QRspec_rsBlockNum(__spec__) * QRspec_rsEccCodes1(__spec__)) |
#define | QRSPEC_MODEID_ECI 7 |
Mode indicator. More... | |
#define | QRSPEC_MODEID_NUM 1 |
#define | QRSPEC_MODEID_AN 2 |
#define | QRSPEC_MODEID_8 4 |
#define | QRSPEC_MODEID_KANJI 8 |
#define | QRSPEC_MODEID_FNC1FIRST 5 |
#define | QRSPEC_MODEID_FNC1SECOND 9 |
#define | QRSPEC_MODEID_STRUCTURE 3 |
#define | QRSPEC_MODEID_TERMINATOR 0 |
Functions | |
int | QRspec_getDataLength (int version, QRecLevel level) |
Return maximum data code length (bytes) for the version. More... | |
int | QRspec_getECCLength (int version, QRecLevel level) |
Return maximum error correction code length (bytes) for the version. More... | |
int | QRspec_getMinimumVersion (int size, QRecLevel level) |
Return a version number that satisfies the input code length. More... | |
int | QRspec_getWidth (int version) |
Return the width of the symbol for the version. More... | |
int | QRspec_getRemainder (int version) |
Return the numer of remainder bits. More... | |
int | QRspec_lengthIndicator (QRencodeMode mode, int version) |
Return the size of length indicator for the mode and version. More... | |
int | QRspec_maximumWords (QRencodeMode mode, int version) |
Return the maximum length for the mode and version. More... | |
void | QRspec_getEccSpec (int version, QRecLevel level, int spec[5]) |
Return an array of ECC specification. More... | |
unsigned int | QRspec_getVersionPattern (int version) |
Return BCH encoded version information pattern that is used for the symbol of version 7 or greater. More... | |
unsigned int | QRspec_getFormatInfo (int mask, QRecLevel level) |
Return BCH encoded format information pattern. More... | |
unsigned char * | QRspec_newFrame (int version) |
Return a copy of initialized frame. More... | |
#define QRSPEC_MODEID_8 4 |
Definition at line 167 of file qrspec.h.
Referenced by QRinput_encodeMode8().
#define QRSPEC_MODEID_AN 2 |
Definition at line 166 of file qrspec.h.
Referenced by QRinput_encodeModeAn().
#define QRSPEC_MODEID_ECI 7 |
Mode indicator.
See Table 2 of JIS X0510:2004, pp.16.
Definition at line 164 of file qrspec.h.
Referenced by QRinput_encodeModeECI().
#define QRSPEC_MODEID_FNC1SECOND 9 |
Definition at line 170 of file qrspec.h.
Referenced by QRinput_encodeModeFNC1Second().
#define QRSPEC_MODEID_KANJI 8 |
Definition at line 168 of file qrspec.h.
Referenced by QRinput_encodeModeKanji().
#define QRSPEC_MODEID_NUM 1 |
Definition at line 165 of file qrspec.h.
Referenced by QRinput_encodeModeNum().
#define QRSPEC_MODEID_STRUCTURE 3 |
Definition at line 171 of file qrspec.h.
Referenced by QRinput_encodeModeStructure().
#define QRspec_rsBlockNum | ( | __spec__ | ) | (__spec__[0] + __spec__[3]) |
Definition at line 108 of file qrspec.h.
Referenced by QRraw_new().
#define QRspec_rsBlockNum1 | ( | __spec__ | ) | (__spec__[0]) |
Definition at line 109 of file qrspec.h.
Referenced by QRraw_new(), and RSblock_init().
#define QRspec_rsBlockNum2 | ( | __spec__ | ) | (__spec__[3]) |
Definition at line 112 of file qrspec.h.
Referenced by RSblock_init().
#define QRspec_rsDataCodes1 | ( | __spec__ | ) | (__spec__[1]) |
Definition at line 110 of file qrspec.h.
Referenced by RSblock_init().
#define QRspec_rsDataCodes2 | ( | __spec__ | ) | (__spec__[4]) |
Definition at line 113 of file qrspec.h.
Referenced by RSblock_init().
#define QRspec_rsDataLength | ( | __spec__ | ) |
Definition at line 116 of file qrspec.h.
Referenced by QRraw_new().
#define QRspec_rsEccCodes1 | ( | __spec__ | ) | (__spec__[2]) |
Definition at line 111 of file qrspec.h.
Referenced by RSblock_init().
#define QRspec_rsEccCodes2 | ( | __spec__ | ) | (__spec__[2]) |
Definition at line 114 of file qrspec.h.
Referenced by RSblock_init().
#define QRspec_rsEccLength | ( | __spec__ | ) | (QRspec_rsBlockNum(__spec__) * QRspec_rsEccCodes1(__spec__)) |
Definition at line 119 of file qrspec.h.
Referenced by QRraw_new().
#define QRSPEC_WIDTH_MAX 177 |
Maximum width of a symbol.
Definition at line 34 of file qrspec.h.
Referenced by Mask_evaluateSymbol().
Return maximum data code length (bytes) for the version.
version | version of the symbol |
level | error correction level |
Definition at line 96 of file qrspec.c.
References QRspec_Capacity::ec, and QRspec_Capacity::words.
Referenced by QRinput_appendPaddingBit(), QRinput_splitQRinputToStruct(), and QRspec_getEccSpec().
Return maximum error correction code length (bytes) for the version.
version | version of the symbol |
level | error correction level |
Definition at line 101 of file qrspec.c.
References QRspec_Capacity::ec.
Referenced by QRspec_getEccSpec().
Return an array of ECC specification.
version | version of the symbol |
level | error correction level |
spec | an array of ECC specification contains as following: {# of type1 blocks, # of data code, # of ecc code, of type2 blocks, # of data code} |
Definition at line 232 of file qrspec.c.
References eccTable, QRspec_getDataLength(), and QRspec_getECCLength().
Referenced by QRraw_new().
Return BCH encoded format information pattern.
mask | mask number |
level | error correction level |
Definition at line 381 of file qrspec.c.
References formatInfo.
Referenced by Mask_writeFormatInformation().
Return a version number that satisfies the input code length.
size | input code length (byte) |
level | error correction level |
Definition at line 106 of file qrspec.c.
References QRspec_Capacity::ec, QRSPEC_VERSION_MAX, and QRspec_Capacity::words.
Referenced by QRinput_convertData(), and QRinput_estimateVersion().
Return the numer of remainder bits.
version | vesion of the symbol |
Definition at line 124 of file qrspec.c.
References QRspec_Capacity::remainder.
Referenced by QRcode_encodeMask().
Return BCH encoded version information pattern that is used for the symbol of version 7 or greater.
Use lower 18 bits.
version | version of the symbol |
Definition at line 362 of file qrspec.c.
References QRSPEC_VERSION_MAX, and versionPattern.
Referenced by QRspec_createFrame().
Return the width of the symbol for the version.
version | vesion of the symbol |
Definition at line 119 of file qrspec.c.
References QRspec_Capacity::width.
Referenced by QRcode_encodeMask().
int QRspec_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 140 of file qrspec.c.
References lengthTableBits, and QRinput_isSplittableMode().
Referenced by QRinput_encodeMode8(), QRinput_encodeModeAn(), QRinput_encodeModeKanji(), QRinput_encodeModeNum(), QRinput_estimateBitStreamSizeOfEntry(), QRinput_lengthOfCode(), Split_eat8(), Split_eatAn(), and Split_eatNum().
int QRspec_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 156 of file qrspec.c.
References lengthTableBits, QR_MODE_KANJI, and QRinput_isSplittableMode().
Referenced by QRinput_encodeBitStream(), and QRinput_lengthOfCode().
unsigned char* QRspec_newFrame | ( | int | version | ) |
Return a copy of initialized frame.
version | version of the symbol |
Definition at line 507 of file qrspec.c.
References QRspec_createFrame(), and QRSPEC_VERSION_MAX.
Referenced by QRcode_encodeMask().