ZBar Bar Code Reader Library  version 0.10
v4l2.c File Reference

Macros

#define V4L2_FORMATS_MAX
 

Functions

int _zbar_v4l2_probe (zbar_video_t *vdo)
 
static int v4l2_cleanup (zbar_video_t *vdo)
 
static zbar_image_t * v4l2_dq (zbar_video_t *vdo)
 
static int v4l2_init (zbar_video_t *vdo, uint32_t fmt)
 
static int v4l2_mmap_buffers (zbar_video_t *vdo)
 
static int v4l2_nq (zbar_video_t *vdo, zbar_image_t *img)
 
static int v4l2_probe_formats (zbar_video_t *vdo)
 
static int v4l2_probe_iomode (zbar_video_t *vdo)
 
static int v4l2_reset_crop (zbar_video_t *vdo)
 
static int v4l2_set_format (zbar_video_t *vdo, uint32_t fmt)
 
static int v4l2_start (zbar_video_t *vdo)
 
static int v4l2_stop (zbar_video_t *vdo)
 

Macro Definition Documentation

#define V4L2_FORMATS_MAX

Referenced by v4l2_probe_formats().

Function Documentation

static int v4l2_cleanup ( zbar_video_t *  vdo)
static

References __func__, err_capture(), SEV_WARNING, VIDEO_MMAP, VIDEO_READWRITE, and zbar::ZBAR_ERR_SYSTEM.

Referenced by _zbar_v4l2_probe().

Here is the call graph for this function:

Here is the caller graph for this function:

static zbar_image_t* v4l2_dq ( zbar_video_t *  vdo)
static

References num_images, video_dq_image(), VIDEO_MMAP, VIDEO_READWRITE, video_unlock(), and zprintf.

Referenced by _zbar_v4l2_probe().

Here is the call graph for this function:

Here is the caller graph for this function:

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

References v4l2_mmap_buffers(), v4l2_set_format(), and VIDEO_MMAP.

Referenced by _zbar_v4l2_probe().

Here is the call graph for this function:

Here is the caller graph for this function:

static int v4l2_mmap_buffers ( zbar_video_t *  vdo)
static

References __func__, zbar_image_s::datalen, err_capture(), fprintf(), SEV_ERROR, zbar::ZBAR_ERR_INVALID, zbar::ZBAR_ERR_SYSTEM, and zprintf.

Referenced by v4l2_init().

Here is the call graph for this function:

Here is the caller graph for this function:

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

References __func__, err_capture(), SEV_ERROR, VIDEO_MMAP, video_nq_image(), VIDEO_READWRITE, video_unlock(), and zbar::ZBAR_ERR_SYSTEM.

Referenced by _zbar_v4l2_probe().

Here is the call graph for this function:

Here is the caller graph for this function:

static int v4l2_probe_formats ( zbar_video_t *  vdo)
inlinestatic

References __func__, err_capture(), SEV_ERROR, V4L2_FORMATS_MAX, zbar::ZBAR_ERR_SYSTEM, and zprintf.

Referenced by _zbar_v4l2_probe().

Here is the call graph for this function:

Here is the caller graph for this function:

static int v4l2_probe_iomode ( zbar_video_t *  vdo)
static

References __func__, err_capture(), err_capture_int(), SEV_ERROR, VIDEO_MMAP, VIDEO_USERPTR, zbar::ZBAR_ERR_INVALID, and zbar::ZBAR_ERR_SYSTEM.

Referenced by _zbar_v4l2_probe().

Here is the call graph for this function:

Here is the caller graph for this function:

static int v4l2_reset_crop ( zbar_video_t *  vdo)
inlinestatic

References __func__, err_capture(), SEV_ERROR, zbar::ZBAR_ERR_SYSTEM, and zprintf.

Referenced by _zbar_v4l2_probe().

Here is the call graph for this function:

Here is the caller graph for this function:

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

References __func__, err_capture(), err_capture_int(), SEV_ERROR, SEV_WARNING, zbar::ZBAR_ERR_INVALID, zbar::ZBAR_ERR_SYSTEM, and zprintf.

Referenced by v4l2_init().

Here is the call graph for this function:

Here is the caller graph for this function:

static int v4l2_start ( zbar_video_t *  vdo)
static

References __func__, err_capture(), SEV_ERROR, VIDEO_READWRITE, and zbar::ZBAR_ERR_SYSTEM.

Referenced by _zbar_v4l2_probe().

Here is the call graph for this function:

Here is the caller graph for this function:

static int v4l2_stop ( zbar_video_t *  vdo)
static

References __func__, err_capture(), SEV_ERROR, VIDEO_READWRITE, and zbar::ZBAR_ERR_SYSTEM.

Referenced by _zbar_v4l2_probe().

Here is the call graph for this function:

Here is the caller graph for this function: