27 #include <linux/videodev2.h> 53 #define CSU32 const static uint32_t 60 int _width = 640,
int _height = 480,
int _fps = 30);
63 int grab(
unsigned char **frame, uint32_t &bytes_used);
68 bool v4l2_query(
int id,
const std::string& name);
77 v4l2_requestbuffers
rb;
CSU32 UVC_CTRL_DATA_TYPE_UNSIGNED
CSU32 V4L2_CID_LED1_MODE_LOGITECH
unsigned char * rgb_frame
CSU32 V4L2_CID_RAW_BITS_PER_PIXEL_LOGITECH
CSU32 V4L2_CID_TILT_RELATIVE_NEW
CSU32 V4L2_CID_LAST_EXTCTR
void release(unsigned buf_idx)
CSU32 V4L2_CID_EXPOSURE_ABSOLUTE_NEW
CSU32 V4L2_CTRL_CLASS_USER_NEW
CSU32 V4L2_CID_HUE_AUTO_OLD
CSU32 V4L2_CID_EXPOSURE_AUTO_OLD
CSU32 V4L2_CID_EXPOSURE_AUTO_NEW
CSU32 V4L2_CID_PRIVATE_LAST
CSU32 V4L2_CID_PAN_RELATIVE_NEW
bool set_v4l2_control(int id, int value, const std::string &name)
CSU32 V4L2_CID_SHARPNESS_OLD
CSU32 V4L2_CID_EXPOSURE_AUTO_PRIORITY_NEW
int motion_threshold_count
void set_control(uint32_t id, int val)
CSU32 V4L2_CID_PANTILT_RESET_OLD
CSU32 V4L2_CID_FOCUS_AUTO_NEW
CSU32 UVC_CTRL_DATA_TYPE_ENUM
bool set_auto_white_balance(bool on)
CSU32 V4L2_CID_CAMERA_CLASS_BASE_NEW
CSU32 V4L2_CID_FOCUS_AUTO_OLD
CSU32 UVC_CTRL_DATA_TYPE_BITMASK
CSU32 V4L2_CID_CAMERA_CLASS_LAST
CSU32 UVC_CTRL_DATA_TYPE_RAW
CSU32 V4L2_CID_FOCUS_ABSOLUTE_OLD
CSU32 V4L2_CID_TILT_RESET_NEW
CSU32 V4L2_CID_EXPOSURE_ABSOLUTE_OLD
CSU32 V4L2_CID_PAN_ABSOLUTE_NEW
enum uvc_cam::Cam::mode_t mode
CSU32 V4L2_CID_BASE_LOGITECH
CSU32 V4L2_CID_FOCUS_ABSOLUTE_NEW
CSU32 V4L2_CID_WHITE_BALANCE_TEMP_OLD
static const int exp_vals[]
CSU32 UVC_CTRL_DATA_TYPE_BOOLEAN
CSU32 V4L2_CID_PANTILT_RESET_LOGITECH
void set_motion_thresholds(int lum, int count)
CSU32 V4L2_CID_PAN_RELATIVE_OLD
CSU32 UVC_CTRL_DATA_TYPE_SIGNED
CSU32 V4L2_CID_BACKLIGHT_COMPENSATION_OLD
CSU32 V4L2_CID_DISABLE_PROCESSING_LOGITECH
Cam(const char *device, mode_t _mode=MODE_RGB, int _width=640, int _height=480, int _fps=30)
CSU32 V4L2_CID_POWER_LINE_FREQUENCY_NEW
unsigned char * last_yuv_frame
int motion_threshold_luminance
CSU32 V4L2_CID_PRIVATE_BASE_OLD
CSU32 V4L2_CID_TILT_ABSOLUTE_NEW
CSU32 V4L2_CID_SHARPNESS_NEW
bool v4l2_query(int id, const std::string &name)
CSU32 V4L2_CID_WHITE_BALANCE_TEMPERATURE_NEW
CSU32 V4L2_CID_BACKLIGHT_COMPENSATION_NEW
CSU32 V4L2_CID_POWER_LINE_FREQUENCY_OLD
CSU32 V4L2_CID_FOCUS_LOGITECH
CSU32 V4L2_CID_PAN_RESET_NEW
CSU32 V4L2_CTRL_CLASS_CAMERA_NEW
v4l2_streamparm streamparm
CSU32 V4L2_CID_FOCUS_RELATIVE_NEW
CSU32 V4L2_CID_BASE_EXTCTR
static const unsigned NUM_BUFFER
int grab(unsigned char **frame, uint32_t &bytes_used)
v4l2_uvc_exposure_auto_type
CSU32 V4L2_CID_HUE_AUTO_NEW
CSU32 V4L2_CID_FOCUS_RELATIVE_OLD
CSU32 V4L2_CID_WHITE_BALANCE_TEMP_AUTO_OLD
CSU32 V4L2_CID_TILT_RELATIVE_OLD
CSU32 V4L2_CID_LED1_FREQUENCY_LOGITECH