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.
Macros | |
#define | SYMBOL_SIZE (8) |
#define | symbols ((1U << SYMBOL_SIZE) - 1) |
#define | min_length (2) |
#define | max_length (30) |
#define | max_generatorSize (max_length) |
Functions | |
static void | RSECC_initLookupTable (void) |
static void | RSECC_init (void) |
static void | generator_init (size_t length) |
int | RSECC_encode (size_t data_length, size_t ecc_length, const unsigned char *data, unsigned char *ecc) |
Variables | |
static int | initialized = 0 |
static const unsigned int | proot = 0x11d |
static unsigned char | alpha [((1U<<(8)) - 1)+1] |
static unsigned char | aindex [((1U<<(8)) - 1)+1] |
static unsigned char | generator [(30) -(2)+1][((30))+1] |
static unsigned char | generatorInitialized [(30) -(2)+1] |
#define max_generatorSize (max_length) |
#define symbols ((1U << SYMBOL_SIZE) - 1) |
|
static |
Definition at line 83 of file rsecc.c.
References aindex, alpha, generator, generatorInitialized, max_generatorSize, min_length, and symbols.
Referenced by RSECC_encode().
int RSECC_encode | ( | size_t | data_length, |
size_t | ecc_length, | ||
const unsigned char * | data, | ||
unsigned char * | ecc | ||
) |
Definition at line 105 of file rsecc.c.
References aindex, alpha, generator, generator_init(), generatorInitialized, initialized, max_length, min_length, RSECC_init(), and symbols.
Referenced by RSblock_initBlock().
|
static |
Definition at line 76 of file rsecc.c.
References generatorInitialized, initialized, max_length, min_length, and RSECC_initLookupTable().
Referenced by RSECC_encode().
|
static |
|
static |
Definition at line 53 of file rsecc.c.
Referenced by generator_init(), RSECC_encode(), and RSECC_initLookupTable().
|
static |
Definition at line 52 of file rsecc.c.
Referenced by generator_init(), RSECC_encode(), and RSECC_initLookupTable().
|
static |
Definition at line 54 of file rsecc.c.
Referenced by generator_init(), and RSECC_encode().
|
static |
Definition at line 55 of file rsecc.c.
Referenced by generator_init(), RSECC_encode(), and RSECC_init().
|
static |
Definition at line 41 of file rsecc.c.
Referenced by RSECC_encode(), and RSECC_init().
|
static |
Definition at line 45 of file rsecc.c.
Referenced by RSECC_initLookupTable().