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

Classes

struct  video_state_s
 

Macros

#define BIH_FIELDS(bih)
 
#define BIH_FMT
 
#define MAX_DRIVERS
 
#define MAX_NAME
 
#define VFW_NUM_FORMATS
 

Functions

int _zbar_video_open (zbar_video_t *vdo, const char *dev)
 
static ZTHREAD vfw_capture_thread (void *arg)
 
static int vfw_cleanup (zbar_video_t *vdo)
 
static zbar_image_t * vfw_dq (zbar_video_t *vdo)
 
static LRESULT CALLBACK vfw_error_cb (HWND hwnd, int errid, const char *errmsg)
 
static int vfw_init (zbar_video_t *vdo, uint32_t fmt)
 
static int vfw_nq (zbar_video_t *vdo, zbar_image_t *img)
 
static int vfw_probe (zbar_video_t *vdo)
 
static int vfw_probe_format (zbar_video_t *vdo, uint32_t fmt)
 
static int vfw_set_format (zbar_video_t *vdo, uint32_t fmt)
 
static int vfw_start (zbar_video_t *vdo)
 
static int vfw_stop (zbar_video_t *vdo)
 
static LRESULT CALLBACK vfw_stream_cb (HWND hwnd, VIDEOHDR *hdr)
 

Variables

static const uint32_t vfw_formats []
 

Macro Definition Documentation

#define BIH_FIELDS (   bih)
#define BIH_FMT
#define MAX_DRIVERS

Referenced by _zbar_video_open().

#define MAX_NAME

Referenced by _zbar_video_open().

#define VFW_NUM_FORMATS

Referenced by vfw_probe().

Function Documentation

int _zbar_video_open ( zbar_video_t *  vdo,
const char *  dev 
)
static ZTHREAD vfw_capture_thread ( void arg)
static
static int vfw_cleanup ( zbar_video_t *  vdo)
static

References _zbar_thread_stop(), video_state_s::captured, video_state_s::hwnd, and video_state_s::thread.

Referenced by vfw_probe().

Here is the call graph for this function:

Here is the caller graph for this function:

static zbar_image_t* vfw_dq ( zbar_video_t *  vdo)
static

References _zbar_mutex_lock, _zbar_mutex_unlock, and video_unlock().

Referenced by vfw_probe().

Here is the call graph for this function:

Here is the caller graph for this function:

static LRESULT CALLBACK vfw_error_cb ( HWND  hwnd,
int  errid,
const char *  errmsg 
)
static

References _zbar_mutex_lock, _zbar_mutex_unlock, and zprintf.

Referenced by vfw_init().

Here is the caller graph for this function:

static int vfw_init ( zbar_video_t *  vdo,
uint32_t  fmt 
)
static

References __func__, err_capture(), video_state_s::hwnd, SEV_ERROR, SEV_WARNING, vfw_error_cb(), vfw_set_format(), vfw_stream_cb(), VIDEO_MMAP, zbar::ZBAR_ERR_BUSY, zbar::ZBAR_ERR_WINAPI, and zprintf.

Referenced by vfw_probe().

Here is the call graph for this function:

Here is the caller graph for this function:

static int vfw_nq ( zbar_video_t *  vdo,
zbar_image_t *  img 
)
static

References video_nq_image().

Referenced by vfw_probe().

Here is the call graph for this function:

Here is the caller graph for this function:

static int vfw_probe_format ( zbar_video_t *  vdo,
uint32_t  fmt 
)
static
static int vfw_set_format ( zbar_video_t *  vdo,
uint32_t  fmt 
)
static
static int vfw_start ( zbar_video_t *  vdo)
static

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

Referenced by vfw_probe().

Here is the call graph for this function:

Here is the caller graph for this function:

static int vfw_stop ( zbar_video_t *  vdo)
static

References __func__, _zbar_mutex_lock, _zbar_mutex_unlock, video_state_s::captured, err_capture(), video_state_s::hwnd, video_state_s::image, SEV_ERROR, and zbar::ZBAR_ERR_INVALID.

Referenced by vfw_probe().

Here is the call graph for this function:

Here is the caller graph for this function:

static LRESULT CALLBACK vfw_stream_cb ( HWND  hwnd,
VIDEOHDR *  hdr 
)
static

References _zbar_mutex_lock, _zbar_mutex_unlock, and video_dq_image().

Referenced by vfw_init().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const uint32_t vfw_formats[]
static

Referenced by vfw_probe().