TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
qrencode_inner.h
Go to the documentation of this file.
1 
22 #ifndef QRENCODE_INNER_H
23 #define QRENCODE_INNER_H
24 
29 /******************************************************************************
30  * Raw code
31  *****************************************************************************/
32 
33 typedef struct {
34  int dataLength;
35  int eccLength;
36  unsigned char *data;
37  unsigned char *ecc;
38 } RSblock;
39 
40 typedef struct {
41  int version;
42  int dataLength;
43  int eccLength;
44  unsigned char *datacode;
45  unsigned char *ecccode;
46  int b1;
47  int blocks;
48  RSblock *rsblock;
49  int count;
50 } QRRawCode;
51 
52 extern QRRawCode *QRraw_new(QRinput *input);
53 extern unsigned char QRraw_getCode(QRRawCode *raw);
54 extern void QRraw_free(QRRawCode *raw);
55 
56 /******************************************************************************
57  * Raw code for Micro QR Code
58  *****************************************************************************/
59 
60 typedef struct {
61  int version;
62  int dataLength;
63  int eccLength;
64  unsigned char *datacode;
65  unsigned char *ecccode;
66  RSblock *rsblock;
67  int oddbits;
68  int count;
69 } MQRRawCode;
70 
71 extern MQRRawCode *MQRraw_new(QRinput *input);
72 extern unsigned char MQRraw_getCode(MQRRawCode *raw);
73 extern void MQRraw_free(MQRRawCode *raw);
74 
75 /******************************************************************************
76  * Frame filling
77  *****************************************************************************/
78 extern unsigned char *FrameFiller_test(int version);
79 extern unsigned char *FrameFiller_testMQR(int version);
80 
81 /******************************************************************************
82  * QR-code encoding
83  *****************************************************************************/
84 extern QRcode *QRcode_encodeMask(QRinput *input, int mask);
85 extern QRcode *QRcode_encodeMaskMQR(QRinput *input, int mask);
86 extern QRcode *QRcode_new(int version, int width, unsigned char *data);
87 
88 #endif /* QRENCODE_INNER_H */
QRcode class.
Definition: qrencode.h:377
void QRraw_free(QRRawCode *raw)
Definition: qrencode.c:178
QRcode * QRcode_encodeMaskMQR(QRinput *input, int mask)
Definition: qrencode.c:517
qrencode - QR Code encoder
Definition: qrencode.c:41
QRcode * QRcode_encodeMask(QRinput *input, int mask)
Definition: qrencode.c:429
unsigned char QRraw_getCode(QRRawCode *raw)
Return a code (byte).
Definition: qrencode.c:155
void MQRraw_free(MQRRawCode *raw)
Definition: qrencode.c:261
QRRawCode * QRraw_new(QRinput *input)
Definition: qrencode.c:105
unsigned char * FrameFiller_testMQR(int version)
QRcode * QRcode_new(int version, int width, unsigned char *data)
Definition: qrencode.c:407
unsigned char * FrameFiller_test(int version)
unsigned char MQRraw_getCode(MQRRawCode *raw)
Return a code (byte).
Definition: qrencode.c:246
MQRRawCode * MQRraw_new(QRinput *input)
Definition: qrencode.c:204