v4l2 camera abstraction
More...
#include <uvc.h>
|
static const int | ERROR = 1 |
|
static const int | LOAD = 1 |
|
static const int | NA = 0 |
|
static const int | OK = 0 |
|
static const int | SAVE = 2 |
|
v4l2 camera abstraction
Definition at line 40 of file uvc.h.
Definition at line 71 of file uvc.h.
Definition at line 48 of file uvc.h.
Definition at line 49 of file uvc.h.
construtor
Definition at line 58 of file uvc.cpp.
detects the supporting v4l controls of the device
- Returns
- controls
Definition at line 352 of file uvc.cpp.
destructor
grabs the next image from the butter
- Returns
- false on an error or problem
Definition at line 105 of file uvc.cpp.
bool V4RCam::hasErrorMsg |
( |
| ) |
const |
- Returns
- to if there are whaiting error messages
Definition at line 344 of file uvc.cpp.
bool V4RCam::hasInfoMsg |
( |
| ) |
const |
- Returns
- to if there are whaiting info messages
Definition at line 348 of file uvc.cpp.
V4RCam::FD V4RCam::initCamera |
( |
const std::string & |
videoDevice = "" | ) |
|
vector of the current supported control entries
Initializedes a video device
- Parameters
-
videoDevice | like /dev/video0 |
- Returns
- fd to the video device (integer) usabel for v4l2_ioctl calles
Definition at line 80 of file uvc.cpp.
bool V4RCam::isBlackListed |
( |
int |
control | ) |
|
check if a control is backlisted
- Parameters
-
- Returns
- true if it is backlisted
int V4RCam::load_controls |
( |
const std::string & |
filename | ) |
|
std::string V4RCam::pullErrorMsg |
( |
| ) |
|
- Returns
- error messages
Definition at line 332 of file uvc.cpp.
std::string V4RCam::pullInfoMsg |
( |
| ) |
|
- Returns
- info messages
Definition at line 338 of file uvc.cpp.
char V4RCam::removeNonAlNum |
( |
char |
in | ) |
|
|
static |
int V4RCam::save_controls |
( |
const std::string & |
filename | ) |
|
reads a control entry and stores the value into entry.currentValue
- Parameters
-
- Returns
- error >= 1, ok = 0 details are written into entry.error_msg and entry.info_msg
- Precondition
- v4lgetInfo must be called at least one befor with this control instance
Definition at line 161 of file uvc.cpp.
v4lcontrols
Delivers info to a control entry
- Parameters
-
- Returns
- error >= 1, ok = 0 details are written into entry.error_msg and entry.info_msg
Definition at line 128 of file uvc.cpp.
sets a control entry using entry.targetValue
- Parameters
-
- Returns
- error >= 1, ok = 0 details are written into entry.error_msg and entry.info_msg
- Precondition
- v4lgetInfo must be called at least one befor with this control instance
Definition at line 181 of file uvc.cpp.
updates a control entry using entry.targetValue it also checks control min, max, stepsize it also verifies the written data by reading the value again into entry.currentValue
- Parameters
-
- Returns
- error >= 1, ok = 0 details are written into entry.error_msg and entry.info_msg
- Precondition
- v4lgetInfo must be called at least one befor with this control instance
Definition at line 200 of file uvc.cpp.
std::string V4RCam::aviFilename_ |
|
protected |
device name /dev/videoX
Definition at line 82 of file uvc.h.
mutex to secure critical sections
Definition at line 91 of file uvc.h.
double V4RCam::durationLastFrame_ |
|
protected |
time stamp of the last frame
Definition at line 89 of file uvc.h.
const int V4RCam::ERROR = 1 |
|
static |
Definition at line 44 of file uvc.h.
std::stringstream V4RCam::error_msg_ |
|
protected |
not supported yet
Definition at line 83 of file uvc.h.
image height
Definition at line 87 of file uvc.h.
image formate
Definition at line 84 of file uvc.h.
image width
Definition at line 86 of file uvc.h.
std::stringstream V4RCam::info_msg_ |
|
protected |
const int V4RCam::LOAD = 1 |
|
static |
Definition at line 46 of file uvc.h.
boost::interprocess::interprocess_mutex V4RCam::mutexImage_ |
|
protected |
duration between last and the frame before the last one
Definition at line 90 of file uvc.h.
Definition at line 45 of file uvc.h.
Definition at line 43 of file uvc.h.
Definition at line 80 of file uvc.h.
const int V4RCam::SAVE = 2 |
|
static |
Definition at line 47 of file uvc.h.
timeval V4RCam::timeLastFrame_ |
|
protected |
frames per second
Definition at line 88 of file uvc.h.
std::string V4RCam::videoDevice_ |
|
protected |
pointer to the v4l2 device
Definition at line 81 of file uvc.h.
- See also
- v4l2 lib for more information
Definition at line 85 of file uvc.h.
The documentation for this class was generated from the following files: