ZBar Bar Code Reader Library  version 0.10
ean.c File Reference
Include dependency graph for ean.c:

Typedefs

typedef enum symbol_partial_e symbol_partial_t
 

Enumerations

enum  symbol_partial_e {
  EAN_LEFT,
  EAN_RIGHT
}
 

Functions

zbar_symbol_type_t _zbar_decode_ean (zbar_decoder_t *dcode)
 
static signed char aux_end (zbar_decoder_t *dcode, unsigned char fwd)
 
static signed char aux_start (zbar_decoder_t *dcode)
 
static signed char decode4 (zbar_decoder_t *dcode)
 
static zbar_symbol_type_t decode_pass (zbar_decoder_t *dcode, ean_pass_t *pass)
 
static void ean_expand_upce (ean_decoder_t *ean, ean_pass_t *pass)
 
static zbar_symbol_type_t ean_part_end4 (ean_pass_t *pass, unsigned char fwd)
 
static zbar_symbol_type_t ean_part_end7 (ean_decoder_t *ean, ean_pass_t *pass, unsigned char fwd)
 
static signed char ean_verify_checksum (ean_decoder_t *ean, int n)
 
static zbar_symbol_type_t integrate_partial (ean_decoder_t *ean, ean_pass_t *pass, zbar_symbol_type_t part)
 
static unsigned char isbn10_calc_checksum (ean_decoder_t *ean)
 
static void postprocess (zbar_decoder_t *dcode, zbar_symbol_type_t sym)
 

Variables

static const unsigned char digits []
 
static const unsigned char parity_decode []
 

Typedef Documentation

Enumeration Type Documentation

Enumerator
EAN_LEFT 
EAN_RIGHT 

Function Documentation

zbar_symbol_type_t _zbar_decode_ean ( zbar_decoder_t *  dcode)

References decode_pass(), dprintf, get_lock(), get_width(), integrate_partial(), postprocess(), ean_pass_s::state, zbar::ZBAR_EAN13, zbar::ZBAR_NONE, and zbar::ZBAR_PARTIAL.

Referenced by ean_get_config(), and zbar_decode_width().

Here is the call graph for this function:

Here is the caller graph for this function:

static signed char aux_end ( zbar_decoder_t *  dcode,
unsigned char  fwd 
)
inlinestatic

References calc_s(), decode_e(), dprintf, and get_width().

Referenced by decode_pass().

Here is the call graph for this function:

Here is the caller graph for this function:

static signed char aux_start ( zbar_decoder_t *  dcode)
inlinestatic

References decode_e(), dprintf, get_color(), get_width(), STATE_ADDON, and zbar::ZBAR_BAR.

Referenced by decode_pass().

Here is the call graph for this function:

Here is the caller graph for this function:

static signed char decode4 ( zbar_decoder_t *  dcode)
inlinestatic

References decode_e(), digits, dprintf, get_color(), get_width(), zassert, and zbar::ZBAR_BAR.

Referenced by decode_pass().

Here is the call graph for this function:

Here is the caller graph for this function:

static zbar_symbol_type_t decode_pass ( zbar_decoder_t *  dcode,
ean_pass_t pass 
)
inlinestatic
static void ean_expand_upce ( ean_decoder_t ean,
ean_pass_t pass 
)
inlinestatic

References ean_decoder_s::buf, upcrpc::decode, and ean_pass_s::raw.

Referenced by integrate_partial().

Here is the caller graph for this function:

static zbar_symbol_type_t ean_part_end4 ( ean_pass_t pass,
unsigned char  fwd 
)
inlinestatic

References dprintf, EAN_LEFT, EAN_RIGHT, ean_pass_s::raw, zbar::ZBAR_EAN8, and zbar::ZBAR_NONE.

Referenced by decode_pass().

Here is the caller graph for this function:

static zbar_symbol_type_t ean_part_end7 ( ean_decoder_t ean,
ean_pass_t pass,
unsigned char  fwd 
)
inlinestatic
static signed char ean_verify_checksum ( ean_decoder_t ean,
int  n 
)
inlinestatic

References _zbar_decoder_buf_dump(), ean_decoder_s::buf, dprintf, and zassert.

Referenced by integrate_partial().

Here is the call graph for this function:

Here is the caller graph for this function:

static unsigned char isbn10_calc_checksum ( ean_decoder_t ean)
inlinestatic

References _zbar_decoder_buf_dump(), ean_decoder_s::buf, and zassert.

Referenced by postprocess().

Here is the call graph for this function:

Here is the caller graph for this function:

static void postprocess ( zbar_decoder_t *  dcode,
zbar_symbol_type_t  sym 
)
inlinestatic

Variable Documentation

const unsigned char digits[]
static

Referenced by decode4(), and decode_pass().

const unsigned char parity_decode[]
static

Referenced by ean_part_end7().