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 *) |
#define EVENT_CANCELED |
Referenced by _zbar_processor_handle_input(), _zbar_processor_notify(), and _zbar_processor_wait().
#define EVENT_INPUT |
Referenced by _zbar_processor_handle_input(), and zbar_processor_user_wait().
#define EVENT_OUTPUT |
Referenced by _zbar_process_image(), _zbar_processor_handle_input(), and zbar_process_one().
#define EVENTS_PENDING |
Referenced by _zbar_processor_wait(), proc_wait_unthreaded(), and proc_waiter_dequeue().
#define MAX_INPUT_BLOCK |
Referenced by proc_wait_unthreaded().
typedef struct proc_waiter_s proc_waiter_t |
typedef struct processor_state_s processor_state_t |
int _zbar_process_image | ( | zbar_processor_t * | , |
zbar_image_t * | |||
) |
References __func__, _zbar_image_swap_symbols(), _zbar_mutex_lock, _zbar_mutex_unlock, _zbar_processor_invalidate(), _zbar_processor_notify(), _zbar_verbosity, err_capture(), err_copy(), EVENT_OUTPUT, format, fourcc, SEV_ERROR, zbar::ZBAR_ERR_UNSUPPORTED, zbar_get_addon_name(), zbar_get_symbol_name(), zbar_image_convert(), zbar_image_destroy(), zbar_image_first_symbol(), zbar_image_get_data(), zbar_image_get_format(), zbar_image_get_height(), zbar_image_get_width(), zbar_image_scanner_get_results(), zbar_image_scanner_recycle_image(), zbar_image_write(), zbar_scan_image(), zbar_symbol_get_count(), zbar_symbol_get_data(), zbar_symbol_get_loc_size(), zbar_symbol_get_quality(), zbar_symbol_get_type(), zbar_symbol_next(), zbar_symbol_set_ref(), zbar_window_draw(), and zprintf.
Referenced by _zbar_processor_handle_input(), proc_video_handler(), proc_wait_unthreaded(), and zbar_process_image().
int _zbar_processor_cleanup | ( | zbar_processor_t * | ) |
References processor_state_s::kick_fds.
Referenced by zbar_processor_destroy().
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().
int _zbar_processor_enable | ( | zbar_processor_t * | ) |
References proc_video_handler(), and zbar_video_get_fd().
Referenced by zbar_processor_set_active().
int _zbar_processor_handle_input | ( | zbar_processor_t * | , |
int | |||
) |
References __func__, _zbar_event_trigger(), _zbar_event_wait(), _zbar_mutex_lock, _zbar_mutex_unlock, _zbar_process_image(), _zbar_processor_close(), _zbar_processor_input_wait(), _zbar_processor_lock(), _zbar_processor_notify(), _zbar_processor_set_visible(), _zbar_processor_unlock(), zbar_thread_s::activity, err_capture(), EVENT_CANCELED, EVENT_INPUT, EVENT_OUTPUT, zbar_thread_s::notify, proc, proc_open(), zbar_thread_s::running, SEV_WARNING, zbar_thread_s::started, zbar::ZBAR_ERR_CLOSED, zbar_image_destroy(), zbar_video_next_image(), zbar_window_get_overlay(), zbar_window_set_overlay(), and zprintf.
Referenced by win_handle_event(), and x_handle_event().
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().
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().
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().
int _zbar_processor_lock | ( | zbar_processor_t * | ) |
References _zbar_event_wait(), _zbar_thread_is_self, _zbar_thread_self, proc_waiter_s::notify, proc_waiter_queue(), and proc_waiter_release().
Referenced by _zbar_processor_handle_input(), proc_enter(), proc_video_handler(), x_connection_handler(), and zbar_processor_init().
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().
int _zbar_processor_open | ( | zbar_processor_t * | , |
char * | , | ||
unsigned | , | ||
unsigned | |||
) |
References __func__, err_capture(), err_capture_str(), err_copy(), EXT_STYLE, null_error(), SEV_ERROR, scan_image::width, win_register_class(), WIN_STYLE, x_connection_handler(), x_internal_watcher(), zbar::ZBAR_ERR_WINAPI, zbar::ZBAR_ERR_XDISPLAY, zbar::ZBAR_ERR_XPROTO, and zbar_window_attach().
Referenced by proc_open().
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().
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().
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().
int _zbar_processor_wait | ( | zbar_processor_t * | , |
unsigned | , | ||
zbar_timer_t * | |||
) |
References _zbar_event_wait(), _zbar_mutex_lock, _zbar_mutex_unlock, _zbar_processor_unlock(), _zbar_thread_is_self, EVENT_CANCELED, proc_waiter_s::events, EVENTS_PENDING, proc_waiter_s::notify, proc_wait_unthreaded(), proc_waiter_dequeue(), proc_waiter_queue(), and proc_waiter_release().
Referenced by zbar_process_one(), and zbar_processor_user_wait().