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 |
Private Attributes |
v4l2_buffer | buf |
unsigned | buf_length |
v4l2_capability | cap |
std::string | device |
int | fd |
v4l2_format | fmt |
unsigned | fps |
unsigned | height |
unsigned char * | last_yuv_frame |
void * | mem [NUM_BUFFER] |
int | motion_threshold_count |
int | motion_threshold_luminance |
v4l2_requestbuffers | rb |
unsigned char * | rgb_frame |
v4l2_streamparm | streamparm |
v4l2_timecode | timecode |
CSU32 | UVC_CTRL_DATA_TYPE_BITMASK = 5 |
CSU32 | UVC_CTRL_DATA_TYPE_BOOLEAN = 3 |
CSU32 | UVC_CTRL_DATA_TYPE_ENUM = 4 |
CSU32 | UVC_CTRL_DATA_TYPE_RAW = 0 |
CSU32 | UVC_CTRL_DATA_TYPE_SIGNED = 1 |
CSU32 | UVC_CTRL_DATA_TYPE_UNSIGNED = 2 |
CSU32 | V4L2_CID_BACKLIGHT_COMPENSATION_NEW = V4L2_CID_BASE_NEW + 28 |
CSU32 | V4L2_CID_BACKLIGHT_COMPENSATION_OLD = V4L2_CID_PRIVATE_BASE_OLD + 0 |
CSU32 | V4L2_CID_BASE_EXTCTR = 0x0A046D01 |
CSU32 | V4L2_CID_BASE_LOGITECH = V4L2_CID_BASE_EXTCTR |
CSU32 | V4L2_CID_BASE_NEW = V4L2_CTRL_CLASS_USER_NEW | 0x900 |
CSU32 | V4L2_CID_CAMERA_CLASS_BASE_NEW = V4L2_CTRL_CLASS_CAMERA_NEW | 0x900 |
CSU32 | V4L2_CID_CAMERA_CLASS_LAST = V4L2_CID_CAMERA_CLASS_BASE_NEW + 13 |
CSU32 | V4L2_CID_DISABLE_PROCESSING_LOGITECH = V4L2_CID_BASE_LOGITECH + 0x70 |
CSU32 | V4L2_CID_EXPOSURE_ABSOLUTE_NEW = V4L2_CID_CAMERA_CLASS_BASE_NEW + 2 |
CSU32 | V4L2_CID_EXPOSURE_ABSOLUTE_OLD = V4L2_CID_PRIVATE_BASE_OLD + 11 |
CSU32 | V4L2_CID_EXPOSURE_AUTO_NEW = V4L2_CID_CAMERA_CLASS_BASE_NEW + 1 |
CSU32 | V4L2_CID_EXPOSURE_AUTO_OLD = V4L2_CID_PRIVATE_BASE_OLD + 10 |
CSU32 | V4L2_CID_EXPOSURE_AUTO_PRIORITY_NEW = V4L2_CID_CAMERA_CLASS_BASE_NEW+3 |
CSU32 | V4L2_CID_FOCUS_ABSOLUTE_NEW = V4L2_CID_CAMERA_CLASS_BASE_NEW + 10 |
CSU32 | V4L2_CID_FOCUS_ABSOLUTE_OLD = V4L2_CID_PRIVATE_BASE_OLD + 5 |
CSU32 | V4L2_CID_FOCUS_AUTO_NEW = V4L2_CID_CAMERA_CLASS_BASE_NEW + 12 |
CSU32 | V4L2_CID_FOCUS_AUTO_OLD = V4L2_CID_PRIVATE_BASE_OLD + 4 |
CSU32 | V4L2_CID_FOCUS_LOGITECH = V4L2_CID_BASE_LOGITECH + 3 |
CSU32 | V4L2_CID_FOCUS_RELATIVE_NEW = V4L2_CID_CAMERA_CLASS_BASE_NEW + 11 |
CSU32 | V4L2_CID_FOCUS_RELATIVE_OLD = V4L2_CID_PRIVATE_BASE_OLD + 6 |
CSU32 | V4L2_CID_HUE_AUTO_NEW = V4L2_CID_BASE_NEW + 25 |
CSU32 | V4L2_CID_HUE_AUTO_OLD = V4L2_CID_PRIVATE_BASE_OLD + 3 |
CSU32 | V4L2_CID_LAST_EXTCTR = V4L2_CID_RAW_BITS_PER_PIXEL_LOGITECH |
CSU32 | V4L2_CID_LAST_NEW = V4L2_CID_BASE_NEW + 29 |
CSU32 | V4L2_CID_LED1_FREQUENCY_LOGITECH = V4L2_CID_BASE_LOGITECH + 5 |
CSU32 | V4L2_CID_LED1_MODE_LOGITECH = V4L2_CID_BASE_LOGITECH + 4 |
CSU32 | V4L2_CID_PAN_ABSOLUTE_NEW = V4L2_CID_CAMERA_CLASS_BASE_NEW + 8 |
CSU32 | V4L2_CID_PAN_RELATIVE_NEW = V4L2_CID_CAMERA_CLASS_BASE_NEW + 4 |
CSU32 | V4L2_CID_PAN_RELATIVE_OLD = V4L2_CID_PRIVATE_BASE_OLD + 7 |
CSU32 | V4L2_CID_PAN_RESET_NEW = V4L2_CID_CAMERA_CLASS_BASE_NEW + 6 |
CSU32 | V4L2_CID_PANTILT_RESET_LOGITECH = V4L2_CID_BASE_LOGITECH + 2 |
CSU32 | V4L2_CID_PANTILT_RESET_OLD = V4L2_CID_PRIVATE_BASE_OLD + 9 |
CSU32 | V4L2_CID_POWER_LINE_FREQUENCY_NEW = V4L2_CID_BASE_NEW + 24 |
CSU32 | V4L2_CID_POWER_LINE_FREQUENCY_OLD = V4L2_CID_PRIVATE_BASE_OLD + 1 |
CSU32 | V4L2_CID_PRIVATE_BASE_OLD = 0x08000000 |
CSU32 | V4L2_CID_PRIVATE_LAST = V4L2_CID_WHITE_BALANCE_TEMP_OLD + 1 |
CSU32 | V4L2_CID_RAW_BITS_PER_PIXEL_LOGITECH = V4L2_CID_BASE_LOGITECH + 0x71 |
CSU32 | V4L2_CID_SHARPNESS_NEW = V4L2_CID_BASE_NEW + 27 |
CSU32 | V4L2_CID_SHARPNESS_OLD = V4L2_CID_PRIVATE_BASE_OLD + 2 |
CSU32 | V4L2_CID_TILT_ABSOLUTE_NEW = V4L2_CID_CAMERA_CLASS_BASE_NEW + 9 |
CSU32 | V4L2_CID_TILT_RELATIVE_NEW = V4L2_CID_CAMERA_CLASS_BASE_NEW + 5 |
CSU32 | V4L2_CID_TILT_RELATIVE_OLD = V4L2_CID_PRIVATE_BASE_OLD + 8 |
CSU32 | V4L2_CID_TILT_RESET_NEW = V4L2_CID_CAMERA_CLASS_BASE_NEW + 7 |
CSU32 | V4L2_CID_WHITE_BALANCE_TEMP_AUTO_OLD = V4L2_CID_PRIVATE_BASE_OLD+12 |
CSU32 | V4L2_CID_WHITE_BALANCE_TEMP_OLD = V4L2_CID_PRIVATE_BASE_OLD + 13 |
CSU32 | V4L2_CID_WHITE_BALANCE_TEMPERATURE_NEW = V4L2_CID_BASE_NEW + 26 |
CSU32 | V4L2_CTRL_CLASS_CAMERA_NEW = 0x009A0000 |
CSU32 | V4L2_CTRL_CLASS_USER_NEW = 0x00980000 |
unsigned | width |
Static Private Attributes |
static const unsigned | NUM_BUFFER = 2 |
Definition at line 55 of file uvc_cam.h.