zbar::Video Class Reference

mid-level video source abstraction. More...

List of all members.

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.


Detailed Description

mid-level video source abstraction.

captures images from a video device


Member Function Documentation

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

initialize video using a specific format for debug.

see zbar_video_init()

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

initialize video using a specific format for debug.

see zbar_video_init()

int zbar::Video::get_fd (  )  [inline]

retrieve file descriptor associated with open *nix video device.

see zbar_video_get_fd()

int zbar::Video::get_width (  )  [inline]

retrieve current output image width.

see zbar_video_get_width()

int zbar::Video::get_height (  )  [inline]

retrieve current output image height.

see zbar_video_get_height()

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

start/stop video capture.

see zbar_video_enable()

Image zbar::Video::next_image (  )  [inline]

retrieve next captured image.

see zbar_video_next_image()

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

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

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


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

SourceForge.net Logo
spadix@users.sourceforge.net

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.