ZBar Bar Code Reader Library  version 0.10
zbar/decoder.c File Reference

Functions

const char * _zbar_decoder_buf_dump (unsigned char *buf, unsigned int buflen)
 
static int decoder_set_config_bool (zbar_decoder_t *dcode, zbar_symbol_type_t sym, zbar_config_t cfg, int val)
 
static int decoder_set_config_int (zbar_decoder_t *dcode, zbar_symbol_type_t sym, zbar_config_t cfg, int val)
 
zbar_symbol_type_t zbar_decode_width (zbar_decoder_t *dcode, unsigned w)
 
zbar_decoder_t * zbar_decoder_create ()
 constructor. More...
 
void zbar_decoder_destroy (zbar_decoder_t *dcode)
 
zbar_color_t zbar_decoder_get_color (const zbar_decoder_t *dcode)
 
const char * zbar_decoder_get_data (const zbar_decoder_t *dcode)
 
unsigned int zbar_decoder_get_data_length (const zbar_decoder_t *dcode)
 
zbar_symbol_type_t zbar_decoder_get_type (const zbar_decoder_t *dcode)
 
voidzbar_decoder_get_userdata (const zbar_decoder_t *dcode)
 
void zbar_decoder_new_scan (zbar_decoder_t *dcode)
 
void zbar_decoder_reset (zbar_decoder_t *dcode)
 
int zbar_decoder_set_config (zbar_decoder_t *dcode, zbar_symbol_type_t sym, zbar_config_t cfg, int val)
 
zbar_decoder_handler_t * zbar_decoder_set_handler (zbar_decoder_t *dcode, zbar_decoder_handler_t handler)
 
void zbar_decoder_set_userdata (zbar_decoder_t *dcode, void *userdata)
 

Variables

static char * decoder_dump
 
static unsigned decoder_dumplen
 

Function Documentation

const char* _zbar_decoder_buf_dump ( unsigned char *  buf,
unsigned int  buflen 
)
static int decoder_set_config_bool ( zbar_decoder_t *  dcode,
zbar_symbol_type_t  sym,
zbar_config_t  cfg,
int  val 
)
inlinestatic
static int decoder_set_config_int ( zbar_decoder_t *  dcode,
zbar_symbol_type_t  sym,
zbar_config_t  cfg,
int  val 
)
inlinestatic

References CFG, zbar::ZBAR_CODE128, zbar::ZBAR_CODE39, zbar::ZBAR_I25, and zbar::ZBAR_PDF417.

Referenced by zbar_decoder_set_config().

Here is the caller graph for this function:

zbar_symbol_type_t zbar_decode_width ( zbar_decoder_t *  dcode,
unsigned  w 
)
zbar_decoder_t* zbar_decoder_create ( void  )

constructor.

References BUFFER_MIN, CFG, zbar::ZBAR_CFG_EMIT_CHECK, zbar::ZBAR_CFG_ENABLE, zbar::ZBAR_CFG_MIN_LEN, and zbar_decoder_reset().

Referenced by zbar::Decoder::Decoder(), decoder_new(), main(), and zbar_image_scanner_create().

Here is the call graph for this function:

Here is the caller graph for this function:

void zbar_decoder_destroy ( zbar_decoder_t *  dcode)

Referenced by decoder_dealloc(), main(), and zbar_image_scanner_destroy().

Here is the caller graph for this function:

zbar_color_t zbar_decoder_get_color ( const zbar_decoder_t *  dcode)

References get_color().

Referenced by decoder_get_color().

Here is the call graph for this function:

Here is the caller graph for this function:

const char* zbar_decoder_get_data ( const zbar_decoder_t *  dcode)

Referenced by decoder_get_data(), and symbol_handler().

Here is the caller graph for this function:

unsigned int zbar_decoder_get_data_length ( const zbar_decoder_t *  dcode)

Referenced by decoder_get_data(), and symbol_handler().

Here is the caller graph for this function:

zbar_symbol_type_t zbar_decoder_get_type ( const zbar_decoder_t *  dcode)

Referenced by decoder_get_type(), and symbol_handler().

Here is the caller graph for this function:

void* zbar_decoder_get_userdata ( const zbar_decoder_t *  dcode)

Referenced by decode_handler(), and symbol_handler().

Here is the caller graph for this function:

void zbar_decoder_new_scan ( zbar_decoder_t *  dcode)

References code128_reset(), code39_reset(), ean_new_scan(), i25_reset(), pdf417_reset(), and qr_finder_reset().

Referenced by decoder_new_scan(), and zbar_scanner_new_scan().

Here is the caller graph for this function:

void zbar_decoder_reset ( zbar_decoder_t *  dcode)

References code128_reset(), code39_reset(), ean_reset(), i25_reset(), pdf417_reset(), and qr_finder_reset().

Referenced by decoder_reset(), zbar_decoder_create(), and zbar_scanner_reset().

Here is the caller graph for this function:

int zbar_decoder_set_config ( zbar_decoder_t *  dcode,
zbar_symbol_type_t  sym,
zbar_config_t  cfg,
int  val 
)
zbar_decoder_handler_t* zbar_decoder_set_handler ( zbar_decoder_t *  dcode,
zbar_decoder_handler_t  handler 
)

References result.

Referenced by decoder_clear(), decoder_set_handler(), main(), and zbar_image_scanner_create().

Here is the caller graph for this function:

void zbar_decoder_set_userdata ( zbar_decoder_t *  dcode,
void userdata 
)

References userdata.

Referenced by decoder_clear(), decoder_new(), and zbar_image_scanner_create().

Here is the caller graph for this function:

Variable Documentation

char* decoder_dump
static

Referenced by _zbar_decoder_buf_dump().

unsigned decoder_dumplen
static

Referenced by _zbar_decoder_buf_dump().