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

Functions

int _zbar_process_image (zbar_processor_t *proc, zbar_image_t *img)
 
int _zbar_processor_handle_input (zbar_processor_t *proc, int input)
 
static int proc_enter (zbar_processor_t *proc)
 
static int proc_leave (zbar_processor_t *proc)
 
static int proc_open (zbar_processor_t *proc)
 
int zbar_process_image (zbar_processor_t *proc, zbar_image_t *img)
 
int zbar_process_one (zbar_processor_t *proc, int timeout)
 
zbar_processor_t * zbar_processor_create (int threaded)
 constructor. More...
 
void zbar_processor_destroy (zbar_processor_t *proc)
 
int zbar_processor_force_format (zbar_processor_t *proc, unsigned long input, unsigned long output)
 
const zbar_symbol_set_t * zbar_processor_get_results (const zbar_processor_t *proc)
 
voidzbar_processor_get_userdata (const zbar_processor_t *proc)
 
int zbar_processor_init (zbar_processor_t *proc, const char *dev, int enable_display)
 
int zbar_processor_is_visible (zbar_processor_t *proc)
 
int zbar_processor_request_interface (zbar_processor_t *proc, int ver)
 
int zbar_processor_request_iomode (zbar_processor_t *proc, int iomode)
 
int zbar_processor_request_size (zbar_processor_t *proc, unsigned width, unsigned height)
 
int zbar_processor_set_active (zbar_processor_t *proc, int active)
 
int zbar_processor_set_config (zbar_processor_t *proc, zbar_symbol_type_t sym, zbar_config_t cfg, int val)
 
zbar_image_data_handler_t * zbar_processor_set_data_handler (zbar_processor_t *proc, zbar_image_data_handler_t *handler, const void *userdata)
 
void zbar_processor_set_userdata (zbar_processor_t *proc, void *userdata)
 
int zbar_processor_set_visible (zbar_processor_t *proc, int visible)
 
int zbar_processor_user_wait (zbar_processor_t *proc, int timeout)
 

Function Documentation

static int proc_open ( zbar_processor_t *  proc)
inlinestatic

References _zbar_processor_open(), scan_image::height, scan_image::width, zbar_video_get_height(), and zbar_video_get_width().

Referenced by _zbar_processor_handle_input(), and zbar_processor_init().

Here is the call graph for this function:

Here is the caller graph for this function:

int zbar_process_image ( zbar_processor_t *  proc,
zbar_image_t *  img 
)
int zbar_process_one ( zbar_processor_t *  proc,
int  timeout 
)
zbar_processor_t* zbar_processor_create ( int  threaded)

constructor.

if threaded is set and threading is available the processor will spawn threads where appropriate to avoid blocking and improve responsiveness

References _zbar_mutex_init, _zbar_processor_init(), err_init(), proc, zbar_image_scanner_create(), and ZBAR_MOD_PROCESSOR.

Referenced by main(), zbar::Processor::Processor(), and processor_new().

Here is the call graph for this function:

Here is the caller graph for this function:

void zbar_processor_destroy ( zbar_processor_t *  proc)

References _zbar_event_destroy(), _zbar_mutex_destroy, _zbar_processor_cleanup(), err_cleanup(), proc_waiter_s::next, proc_waiter_s::notify, zbar_image_scanner_destroy(), and zbar_processor_init().

Referenced by main(), and processor_dealloc().

Here is the call graph for this function:

Here is the caller graph for this function:

int zbar_processor_force_format ( zbar_processor_t *  proc,
unsigned long  input,
unsigned long  output 
)

References proc_enter(), and proc_leave().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

const zbar_symbol_set_t* zbar_processor_get_results ( const zbar_processor_t *  proc)

References proc_enter(), proc_leave(), and zbar_symbol_set_ref().

Referenced by processor_get_results().

Here is the call graph for this function:

Here is the caller graph for this function:

void* zbar_processor_get_userdata ( const zbar_processor_t *  proc)
int zbar_processor_is_visible ( zbar_processor_t *  proc)

References proc_enter(), proc_leave(), and read_one::visible.

Referenced by processor_get_bool(), and scan_image().

Here is the call graph for this function:

Here is the caller graph for this function:

int zbar_processor_request_interface ( zbar_processor_t *  proc,
int  ver 
)

References proc_enter(), and proc_leave().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int zbar_processor_request_iomode ( zbar_processor_t *  proc,
int  iomode 
)

References proc_enter(), and proc_leave().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int zbar_processor_request_size ( zbar_processor_t *  proc,
unsigned  width,
unsigned  height 
)

References scan_image::height, proc_enter(), proc_leave(), and scan_image::width.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int zbar_processor_set_config ( zbar_processor_t *  proc,
zbar_symbol_type_t  sym,
zbar_config_t  cfg,
int  val 
)

References proc_enter(), proc_leave(), and zbar_image_scanner_set_config().

Referenced by processor_set_config().

Here is the call graph for this function:

Here is the caller graph for this function:

zbar_image_data_handler_t* zbar_processor_set_data_handler ( zbar_processor_t *  proc,
zbar_image_data_handler_t *  handler,
const void userdata 
)

References proc_enter(), proc_leave(), result, and userdata.

Referenced by main(), processor_clear(), and processor_set_data_handler().

Here is the call graph for this function:

Here is the caller graph for this function:

void zbar_processor_set_userdata ( zbar_processor_t *  proc,
void userdata 
)

References _zbar_mutex_lock, _zbar_mutex_unlock, and userdata.

Referenced by processor_clear(), and processor_new().

Here is the caller graph for this function:

int zbar_processor_set_visible ( zbar_processor_t *  proc,
int  visible 
)
int zbar_processor_user_wait ( zbar_processor_t *  proc,
int  timeout 
)

References __func__, _zbar_mutex_lock, _zbar_mutex_unlock, _zbar_processor_wait(), _zbar_timer_init(), err_capture(), EVENT_INPUT, proc_enter(), proc_leave(), SEV_WARNING, and zbar::ZBAR_ERR_CLOSED.

Referenced by input_wait(), main(), processor_user_wait(), and scan_image().

Here is the call graph for this function:

Here is the caller graph for this function: