TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Classes | Functions
qrencode_inner.h File Reference

Go to the source code of this file.

Classes

struct  RSblock
 qrencode - QR Code encoder More...
 
struct  QRRawCode
 
struct  MQRRawCode
 

Functions

QRRawCodeQRraw_new (QRinput *input)
 
unsigned char QRraw_getCode (QRRawCode *raw)
 Return a code (byte). More...
 
void QRraw_free (QRRawCode *raw)
 
MQRRawCodeMQRraw_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)
 
unsigned char * FrameFiller_testMQR (int version)
 
QRcodeQRcode_encodeMask (QRinput *input, int mask)
 
QRcodeQRcode_encodeMaskMQR (QRinput *input, int mask)
 
QRcodeQRcode_new (int version, int width, unsigned char *data)
 

Function Documentation

unsigned char* FrameFiller_test ( int  version)
unsigned char* FrameFiller_testMQR ( int  version)
void MQRraw_free ( MQRRawCode raw)

Definition at line 261 of file qrencode.c.

References MQRRawCode::datacode, MQRRawCode::ecccode, free(), 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.

Parameters
rawraw code.
Returns
code

Definition at line 246 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)
QRcode* QRcode_encodeMask ( QRinput input,
int  mask 
)
QRcode* QRcode_encodeMaskMQR ( QRinput input,
int  mask 
)
QRcode* QRcode_new ( int  version,
int  width,
unsigned char *  data 
)

Definition at line 407 of file qrencode.c.

References QRcode::data, malloc(), QRcode::version, and QRcode::width.

Referenced by QRcode_encodeMask(), and QRcode_encodeMaskMQR().

void QRraw_free ( QRRawCode raw)

Definition at line 178 of file qrencode.c.

References QRRawCode::datacode, QRRawCode::ecccode, free(), 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.

Parameters
rawraw code.
Returns
code

Definition at line 155 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().

QRRawCode* QRraw_new ( QRinput input)