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

Macros

#define EXT_STYLE
 
#define WIN_STYLE
 

Functions

void _zbar_event_destroy (zbar_event_t *event)
 
int _zbar_event_init (zbar_event_t *event)
 
void _zbar_event_trigger (zbar_event_t *event)
 
int _zbar_event_wait (zbar_event_t *event, zbar_mutex_t *lock, zbar_timer_t *timeout)
 
int _zbar_processor_cleanup (zbar_processor_t *proc)
 
int _zbar_processor_close (zbar_processor_t *proc)
 
int _zbar_processor_enable (zbar_processor_t *proc)
 
int _zbar_processor_init (zbar_processor_t *proc)
 
int _zbar_processor_input_wait (zbar_processor_t *proc, zbar_event_t *event, int timeout)
 
int _zbar_processor_invalidate (zbar_processor_t *proc)
 
int _zbar_processor_open (zbar_processor_t *proc, char *title, unsigned width, unsigned height)
 
int _zbar_processor_set_size (zbar_processor_t *proc, unsigned width, unsigned height)
 
int _zbar_processor_set_visible (zbar_processor_t *proc, int visible)
 
int _zbar_thread_start (zbar_thread_t *thr, zbar_thread_proc_t *proc, void *arg, zbar_mutex_t *lock)
 
int _zbar_thread_stop (zbar_thread_t *thr, zbar_mutex_t *lock)
 
static LRESULT CALLBACK win_handle_event (HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam)
 
static int win_handle_events (zbar_processor_t *proc)
 
static ATOM win_register_class (HINSTANCE hmod)
 

Macro Definition Documentation

#define EXT_STYLE

Referenced by _zbar_processor_open().

#define WIN_STYLE

Referenced by _zbar_processor_open().

Function Documentation

void _zbar_event_destroy ( zbar_event_t event)

Referenced by _zbar_thread_start(), _zbar_thread_stop(), and zbar_processor_destroy().

Here is the caller graph for this function:

int _zbar_event_init ( zbar_event_t event)

Referenced by _zbar_thread_start(), and proc_waiter_queue().

Here is the caller graph for this function:

int _zbar_event_wait ( zbar_event_t event,
zbar_mutex_t lock,
zbar_timer_t timeout 
)

References _zbar_mutex_lock, _zbar_mutex_unlock, and _zbar_timer_check().

Referenced by _zbar_processor_handle_input(), _zbar_processor_lock(), _zbar_processor_wait(), _zbar_thread_start(), and _zbar_thread_stop().

Here is the call graph for this function:

Here is the caller graph for this function:

int _zbar_processor_cleanup ( zbar_processor_t *  proc)
int _zbar_processor_close ( zbar_processor_t *  proc)
int _zbar_processor_enable ( zbar_processor_t *  proc)

References proc_video_handler(), and zbar_video_get_fd().

Here is the call graph for this function:

int _zbar_processor_init ( zbar_processor_t *  proc)
int _zbar_processor_input_wait ( zbar_processor_t *  proc,
zbar_event_t event,
int  timeout 
)
int _zbar_processor_invalidate ( zbar_processor_t *  proc)
int _zbar_processor_open ( zbar_processor_t *  proc,
char *  title,
unsigned  width,
unsigned  height 
)

References __func__, err_capture(), EXT_STYLE, SEV_ERROR, scan_image::width, win_register_class(), WIN_STYLE, and zbar::ZBAR_ERR_WINAPI.

Here is the call graph for this function:

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

References scan_image::width.

int _zbar_processor_set_visible ( zbar_processor_t *  proc,
int  visible 
)
int _zbar_thread_start ( zbar_thread_t thr,
zbar_thread_proc_t proc,
void arg,
zbar_mutex_t lock 
)

References _zbar_event_destroy(), _zbar_event_init(), _zbar_event_wait(), zbar_thread_s::activity, zbar_thread_s::notify, zbar_thread_s::running, and zbar_thread_s::started.

Referenced by _zbar_event_trigger(), _zbar_video_open(), and zbar_processor_init().

Here is the call graph for this function:

Here is the caller graph for this function:

int _zbar_thread_stop ( zbar_thread_t thr,
zbar_mutex_t lock 
)
static LRESULT CALLBACK win_handle_event ( HWND  hwnd,
UINT  message,
WPARAM  wparam,
LPARAM  lparam 
)
static

References _zbar_processor_handle_input(), proc, zbar_window_attach(), zbar_window_redraw(), zbar_window_resize(), and zprintf.

Referenced by win_register_class().

Here is the call graph for this function:

Here is the caller graph for this function:

static int win_handle_events ( zbar_processor_t *  proc)
inlinestatic

References __func__, err_capture(), SEV_ERROR, and zbar::ZBAR_ERR_WINAPI.

Referenced by _zbar_processor_input_wait().

Here is the call graph for this function:

Here is the caller graph for this function:

static ATOM win_register_class ( HINSTANCE  hmod)
inlinestatic

References win_handle_event().

Referenced by _zbar_processor_open().

Here is the call graph for this function:

Here is the caller graph for this function: