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

Functions

static void _zbar_video_recycle_image (zbar_image_t *img)
 
static void _zbar_video_recycle_shadow (zbar_image_t *img)
 
static int video_init_images (zbar_video_t *vdo)
 
zbar_video_t * zbar_video_create ()
 constructor. More...
 
void zbar_video_destroy (zbar_video_t *vdo)
 
int zbar_video_enable (zbar_video_t *vdo, int enable)
 
int zbar_video_get_fd (const zbar_video_t *vdo)
 
uint32_t zbar_video_get_format (const zbar_video_t *vdo)
 
int zbar_video_get_height (const zbar_video_t *vdo)
 
int zbar_video_get_width (const zbar_video_t *vdo)
 
int zbar_video_init (zbar_video_t *vdo, unsigned long fmt)
 
zbar_image_t * zbar_video_next_image (zbar_video_t *vdo)
 
int zbar_video_open (zbar_video_t *vdo, const char *dev)
 
int zbar_video_request_interface (zbar_video_t *vdo, int ver)
 
int zbar_video_request_iomode (zbar_video_t *vdo, int iomode)
 
int zbar_video_request_size (zbar_video_t *vdo, unsigned width, unsigned height)
 

Function Documentation

static void _zbar_video_recycle_image ( zbar_image_t *  img)
static

References video_lock(), and video_unlock().

Referenced by zbar_video_create(), and zbar_video_next_image().

Here is the call graph for this function:

Here is the caller graph for this function:

static void _zbar_video_recycle_shadow ( zbar_image_t *  img)
static

References video_lock(), and video_unlock().

Referenced by zbar_video_next_image().

Here is the call graph for this function:

Here is the caller graph for this function:

static int video_init_images ( zbar_video_t *  vdo)
inlinestatic

References __func__, err_capture(), zbar_image_s::format, SEV_FATAL, VIDEO_MMAP, VIDEO_READWRITE, zbar::ZBAR_ERR_NOMEM, and zprintf.

Referenced by zbar_video_init().

Here is the call graph for this function:

Here is the caller graph for this function:

zbar_video_t* zbar_video_create ( void  )

constructor.

References _zbar_mutex_init, _zbar_video_recycle_image(), err_init(), void, zbar_image_create(), ZBAR_MOD_VIDEO, zbar_video_destroy(), and ZBAR_VIDEO_IMAGES_MAX.

Referenced by main(), zbar::Video::Video(), zbar_gtk_video_open(), and zbar_processor_init().

Here is the call graph for this function:

Here is the caller graph for this function:

void zbar_video_destroy ( zbar_video_t *  vdo)
int zbar_video_enable ( zbar_video_t *  vdo,
int  enable 
)

References __func__, err_capture(), SEV_ERROR, VIDEO_INVALID, video_lock(), video_unlock(), zbar::ZBAR_ERR_INVALID, and zbar_negotiate_format().

Referenced by main(), zbar_gtk_processing_thread(), zbar_processor_set_active(), and zbar_video_open().

Here is the call graph for this function:

Here is the caller graph for this function:

int zbar_video_get_fd ( const zbar_video_t *  vdo)

References __func__, err_capture(), SEV_ERROR, SEV_WARNING, VIDEO_INVALID, VIDEO_V4L2, zbar::ZBAR_ERR_INVALID, and zbar::ZBAR_ERR_UNSUPPORTED.

Referenced by _zbar_processor_enable(), main(), proc_wait_unthreaded(), and zbar_processor_init().

Here is the call graph for this function:

Here is the caller graph for this function:

uint32_t zbar_video_get_format ( const zbar_video_t *  vdo)
int zbar_video_get_height ( const zbar_video_t *  vdo)

Referenced by proc_open(), zbar_gtk_video_open(), and zbar_processor_set_visible().

Here is the caller graph for this function:

int zbar_video_get_width ( const zbar_video_t *  vdo)

Referenced by proc_open(), zbar_gtk_video_open(), and zbar_processor_set_visible().

Here is the caller graph for this function:

int zbar_video_init ( zbar_video_t *  vdo,
unsigned long  fmt 
)
zbar_image_t* zbar_video_next_image ( zbar_video_t *  vdo)
int zbar_video_open ( zbar_video_t *  vdo,
const char *  dev 
)

References _zbar_video_open(), VIDEO_INVALID, video_lock(), video_unlock(), zbar_video_enable(), and zprintf.

Referenced by main(), zbar_gtk_video_open(), zbar_processor_init(), and zbar_video_destroy().

Here is the call graph for this function:

Here is the caller graph for this function:

int zbar_video_request_interface ( zbar_video_t *  vdo,
int  ver 
)

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

Referenced by zbar_processor_init().

Here is the call graph for this function:

Here is the caller graph for this function:

int zbar_video_request_iomode ( zbar_video_t *  vdo,
int  iomode 
)

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

Referenced by zbar_processor_init().

Here is the call graph for this function:

Here is the caller graph for this function:

int zbar_video_request_size ( zbar_video_t *  vdo,
unsigned  width,
unsigned  height 
)

References __func__, err_capture(), scan_image::height, SEV_ERROR, scan_image::width, zbar::ZBAR_ERR_INVALID, and zprintf.

Referenced by main(), and zbar_processor_init().

Here is the call graph for this function:

Here is the caller graph for this function: