Enumerator |
---|
VideoDevice |
|
VideoEnabled |
|
ScanImage |
|
Exit |
|
QZBarThread::QZBarThread |
( |
| ) |
|
void zbar::QZBarThread::clear |
( |
| ) |
|
|
inlineprotected |
void zbar::QZBarThread::decoded |
( |
int |
type, |
|
|
const QString & |
data |
|
) |
| |
|
signal |
void zbar::QZBarThread::decodedText |
( |
const QString & |
data | ) |
|
|
signal |
void QZBarThread::enableVideo |
( |
bool |
enable | ) |
|
|
protected |
References clear(), zbar::Video::enable(), zbar::ImageScanner::enable_cache(), scanner, update(), video, videoEnabled, and videoRunning.
Referenced by event(), openVideo(), pushEvent(), run(), scanImageEvent(), and videoEnabledEvent().
bool QZBarThread::event |
( |
QEvent * |
e | ) |
|
|
protectedvirtual |
References enableVideo(), Exit, running, ScanImage, scanImageEvent(), VideoDevice, videoDeviceEvent(), VideoEnabled, videoEnabledEvent(), and videoRunning.
Referenced by clear(), and run().
void QZBarThread::image_callback |
( |
Image & |
image | ) |
|
|
protectedvirtual |
void QZBarThread::openVideo |
( |
const QString & |
device | ) |
|
|
protected |
References _videoOpened, clear(), DEFAULT_HEIGHT, DEFAULT_WIDTH, enableVideo(), zbar::Video::get_height(), zbar::Video::get_width(), mutex, zbar::negotiate_format(), reqHeight, reqWidth, update(), video, videoEnabled, videoOpened(), videoRunning, and window.
Referenced by pushEvent(), run(), and videoDeviceEvent().
void QZBarThread::processImage |
( |
Image & |
image | ) |
|
|
protected |
References zbar::Image::convert(), zbar::Window::draw(), zbar::Image::get_symbols(), image, zbar::ImageScanner::recycle_image(), zbar::ImageScanner::scan(), scanner, zbar::Image::set_symbols(), update(), and window.
Referenced by pushEvent(), run(), and scanImageEvent().
References test_zbar::data, decoded(), decodedText(), zbar::QZBarThread::VideoDeviceEvent::device, enableVideo(), image, openVideo(), processImage(), run(), update(), and videoOpened().
Referenced by zbar::QZBar::attach(), zbar::QZBar::scanImage(), zbar::QZBar::setVideoDevice(), zbar::QZBar::setVideoEnabled(), and zbar::QZBar::~QZBar().
void QZBarThread::run |
( |
| ) |
|
|
protected |
References clear(), enableVideo(), event(), image, mutex, newEvent, zbar::Video::next_image(), openVideo(), processImage(), queue, running, video, videoEnabled, and videoRunning.
Referenced by pushEvent().
void zbar::QZBarThread::update |
( |
| ) |
|
|
signal |
void zbar::QZBarThread::videoOpened |
( |
bool |
opened | ) |
|
|
signal |
bool zbar::QZBarThread::_videoOpened |
QMutex zbar::QZBarThread::mutex |
QWaitCondition zbar::QZBarThread::newEvent |
QList<QEvent*> zbar::QZBarThread::queue |
unsigned zbar::QZBarThread::reqHeight |
unsigned zbar::QZBarThread::reqWidth |
bool zbar::QZBarThread::running |
|
private |
Video* zbar::QZBarThread::video |
|
private |
bool zbar::QZBarThread::videoEnabled |
|
private |
bool zbar::QZBarThread::videoRunning |
|
private |
Window zbar::QZBarThread::window |
The documentation for this class was generated from the following files: