ZBar Bar Code Reader Library  version 0.10
processor.h File Reference

Classes

struct  proc_waiter_s
 
struct  zbar_processor_s
 

Macros

#define EVENT_CANCELED
 
#define EVENT_INPUT
 
#define EVENT_OUTPUT
 
#define EVENTS_PENDING
 
#define MAX_INPUT_BLOCK
 

Typedefs

typedef struct proc_waiter_s proc_waiter_t
 
typedef struct processor_state_s processor_state_t
 

Functions

int _zbar_process_image (zbar_processor_t *, zbar_image_t *)
 
int _zbar_processor_cleanup (zbar_processor_t *)
 
int _zbar_processor_close (zbar_processor_t *)
 
int _zbar_processor_enable (zbar_processor_t *)
 
int _zbar_processor_handle_input (zbar_processor_t *, int)
 
int _zbar_processor_init (zbar_processor_t *)
 
int _zbar_processor_input_wait (zbar_processor_t *, zbar_event_t *, int)
 
int _zbar_processor_invalidate (zbar_processor_t *)
 
int _zbar_processor_lock (zbar_processor_t *)
 
void _zbar_processor_notify (zbar_processor_t *, unsigned)
 
int _zbar_processor_open (zbar_processor_t *, char *, unsigned, unsigned)
 
int _zbar_processor_set_size (zbar_processor_t *, unsigned, unsigned)
 
int _zbar_processor_set_visible (zbar_processor_t *, int)
 
int _zbar_processor_unlock (zbar_processor_t *, int)
 
int _zbar_processor_wait (zbar_processor_t *, unsigned, zbar_timer_t *)
 

Macro Definition Documentation

#define EVENT_INPUT
#define EVENT_OUTPUT
#define EVENTS_PENDING
#define MAX_INPUT_BLOCK

Referenced by proc_wait_unthreaded().

Typedef Documentation

typedef struct proc_waiter_s proc_waiter_t

Function Documentation

int _zbar_processor_cleanup ( zbar_processor_t *  )

References processor_state_s::kick_fds.

Referenced by zbar_processor_destroy().

Here is the caller graph for this function:

int _zbar_processor_close ( zbar_processor_t *  )

References __func__, null_error(), and zbar_window_attach().

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_processor_enable ( zbar_processor_t *  )

References proc_video_handler(), and zbar_video_get_fd().

Referenced by zbar_processor_set_active().

Here is the call graph for this function:

Here is the caller graph for this function:

int _zbar_processor_init ( zbar_processor_t *  )

References __func__, err_capture(), processor_state_s::kick_fds, proc_cache_polling(), proc_kick_handler(), SEV_FATAL, and zbar::ZBAR_ERR_SYSTEM.

Referenced by zbar_processor_create().

Here is the call graph for this function:

Here is the caller graph for this function:

int _zbar_processor_input_wait ( zbar_processor_t *  ,
zbar_event_t ,
int   
)

References _zbar_mutex_lock, _zbar_mutex_unlock, processor_state_s::kick_fds, proc_poll_inputs(), proc_sleep(), and win_handle_events().

Referenced by _zbar_processor_handle_input(), and proc_wait_unthreaded().

Here is the call graph for this function:

Here is the caller graph for this function:

int _zbar_processor_invalidate ( zbar_processor_t *  )

References __func__, and null_error().

Referenced by _zbar_process_image(), x_handle_event(), and zbar_processor_set_active().

Here is the call graph for this function:

Here is the caller graph for this function:

int _zbar_processor_lock ( zbar_processor_t *  )
void _zbar_processor_notify ( zbar_processor_t *  ,
unsigned   
)

References _zbar_event_trigger(), EVENT_CANCELED, proc_waiter_s::events, proc_waiter_s::next, proc_waiter_s::notify, and proc_waiter_dequeue().

Referenced by _zbar_process_image(), and _zbar_processor_handle_input().

Here is the call graph for this function:

Here is the caller graph for this function:

int _zbar_processor_open ( zbar_processor_t *  ,
char *  ,
unsigned  ,
unsigned   
)
int _zbar_processor_set_size ( zbar_processor_t *  ,
unsigned  ,
unsigned   
)

References __func__, scan_image::height, null_error(), and scan_image::width.

Referenced by zbar_process_image(), and zbar_processor_set_visible().

Here is the call graph for this function:

Here is the caller graph for this function:

int _zbar_processor_set_visible ( zbar_processor_t *  ,
int   
)

References __func__, and null_error().

Referenced by _zbar_processor_handle_input(), and zbar_processor_set_visible().

Here is the call graph for this function:

Here is the caller graph for this function:

int _zbar_processor_unlock ( zbar_processor_t *  ,
int   
)

References _zbar_event_trigger(), _zbar_thread_is_self, proc_waiter_s::notify, and proc_waiter_dequeue().

Referenced by _zbar_processor_handle_input(), _zbar_processor_wait(), proc_leave(), proc_video_handler(), and x_connection_handler().

Here is the call graph for this function:

Here is the caller graph for this function: