ZBar Bar Code Reader Library  version 0.10
zbar::Video Class Reference

mid-level video source abstraction. More...

Collaboration diagram for zbar::Video:

Public Member Functions

 Video (zbar_video_t *video=NULL)
 constructor. More...
 
 Video (std::string &device)
 constructor. More...
 
 ~Video ()
 
void close ()
 close video device if open. More...
 
void enable (bool enable=true)
 start/stop video capture. More...
 
int get_fd ()
 retrieve file descriptor associated with open *nix video device. More...
 
int get_height ()
 retrieve current output image height. More...
 
int get_width ()
 retrieve current output image width. More...
 
void init (unsigned long fourcc)
 initialize video using a specific format for debug. More...
 
void init (std::string &format)
 initialize video using a specific format for debug. More...
 
Image next_image ()
 retrieve next captured image. More...
 
void open (std::string &device)
 open and probe a video device. More...
 
 operator zbar_video_t * () const
 cast to C video object. More...
 
void request_interface (int version)
 request a preferred driver interface version for debug/testing. More...
 
void request_iomode (int iomode)
 request a preferred I/O mode for debug/testing. More...
 
void request_size (int width, int height)
 request a preferred size for the video image from the device. More...
 

Private Attributes

zbar_video_t_video
 

Detailed Description

mid-level video source abstraction.

captures images from a video device

Constructor & Destructor Documentation

zbar::Video::Video ( zbar_video_t video = NULL)
inline

constructor.

References _video, video, and zbar::zbar_video_create().

Here is the call graph for this function:

zbar::Video::Video ( std::string &  device)
inline

constructor.

References _video, open(), and zbar::zbar_video_create().

Here is the call graph for this function:

zbar::Video::~Video ( )
inline

References _video, and zbar::zbar_video_destroy().

Here is the call graph for this function:

Member Function Documentation

void zbar::Video::close ( )
inline

close video device if open.

References _video, zbar::throw_exception(), and zbar::zbar_video_open().

Here is the call graph for this function:

void zbar::Video::enable ( bool  enable = true)
inline

start/stop video capture.

see zbar_video_enable()

References _video, zbar::throw_exception(), and zbar::zbar_video_enable().

Referenced by zbar::QZBarThread::enableVideo().

Here is the call graph for this function:

Here is the caller graph for this function:

int zbar::Video::get_fd ( )
inline

retrieve file descriptor associated with open *nix video device.

see zbar_video_get_fd()

References _video, and zbar::zbar_video_get_fd().

Here is the call graph for this function:

int zbar::Video::get_height ( )
inline

retrieve current output image height.

see zbar_video_get_height()

References _video, and zbar::zbar_video_get_height().

Referenced by zbar::QZBarThread::openVideo().

Here is the call graph for this function:

Here is the caller graph for this function:

int zbar::Video::get_width ( )
inline

retrieve current output image width.

see zbar_video_get_width()

References _video, and zbar::zbar_video_get_width().

Referenced by zbar::QZBarThread::openVideo().

Here is the call graph for this function:

Here is the caller graph for this function:

void zbar::Video::init ( unsigned long  fourcc)
inline

initialize video using a specific format for debug.

see zbar_video_init()

References _video, zbar::throw_exception(), and zbar::zbar_video_init().

Here is the call graph for this function:

void zbar::Video::init ( std::string &  format)
inline

initialize video using a specific format for debug.

see zbar_video_init()

References _video, fourcc, zbar::throw_exception(), and zbar::zbar_video_init().

Here is the call graph for this function:

Image zbar::Video::next_image ( )
inline

retrieve next captured image.

see zbar_video_next_image()

References _video, zbar::throw_exception(), and zbar::zbar_video_next_image().

Referenced by zbar::QZBarThread::run().

Here is the call graph for this function:

Here is the caller graph for this function:

void zbar::Video::open ( std::string &  device)
inline

open and probe a video device.

References _video, zbar::throw_exception(), and zbar::zbar_video_open().

Referenced by Video().

Here is the call graph for this function:

Here is the caller graph for this function:

zbar::Video::operator zbar_video_t * ( ) const
inline

cast to C video object.

References _video.

void zbar::Video::request_interface ( int  version)
inline

request a preferred driver interface version for debug/testing.

see zbar_video_request_interface()

Since
0.6

References _video, and zbar::zbar_video_request_interface().

Here is the call graph for this function:

void zbar::Video::request_iomode ( int  iomode)
inline

request a preferred I/O mode for debug/testing.

see zbar_video_request_iomode()

Since
0.7

References _video, zbar::throw_exception(), and zbar::zbar_video_request_iomode().

Here is the call graph for this function:

void zbar::Video::request_size ( int  width,
int  height 
)
inline

request a preferred size for the video image from the device.

see zbar_video_request_size()

Since
0.6

References _video, and zbar::zbar_video_request_size().

Here is the call graph for this function:

Member Data Documentation


The documentation for this class was generated from the following file: