mid-level video source abstraction. More...
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 |
mid-level video source abstraction.
captures images from a video device
|
inline |
constructor.
References _video, video, and zbar::zbar_video_create().
|
inline |
constructor.
References _video, open(), and zbar::zbar_video_create().
|
inline |
|
inline |
close video device if open.
References _video, zbar::throw_exception(), and zbar::zbar_video_open().
|
inline |
start/stop video capture.
References _video, zbar::throw_exception(), and zbar::zbar_video_enable().
Referenced by zbar::QZBarThread::enableVideo().
|
inline |
retrieve file descriptor associated with open *nix video device.
References _video, and zbar::zbar_video_get_fd().
|
inline |
retrieve current output image height.
References _video, and zbar::zbar_video_get_height().
Referenced by zbar::QZBarThread::openVideo().
|
inline |
retrieve current output image width.
References _video, and zbar::zbar_video_get_width().
Referenced by zbar::QZBarThread::openVideo().
|
inline |
initialize video using a specific format for debug.
References _video, zbar::throw_exception(), and zbar::zbar_video_init().
|
inline |
initialize video using a specific format for debug.
References _video, fourcc, zbar::throw_exception(), and zbar::zbar_video_init().
|
inline |
retrieve next captured image.
References _video, zbar::throw_exception(), and zbar::zbar_video_next_image().
Referenced by zbar::QZBarThread::run().
|
inline |
open and probe a video device.
References _video, zbar::throw_exception(), and zbar::zbar_video_open().
Referenced by Video().
|
inline |
cast to C video object.
References _video.
|
inline |
request a preferred driver interface version for debug/testing.
see zbar_video_request_interface()
References _video, and zbar::zbar_video_request_interface().
|
inline |
request a preferred I/O mode for debug/testing.
see zbar_video_request_iomode()
References _video, zbar::throw_exception(), and zbar::zbar_video_request_iomode().
|
inline |
request a preferred size for the video image from the device.
References _video, and zbar::zbar_video_request_size().
|
private |
Referenced by close(), enable(), get_fd(), get_height(), get_width(), init(), next_image(), open(), operator zbar_video_t *(), request_interface(), request_iomode(), request_size(), Video(), and ~Video().