#include <uvc_cam.h>
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 17 of file uvc_cam.cpp.
Cam::~Cam | ( | ) |
Definition at line 243 of file uvc_cam.cpp.
void Cam::enumerate | ( | ) | [static] |
Definition at line 261 of file uvc_cam.cpp.
int Cam::grab | ( | unsigned char ** | frame, |
uint32_t & | bytes_used | ||
) |
Definition at line 354 of file uvc_cam.cpp.
void Cam::release | ( | unsigned | buf_idx | ) |
Definition at line 437 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 444 of file uvc_cam.cpp.
void Cam::set_motion_thresholds | ( | int | lum, |
int | count | ||
) |
Definition at line 465 of file uvc_cam.cpp.
v4l2_buffer uvc_cam::Cam::buf [private] |
unsigned uvc_cam::Cam::buf_length [private] |
v4l2_capability uvc_cam::Cam::cap [private] |
std::string uvc_cam::Cam::device [private] |
int uvc_cam::Cam::fd [private] |
v4l2_format uvc_cam::Cam::fmt [private] |
unsigned uvc_cam::Cam::fps [private] |
unsigned uvc_cam::Cam::height [private] |
unsigned char * uvc_cam::Cam::last_yuv_frame [private] |
void* uvc_cam::Cam::mem[NUM_BUFFER] [private] |
int uvc_cam::Cam::motion_threshold_count [private] |
int uvc_cam::Cam::motion_threshold_luminance [private] |
const unsigned uvc_cam::Cam::NUM_BUFFER = 2 [static, private] |
v4l2_requestbuffers uvc_cam::Cam::rb [private] |
unsigned char* uvc_cam::Cam::rgb_frame [private] |
v4l2_streamparm uvc_cam::Cam::streamparm [private] |
v4l2_timecode uvc_cam::Cam::timecode [private] |
CSU32 uvc_cam::Cam::UVC_CTRL_DATA_TYPE_BITMASK = 5 [private] |
CSU32 uvc_cam::Cam::UVC_CTRL_DATA_TYPE_BOOLEAN = 3 [private] |
CSU32 uvc_cam::Cam::UVC_CTRL_DATA_TYPE_ENUM = 4 [private] |
CSU32 uvc_cam::Cam::UVC_CTRL_DATA_TYPE_RAW = 0 [private] |
CSU32 uvc_cam::Cam::UVC_CTRL_DATA_TYPE_SIGNED = 1 [private] |
CSU32 uvc_cam::Cam::UVC_CTRL_DATA_TYPE_UNSIGNED = 2 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_BACKLIGHT_COMPENSATION_NEW = V4L2_CID_BASE_NEW + 28 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_BASE_EXTCTR = 0x0A046D01 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_BASE_NEW = V4L2_CTRL_CLASS_USER_NEW | 0x900 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_CAMERA_CLASS_BASE_NEW = V4L2_CTRL_CLASS_CAMERA_NEW | 0x900 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_CAMERA_CLASS_LAST = V4L2_CID_CAMERA_CLASS_BASE_NEW + 13 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_DISABLE_PROCESSING_LOGITECH = V4L2_CID_BASE_LOGITECH + 0x70 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_EXPOSURE_ABSOLUTE_OLD = V4L2_CID_PRIVATE_BASE_OLD + 11 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_EXPOSURE_AUTO_OLD = V4L2_CID_PRIVATE_BASE_OLD + 10 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_FOCUS_ABSOLUTE_NEW = V4L2_CID_CAMERA_CLASS_BASE_NEW + 10 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_FOCUS_ABSOLUTE_OLD = V4L2_CID_PRIVATE_BASE_OLD + 5 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_FOCUS_AUTO_NEW = V4L2_CID_CAMERA_CLASS_BASE_NEW + 12 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_FOCUS_AUTO_OLD = V4L2_CID_PRIVATE_BASE_OLD + 4 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_FOCUS_LOGITECH = V4L2_CID_BASE_LOGITECH + 3 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_FOCUS_RELATIVE_NEW = V4L2_CID_CAMERA_CLASS_BASE_NEW + 11 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_FOCUS_RELATIVE_OLD = V4L2_CID_PRIVATE_BASE_OLD + 6 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_HUE_AUTO_NEW = V4L2_CID_BASE_NEW + 25 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_HUE_AUTO_OLD = V4L2_CID_PRIVATE_BASE_OLD + 3 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_LAST_NEW = V4L2_CID_BASE_NEW + 29 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_LED1_MODE_LOGITECH = V4L2_CID_BASE_LOGITECH + 4 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_PAN_RELATIVE_OLD = V4L2_CID_PRIVATE_BASE_OLD + 7 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_PAN_RESET_NEW = V4L2_CID_CAMERA_CLASS_BASE_NEW + 6 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_PANTILT_RESET_LOGITECH = V4L2_CID_BASE_LOGITECH + 2 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_PANTILT_RESET_OLD = V4L2_CID_PRIVATE_BASE_OLD + 9 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_POWER_LINE_FREQUENCY_NEW = V4L2_CID_BASE_NEW + 24 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_PRIVATE_BASE_OLD = 0x08000000 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_PRIVATE_LAST = V4L2_CID_WHITE_BALANCE_TEMP_OLD + 1 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_RAW_BITS_PER_PIXEL_LOGITECH = V4L2_CID_BASE_LOGITECH + 0x71 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_SHARPNESS_NEW = V4L2_CID_BASE_NEW + 27 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_SHARPNESS_OLD = V4L2_CID_PRIVATE_BASE_OLD + 2 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_TILT_RELATIVE_OLD = V4L2_CID_PRIVATE_BASE_OLD + 8 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_TILT_RESET_NEW = V4L2_CID_CAMERA_CLASS_BASE_NEW + 7 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_WHITE_BALANCE_TEMP_OLD = V4L2_CID_PRIVATE_BASE_OLD + 13 [private] |
CSU32 uvc_cam::Cam::V4L2_CID_WHITE_BALANCE_TEMPERATURE_NEW = V4L2_CID_BASE_NEW + 26 [private] |
CSU32 uvc_cam::Cam::V4L2_CTRL_CLASS_CAMERA_NEW = 0x009A0000 [private] |
CSU32 uvc_cam::Cam::V4L2_CTRL_CLASS_USER_NEW = 0x00980000 [private] |
unsigned uvc_cam::Cam::width [private] |