Classes | |
struct | rs_gf256 |
Macros | |
#define | _qrcode_rs_H |
#define | QR_M0 |
#define | QR_PPOLY |
Typedefs | |
typedef struct rs_gf256 | rs_gf256 |
Functions | |
void | rs_compute_genpoly (const rs_gf256 *_gf, int _m0, unsigned char *_genpoly, int _npar) |
int | rs_correct (const rs_gf256 *_gf, int _m0, unsigned char *_data, int _ndata, int _npar, const unsigned char *_erasures, int _nerasures) |
void | rs_encode (const rs_gf256 *_gf, unsigned char *_data, int _ndata, const unsigned char *_genpoly, int _npar) |
void | rs_gf256_init (rs_gf256 *_gf, unsigned _ppoly) |
#define _qrcode_rs_H |
#define QR_M0 |
Referenced by qr_code_decode(), and rs_encode().
#define QR_PPOLY |
Referenced by qr_reader_init(), and rs_encode().
References rs_gf256::exp, rs_gf256::log, rs_hgmul(), and rs_poly_zero().
Referenced by rs_encode().
int rs_correct | ( | const rs_gf256 * | _gf, |
int | _m0, | ||
unsigned char * | _data, | ||
int | _ndata, | ||
int | _npar, | ||
const unsigned char * | _erasures, | ||
int | _nerasures | ||
) |
References rs_gf256::exp, rs_gf256::log, rs_calc_syndrome(), rs_find_roots(), rs_gdiv(), rs_hgmul(), and rs_modified_berlekamp_massey().
Referenced by qr_code_decode(), and rs_encode().
void rs_encode | ( | const rs_gf256 * | _gf, |
unsigned char * | _data, | ||
int | _ndata, | ||
const unsigned char * | _genpoly, | ||
int | _npar | ||
) |
References test_zbar::data, rs_gf256::exp, fprintf(), rs_gf256::log, main(), QR_M0, QR_PPOLY, rs_compute_genpoly(), rs_correct(), rs_encode(), rs_gf256_init(), rs_gmul(), rs_hgmul(), rs_poly_div_x(), rs_poly_zero(), rs_quartic_solve(), and x.
Referenced by rs_encode().
References rs_gf256::exp, and rs_gf256::log.
Referenced by qr_reader_init(), and rs_encode().