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

Classes

struct  v4l1_format_s
 

Typedefs

typedef struct v4l1_format_s v4l1_format_t
 

Functions

static int _zbar_v4l1_probe (zbar_video_t *vdo)
 
int _zbar_v4l2_probe (zbar_video_t *)
 
int _zbar_video_open (zbar_video_t *vdo, const char *dev)
 
static int v4l1_cleanup (zbar_video_t *vdo)
 
static zbar_image_t * v4l1_dq (zbar_video_t *vdo)
 
static int v4l1_init (zbar_video_t *vdo, uint32_t fmt)
 
static int v4l1_init_window (zbar_video_t *vdo)
 
static int v4l1_mmap_buffers (zbar_video_t *vdo)
 
static int v4l1_nq (zbar_video_t *vdo, zbar_image_t *img)
 
static int v4l1_probe_formats (zbar_video_t *vdo)
 
static int v4l1_probe_iomode (zbar_video_t *vdo)
 
static int v4l1_set_format (zbar_video_t *vdo, uint32_t fmt)
 
static int v4l1_start (zbar_video_t *vdo)
 
static int v4l1_stop (zbar_video_t *vdo)
 

Variables

static const v4l1_format_t v4l1_formats [17]
 

Typedef Documentation

typedef struct v4l1_format_s v4l1_format_t

Function Documentation

static int _zbar_v4l1_probe ( zbar_video_t *  vdo)
static
int _zbar_video_open ( zbar_video_t *  vdo,
const char *  dev 
)

References __func__, _zbar_v4l1_probe(), _zbar_v4l2_probe(), err_capture_str(), SEV_ERROR, VIDEO_V4L1, zbar::ZBAR_ERR_SYSTEM, and zprintf.

Here is the call graph for this function:

static int v4l1_cleanup ( zbar_video_t *  vdo)
static

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

Referenced by _zbar_v4l1_probe().

Here is the call graph for this function:

Here is the caller graph for this function:

static zbar_image_t* v4l1_dq ( zbar_video_t *  vdo)
static

References video_dq_image(), and VIDEO_MMAP.

Referenced by _zbar_v4l1_probe().

Here is the call graph for this function:

Here is the caller graph for this function:

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

References v4l1_mmap_buffers(), v4l1_set_format(), and VIDEO_MMAP.

Referenced by _zbar_v4l1_probe().

Here is the call graph for this function:

Here is the caller graph for this function:

static int v4l1_init_window ( zbar_video_t *  vdo)
inlinestatic

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

Referenced by _zbar_v4l1_probe().

Here is the call graph for this function:

Here is the caller graph for this function:

static int v4l1_mmap_buffers ( zbar_video_t *  vdo)
static

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

Referenced by v4l1_init().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Referenced by _zbar_v4l1_probe().

Here is the call graph for this function:

Here is the caller graph for this function:

static int v4l1_probe_formats ( zbar_video_t *  vdo)
inlinestatic

References __func__, v4l1_format_s::bpp, err_capture(), v4l1_format_s::format, SEV_ERROR, SEV_FATAL, v4l1_set_format(), zbar::ZBAR_ERR_NOMEM, zbar::ZBAR_ERR_SYSTEM, and zprintf.

Referenced by _zbar_v4l1_probe().

Here is the call graph for this function:

Here is the caller graph for this function:

static int v4l1_probe_iomode ( zbar_video_t *  vdo)
static

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

Referenced by _zbar_v4l1_probe().

Here is the call graph for this function:

Here is the caller graph for this function:

static int v4l1_set_format ( zbar_video_t *  vdo,
uint32_t  fmt 
)
inlinestatic

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

Referenced by v4l1_init(), and v4l1_probe_formats().

Here is the call graph for this function:

Here is the caller graph for this function:

static int v4l1_start ( zbar_video_t *  vdo)
static

Referenced by _zbar_v4l1_probe().

Here is the caller graph for this function:

static int v4l1_stop ( zbar_video_t *  vdo)
static

Referenced by _zbar_v4l1_probe().

Here is the caller graph for this function:

Variable Documentation

const v4l1_format_t v4l1_formats[17]
static