Public Member Functions | |
Video (zbar_video_t *video=NULL) | |
constructor. | |
Video (std::string &device) | |
constructor. | |
operator zbar_video_t * () const | |
cast to C video object. | |
void | open (std::string &device) |
open and probe a video device. | |
void | close () |
close video device if open. | |
void | init (unsigned long fourcc) |
initialize video using a specific format for debug. | |
void | init (std::string &format) |
initialize video using a specific format for debug. | |
int | get_fd () |
retrieve file descriptor associated with open *nix video device. | |
int | get_width () |
retrieve current output image width. | |
int | get_height () |
retrieve current output image height. | |
void | enable (bool enable=true) |
start/stop video capture. | |
Image | next_image () |
retrieve next captured image. | |
void | request_size (int width, int height) |
request a preferred size for the video image from the device. | |
void | request_interface (int version) |
request a preferred driver interface version for debug/testing. | |
void | request_iomode (int iomode) |
request a preferred I/O mode for debug/testing. |
captures images from a video device
void zbar::Video::init | ( | unsigned long | fourcc | ) | [inline] |
initialize video using a specific format for debug.
void zbar::Video::init | ( | std::string & | format | ) | [inline] |
initialize video using a specific format for debug.
int zbar::Video::get_fd | ( | ) | [inline] |
retrieve file descriptor associated with open *nix video device.
int zbar::Video::get_width | ( | ) | [inline] |
retrieve current output image width.
int zbar::Video::get_height | ( | ) | [inline] |
retrieve current output image height.
void zbar::Video::enable | ( | bool | enable = true |
) | [inline] |
start/stop video capture.
Image zbar::Video::next_image | ( | ) | [inline] |
retrieve next captured image.
void zbar::Video::request_size | ( | int | width, | |
int | height | |||
) | [inline] |
request a preferred size for the video image from the device.
void zbar::Video::request_interface | ( | int | version | ) | [inline] |
request a preferred driver interface version for debug/testing.
see zbar_video_request_interface()
void zbar::Video::request_iomode | ( | int | iomode | ) | [inline] |
Copyright 2008-2010 (c) Jeff Brown
This documentation is part of the ZBar Barcode Reader; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.