Classes | |
struct | recycle_bucket_s |
struct | zbar_image_scanner_s |
Macros | |
#define | ASSERT_POS |
#define | CACHE_CONSISTENCY |
#define | CACHE_HYSTERESIS |
#define | CACHE_PROXIMITY |
#define | CACHE_TIMEOUT |
#define | CFG(iscn, cfg) |
#define | movedelta(dx, dy) |
#define | NUM_SCN_CFGS |
#define | RECYCLE_BUCKETS |
#define | STAT(x) |
#define | TEST_CFG(iscn, cfg) |
Typedefs | |
typedef struct recycle_bucket_s | recycle_bucket_t |
Functions | |
void | _zbar_image_scanner_add_sym (zbar_image_scanner_t *iscn, zbar_symbol_t *sym) |
zbar_symbol_t * | _zbar_image_scanner_alloc_sym (zbar_image_scanner_t *iscn, zbar_symbol_type_t type, int datalen) |
void | _zbar_image_scanner_recycle_syms (zbar_image_scanner_t *iscn, zbar_symbol_t *sym) |
static zbar_symbol_t * | cache_lookup (zbar_image_scanner_t *iscn, zbar_symbol_t *sym) |
static void | cache_sym (zbar_image_scanner_t *iscn, zbar_symbol_t *sym) |
static void | dump_stats (const zbar_image_scanner_t *iscn) |
static void | quiet_border (zbar_image_scanner_t *iscn) |
static int | recycle_syms (zbar_image_scanner_t *iscn, zbar_symbol_set_t *syms) |
static void | symbol_handler (zbar_decoder_t *dcode) |
zbar_image_scanner_t * | zbar_image_scanner_create () |
constructor. More... | |
void | zbar_image_scanner_destroy (zbar_image_scanner_t *iscn) |
void | zbar_image_scanner_enable_cache (zbar_image_scanner_t *iscn, int enable) |
const zbar_symbol_set_t * | zbar_image_scanner_get_results (const zbar_image_scanner_t *iscn) |
void | zbar_image_scanner_recycle_image (zbar_image_scanner_t *iscn, zbar_image_t *img) |
int | zbar_image_scanner_set_config (zbar_image_scanner_t *iscn, zbar_symbol_type_t sym, zbar_config_t cfg, int val) |
zbar_image_data_handler_t * | zbar_image_scanner_set_data_handler (zbar_image_scanner_t *iscn, zbar_image_data_handler_t *handler, const void *userdata) |
int | zbar_scan_image (zbar_image_scanner_t *iscn, zbar_image_t *img) |
#define ASSERT_POS |
Referenced by zbar_scan_image().
#define CACHE_CONSISTENCY |
Referenced by cache_sym().
#define CACHE_HYSTERESIS |
Referenced by cache_sym().
#define CACHE_PROXIMITY |
Referenced by cache_sym().
#define CACHE_TIMEOUT |
Referenced by cache_lookup().
#define CFG | ( | iscn, | |
cfg | |||
) |
Referenced by zbar_image_scanner_create(), zbar_image_scanner_set_config(), and zbar_scan_image().
#define movedelta | ( | dx, | |
dy | |||
) |
Referenced by zbar_scan_image().
#define NUM_SCN_CFGS |
#define RECYCLE_BUCKETS |
#define STAT | ( | x | ) |
Referenced by _zbar_image_scanner_alloc_sym(), zbar_image_scanner_recycle_image(), and zbar_scan_image().
#define TEST_CFG | ( | iscn, | |
cfg | |||
) |
Referenced by symbol_handler().
typedef struct recycle_bucket_s recycle_bucket_t |
void _zbar_image_scanner_add_sym | ( | zbar_image_scanner_t * | iscn, |
zbar_symbol_t * | sym | ||
) |
References _zbar_decoder_get_qr_finder_line(), _zbar_qr_found_line(), _zbar_symbol_refcnt(), qr_finder_line::boffs, cache_sym(), qr_finder_line::eoffs, zbar_symbol_set_s::head, qr_finder_line::len, qr_finder_line::pos, QR_FINDER_SUBPREC, and zbar_scanner_get_edge().
Referenced by qr_code_data_list_extract_text(), and symbol_handler().
|
inline |
References RECYCLE_BUCKETS, and STAT.
Referenced by cache_sym(), qr_code_data_list_extract_text(), and symbol_handler().
void _zbar_image_scanner_recycle_syms | ( | zbar_image_scanner_t * | iscn, |
zbar_symbol_t * | sym | ||
) |
References _zbar_image_scanner_recycle_syms(), _zbar_refcnt(), _zbar_symbol_set_free(), recycle_bucket_s::head, zbar_symbol_s::next, recycle_bucket_s::nsyms, and RECYCLE_BUCKETS.
Referenced by _zbar_image_scanner_recycle_syms(), cache_lookup(), qr_code_data_list_extract_text(), recycle_syms(), zbar_image_scanner_enable_cache(), and zbar_scan_image().
|
inlinestatic |
References _zbar_image_scanner_recycle_syms(), CACHE_TIMEOUT, and zbar_symbol_s::next.
Referenced by cache_sym().
|
inlinestatic |
References _zbar_image_scanner_alloc_sym(), CACHE_CONSISTENCY, CACHE_HYSTERESIS, cache_lookup(), and CACHE_PROXIMITY.
Referenced by _zbar_image_scanner_add_sym().
|
inlinestatic |
References RECYCLE_BUCKETS, and zprintf.
Referenced by zbar_image_scanner_destroy().
|
inlinestatic |
References zbar_scanner_flush(), and zbar_scanner_new_scan().
Referenced by zbar_scan_image().
|
inlinestatic |
References _zbar_image_scanner_recycle_syms(), and _zbar_refcnt().
Referenced by zbar_image_scanner_recycle_image().
|
static |
References _zbar_image_scanner_add_sym(), _zbar_image_scanner_alloc_sym(), test_zbar::data, zbar_symbol_s::quality, sym_add_point(), TEST_CFG, x, y, zbar::ZBAR_CFG_POSITION, zbar_decoder_get_data(), zbar_decoder_get_data_length(), zbar_decoder_get_type(), zbar_decoder_get_userdata(), zbar::ZBAR_PARTIAL, zbar::ZBAR_QRCODE, zbar_scanner_get_edge(), and zbar_scanner_get_width().
Referenced by zbar_image_scanner_create().
zbar_image_scanner_t* zbar_image_scanner_create | ( | void | ) |
constructor.
References _zbar_qr_create(), CFG, symbol_handler(), zbar::ZBAR_CFG_POSITION, zbar::ZBAR_CFG_X_DENSITY, zbar::ZBAR_CFG_Y_DENSITY, zbar_decoder_create(), zbar_decoder_set_handler(), zbar_decoder_set_userdata(), zbar_image_scanner_destroy(), zbar_image_scanner_set_config(), and zbar_scanner_create().
Referenced by zbar::ImageScanner::ImageScanner(), imagescanner_new(), main(), zbar_gtk_processing_thread(), and zbar_processor_create().
void zbar_image_scanner_destroy | ( | zbar_image_scanner_t * | iscn | ) |
References _zbar_qr_destroy(), _zbar_symbol_free(), _zbar_symbol_set_free(), dump_stats(), zbar_symbol_s::next, RECYCLE_BUCKETS, zbar_decoder_destroy(), zbar_scanner_destroy(), and zbar_symbol_set_ref().
Referenced by imagescanner_dealloc(), main(), zbar_gtk_private_finalize(), zbar_image_scanner_create(), and zbar_processor_destroy().
void zbar_image_scanner_enable_cache | ( | zbar_image_scanner_t * | iscn, |
int | enable | ||
) |
References _zbar_image_scanner_recycle_syms().
Referenced by imagescanner_enable_cache(), zbar_gtk_processing_thread(), zbar_process_image(), and zbar_processor_set_active().
const zbar_symbol_set_t* zbar_image_scanner_get_results | ( | const zbar_image_scanner_t * | iscn | ) |
Referenced by _zbar_process_image(), and imagescanner_get_results().
|
inline |
References _zbar_symbol_set_free(), recycle_syms(), and STAT.
Referenced by _zbar_process_image(), imagescanner_recycle(), zbar_gtk_process_image(), and zbar_scan_image().
int zbar_image_scanner_set_config | ( | zbar_image_scanner_t * | iscn, |
zbar_symbol_type_t | sym, | ||
zbar_config_t | cfg, | ||
int | val | ||
) |
References CFG, zbar::ZBAR_CFG_POSITION, zbar::ZBAR_CFG_X_DENSITY, zbar::ZBAR_CFG_Y_DENSITY, zbar_decoder_set_config(), and zbar::ZBAR_PARTIAL.
Referenced by imagescanner_set_config(), main(), zbar_image_scanner_create(), and zbar_processor_set_config().
zbar_image_data_handler_t* zbar_image_scanner_set_data_handler | ( | zbar_image_scanner_t * | iscn, |
zbar_image_data_handler_t * | handler, | ||
const void * | userdata | ||
) |
int zbar_scan_image | ( | zbar_image_scanner_t * | iscn, |
zbar_image_t * | img | ||
) |
References _zbar_image_scanner_recycle_syms(), _zbar_qr_decode(), _zbar_qr_reset(), _zbar_symbol_set_create(), ASSERT_POS, CFG, test_zbar::data, fourcc, movedelta, zbar_symbol_s::next, quiet_border(), STAT, svg_close, svg_group_end, svg_group_start, svg_image, svg_open, svg_path_end, svg_path_start, x, y, zbar::ZBAR_CFG_X_DENSITY, zbar::ZBAR_CFG_Y_DENSITY, zbar::ZBAR_I25, zbar_image_scanner_recycle_image(), zbar_image_write_png, zbar::ZBAR_PARTIAL, zbar_scan_y(), zbar_scanner_new_scan(), zbar_symbol_set_ref(), and zprintf.
Referenced by _zbar_process_image(), imagescanner_scan(), main(), and zbar_gtk_process_image().