ZBar Bar Code Reader Library  version 0.10
test_decode.c File Reference

Macros

#define FWD
 
#define PDF417_COLS
 
#define PDF417_ROWS
 
#define PDF417_START
 
#define PDF417_STOP
 
#define REV
 

Typedefs

typedef enum code128_char_e code128_char_t
 

Enumerations

enum  code128_char_e {
  FNC3,
  FNC2,
  SHIFT,
  CODE_C,
  CODE_B,
  CODE_A,
  FNC1,
  START_A,
  START_B,
  START_C,
  STOP,
  FNC3,
  FNC2,
  SHIFT,
  CODE_C,
  CODE_B,
  CODE_A,
  FNC1,
  START_A,
  START_B,
  START_C,
  STOP_FWD,
  STOP_REV,
  FNC4
}
 

Functions

static void calc_ean_parity (unsigned char *data, int n)
 
static int calc_ind417 (int mod, int r, int cols)
 
static void encode (uint64_t units, int fwd)
 
static void encode_char39 (unsigned char c, unsigned ics)
 
static void encode_code128b (unsigned char *data)
 
static void encode_code128c (unsigned char *data)
 
static void encode_code39 (unsigned char *data)
 
static void encode_ean13 (unsigned char *data)
 
static void encode_ean8 (unsigned char *data)
 
static void encode_i25 (unsigned char *data, int dir)
 
static void encode_junk (int n)
 
static void encode_pdf417 (unsigned char *data)
 
static void encode_row417 (int r, const unsigned *cws, int cols, int dir)
 
int main (int argc, char **argv)
 
static void symbol_handler (zbar_decoder_t *decoder)
 

Variables

static const unsigned int code128 [107]
 
static const unsigned int code39 [91-32]
 
zbar_decoder_t * decoder
 
static const unsigned int ean_digits [10]
 
static const unsigned int ean_guard []
 
static const unsigned char ean_parity_encode []
 
static const unsigned char i25 [10]
 
static const unsigned pdf417_msg [3][3]
 

Macro Definition Documentation

#define FWD

Referenced by encode_ean13(), encode_ean8(), and main().

#define PDF417_COLS

Referenced by encode_pdf417().

#define PDF417_ROWS

Referenced by calc_ind417(), and encode_pdf417().

#define PDF417_START

Referenced by encode_row417().

#define PDF417_STOP

Referenced by encode_row417().

#define REV

Typedef Documentation

Enumeration Type Documentation

Enumerator
FNC3 
FNC2 
SHIFT 
CODE_C 
CODE_B 
CODE_A 
FNC1 
START_A 
START_B 
START_C 
STOP 
FNC3 
FNC2 
SHIFT 
CODE_C 
CODE_B 
CODE_A 
FNC1 
START_A 
START_B 
START_C 
STOP_FWD 
STOP_REV 
FNC4 

Function Documentation

static void calc_ean_parity ( unsigned char *  data,
int  n 
)
static

Referenced by main().

Here is the caller graph for this function:

static int calc_ind417 ( int  mod,
int  r,
int  cols 
)
static

References PDF417_ROWS.

Referenced by encode_row417().

Here is the caller graph for this function:

static void encode ( uint64_t  units,
int  fwd 
)
static
static void encode_char39 ( unsigned char  c,
unsigned  ics 
)
static

References code39, encode(), scan_image::raw, and REV.

Referenced by encode_code39().

Here is the call graph for this function:

Here is the caller graph for this function:

static void encode_code128b ( unsigned char *  data)
static

References code128, encode(), START_B, and STOP.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

static void encode_code128c ( unsigned char *  data)
static

References code128, encode(), START_C, and STOP.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

static void encode_code39 ( unsigned char *  data)
static

References encode(), and encode_char39().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

static void encode_ean13 ( unsigned char *  data)
static

References ean_digits, ean_guard, ean_parity_encode, encode(), FWD, and REV.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

static void encode_ean8 ( unsigned char *  data)
static

References ean_digits, ean_guard, encode(), FWD, and REV.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

static void encode_i25 ( unsigned char *  data,
int  dir 
)
static

References encode(), and i25.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

static void encode_junk ( int  n)
static

References decoder, and zbar_decode_width().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

static void encode_pdf417 ( unsigned char *  data)
static

References encode(), encode_row417(), PDF417_COLS, pdf417_msg, and PDF417_ROWS.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

static void encode_row417 ( int  r,
const unsigned *  cws,
int  cols,
int  dir 
)
static

References calc_ind417(), encode(), pdf417_encode, PDF417_START, and PDF417_STOP.

Referenced by encode_pdf417().

Here is the call graph for this function:

Here is the caller graph for this function:

static void symbol_handler ( zbar_decoder_t *  decoder)
static

References zbar_decoder_get_data(), zbar_decoder_get_type(), zbar_get_addon_name(), zbar_get_symbol_name(), and zbar::ZBAR_PARTIAL.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const unsigned int code128[107]
static

Referenced by encode_code128b(), and encode_code128c().

const unsigned int code39[91-32]
static

Referenced by encode_char39().

zbar_decoder_t* decoder

Referenced by encode(), encode_junk(), and main().

const unsigned int ean_digits[10]
static

Referenced by encode_ean13(), and encode_ean8().

const unsigned int ean_guard[]
static

Referenced by encode_ean13(), and encode_ean8().

const unsigned char ean_parity_encode[]
static

Referenced by encode_ean13().

const unsigned char i25[10]
static

Referenced by encode_i25().

const unsigned pdf417_msg[3][3]
static

Referenced by encode_pdf417().