ZBar Bar Code Reader Library  version 0.10
rs.h File Reference
This graph shows which files directly or indirectly include this file:

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)
 

Macro Definition Documentation

#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().

Typedef Documentation

typedef struct rs_gf256 rs_gf256

Function Documentation

void rs_compute_genpoly ( const rs_gf256 _gf,
int  _m0,
unsigned char *  _genpoly,
int  _npar 
)

References rs_gf256::exp, rs_gf256::log, rs_hgmul(), and rs_poly_zero().

Referenced by rs_encode().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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 
)

References rs_gf256::exp, and rs_gf256::log.

Referenced by qr_reader_init(), and rs_encode().

Here is the caller graph for this function: