#include <uvc_cam.h>
Public Types | |
| enum | mode_t { MODE_RGB, MODE_MJPG, MODE_YUYV } |
Public Member Functions | |
| Cam (const char *device, mode_t _mode=MODE_RGB, int _width=640, int _height=480, int _fps=30) | |
| int | grab (unsigned char **frame, uint32_t &bytes_used) |
| void | release (unsigned buf_idx) |
| bool | set_auto_white_balance (bool on) |
| void | set_control (uint32_t id, int val) |
| void | set_motion_thresholds (int lum, int count) |
| bool | set_v4l2_control (int id, int value, const std::string &name) |
| bool | v4l2_query (int id, const std::string &name) |
| ~Cam () | |
Static Public Member Functions | |
| static void | enumerate () |
Public Attributes | |
| enum uvc_cam::Cam::mode_t | mode |
Static Private Attributes | |
| static const unsigned | NUM_BUFFER = 2 |
| enum uvc_cam::Cam::mode_t |
| Cam::Cam | ( | const char * | device, |
| mode_t | _mode = MODE_RGB, |
||
| int | _width = 640, |
||
| int | _height = 480, |
||
| int | _fps = 30 |
||
| ) |
Definition at line 21 of file uvc_cam.cpp.
| Cam::~Cam | ( | ) |
Definition at line 222 of file uvc_cam.cpp.
|
static |
Definition at line 240 of file uvc_cam.cpp.
| int Cam::grab | ( | unsigned char ** | frame, |
| uint32_t & | bytes_used | ||
| ) |
Definition at line 333 of file uvc_cam.cpp.
| void Cam::release | ( | unsigned | buf_idx | ) |
Definition at line 416 of file uvc_cam.cpp.
| bool uvc_cam::Cam::set_auto_white_balance | ( | bool | on | ) |
| void Cam::set_control | ( | uint32_t | id, |
| int | val | ||
| ) |
Definition at line 471 of file uvc_cam.cpp.
| void Cam::set_motion_thresholds | ( | int | lum, |
| int | count | ||
| ) |
Definition at line 492 of file uvc_cam.cpp.
| bool Cam::set_v4l2_control | ( | int | id, |
| int | value, | ||
| const std::string & | name | ||
| ) |
Definition at line 447 of file uvc_cam.cpp.
| bool Cam::v4l2_query | ( | int | id, |
| const std::string & | name | ||
| ) |
Definition at line 424 of file uvc_cam.cpp.
|
private |
| enum uvc_cam::Cam::mode_t uvc_cam::Cam::mode |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |