libuvc.h
#ifndef LIBUVC_H
#define LIBUVC_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h> // FILE
#include <stdint.h>
#include <sys/time.h>
#include <libuvc/libuvc_config.h>
struct libusb_context;
struct libusb_device_handle;
typedef enum uvc_error {
UVC_SUCCESS = 0,
UVC_ERROR_IO = -1,
UVC_ERROR_INVALID_PARAM = -2,
UVC_ERROR_ACCESS = -3,
UVC_ERROR_NO_DEVICE = -4,
UVC_ERROR_NOT_FOUND = -5,
UVC_ERROR_BUSY = -6,
UVC_ERROR_TIMEOUT = -7,
UVC_ERROR_OVERFLOW = -8,
UVC_ERROR_PIPE = -9,
UVC_ERROR_INTERRUPTED = -10,
UVC_ERROR_NO_MEM = -11,
UVC_ERROR_NOT_SUPPORTED = -12,
UVC_ERROR_INVALID_DEVICE = -50,
UVC_ERROR_INVALID_MODE = -51,
UVC_ERROR_CALLBACK_EXISTS = -52,
UVC_ERROR_OTHER = -99
} uvc_error_t;
enum uvc_frame_format {
UVC_FRAME_FORMAT_UNKNOWN = 0,
UVC_FRAME_FORMAT_ANY = 0,
UVC_FRAME_FORMAT_UNCOMPRESSED,
UVC_FRAME_FORMAT_COMPRESSED,
UVC_FRAME_FORMAT_YUYV,
UVC_FRAME_FORMAT_UYVY,
UVC_FRAME_FORMAT_RGB,
UVC_FRAME_FORMAT_BGR,
UVC_FRAME_FORMAT_MJPEG,
UVC_FRAME_FORMAT_H264,
UVC_FRAME_FORMAT_GRAY8,
UVC_FRAME_FORMAT_GRAY16,
/* Raw colour mosaic images */
UVC_FRAME_FORMAT_BY8,
UVC_FRAME_FORMAT_BA81,
UVC_FRAME_FORMAT_SGRBG8,
UVC_FRAME_FORMAT_SGBRG8,
UVC_FRAME_FORMAT_SRGGB8,
UVC_FRAME_FORMAT_SBGGR8,
UVC_FRAME_FORMAT_NV12,
UVC_FRAME_FORMAT_P010,
UVC_FRAME_FORMAT_COUNT,
};
/* UVC_COLOR_FORMAT_* have been replaced with UVC_FRAME_FORMAT_*. Please use
* UVC_FRAME_FORMAT_* instead of using these. */
#define UVC_COLOR_FORMAT_UNKNOWN UVC_FRAME_FORMAT_UNKNOWN
#define UVC_COLOR_FORMAT_UNCOMPRESSED UVC_FRAME_FORMAT_UNCOMPRESSED
#define UVC_COLOR_FORMAT_COMPRESSED UVC_FRAME_FORMAT_COMPRESSED
#define UVC_COLOR_FORMAT_YUYV UVC_FRAME_FORMAT_YUYV
#define UVC_COLOR_FORMAT_UYVY UVC_FRAME_FORMAT_UYVY
#define UVC_COLOR_FORMAT_RGB UVC_FRAME_FORMAT_RGB
#define UVC_COLOR_FORMAT_BGR UVC_FRAME_FORMAT_BGR
#define UVC_COLOR_FORMAT_MJPEG UVC_FRAME_FORMAT_MJPEG
#define UVC_COLOR_FORMAT_GRAY8 UVC_FRAME_FORMAT_GRAY8
#define UVC_COLOR_FORMAT_GRAY16 UVC_FRAME_FORMAT_GRAY16
#define UVC_COLOR_FORMAT_NV12 UVC_FRAME_FORMAT_NV12
enum uvc_vs_desc_subtype {
UVC_VS_UNDEFINED = 0x00,
UVC_VS_INPUT_HEADER = 0x01,
UVC_VS_OUTPUT_HEADER = 0x02,
UVC_VS_STILL_IMAGE_FRAME = 0x03,
UVC_VS_FORMAT_UNCOMPRESSED = 0x04,
UVC_VS_FRAME_UNCOMPRESSED = 0x05,
UVC_VS_FORMAT_MJPEG = 0x06,
UVC_VS_FRAME_MJPEG = 0x07,
UVC_VS_FORMAT_MPEG2TS = 0x0a,
UVC_VS_FORMAT_DV = 0x0c,
UVC_VS_COLORFORMAT = 0x0d,
UVC_VS_FORMAT_FRAME_BASED = 0x10,
UVC_VS_FRAME_FRAME_BASED = 0x11,
UVC_VS_FORMAT_STREAM_BASED = 0x12
};
struct uvc_format_desc;
struct uvc_frame_desc;
typedef struct uvc_still_frame_res {
struct uvc_still_frame_res *prev, *next;
uint8_t bResolutionIndex;
uint16_t wWidth;
uint16_t wHeight;
} uvc_still_frame_res_t;
typedef struct uvc_still_frame_desc {
struct uvc_format_desc *parent;
struct uvc_still_frame_desc *prev, *next;
enum uvc_vs_desc_subtype bDescriptorSubtype;
uint8_t bEndPointAddress;
uvc_still_frame_res_t* imageSizePatterns;
uint8_t bNumCompressionPattern;
/* indication of compression level, the higher, the more compression is applied to image */
uint8_t* bCompression;
} uvc_still_frame_desc_t;
typedef struct uvc_frame_desc {
struct uvc_format_desc *parent;
struct uvc_frame_desc *prev, *next;
enum uvc_vs_desc_subtype bDescriptorSubtype;
uint8_t bFrameIndex;
uint8_t bmCapabilities;
uint16_t wWidth;
uint16_t wHeight;
uint32_t dwMinBitRate;
uint32_t dwMaxBitRate;
uint32_t dwMaxVideoFrameBufferSize;
uint32_t dwDefaultFrameInterval;
uint32_t dwMinFrameInterval;
uint32_t dwMaxFrameInterval;
uint32_t dwFrameIntervalStep;
uint8_t bFrameIntervalType;
uint32_t dwBytesPerLine;
uint32_t *intervals;
} uvc_frame_desc_t;
typedef struct uvc_format_desc {
struct uvc_streaming_interface *parent;
struct uvc_format_desc *prev, *next;
enum uvc_vs_desc_subtype bDescriptorSubtype;
uint8_t bFormatIndex;
uint8_t bNumFrameDescriptors;
union {
uint8_t guidFormat[16];
uint8_t fourccFormat[4];
};
union {
uint8_t bBitsPerPixel;
uint8_t bmFlags;
};
uint8_t bDefaultFrameIndex;
uint8_t bAspectRatioX;
uint8_t bAspectRatioY;
uint8_t bmInterlaceFlags;
uint8_t bCopyProtect;
uint8_t bVariableSize;
struct uvc_frame_desc *frame_descs;
struct uvc_still_frame_desc *still_frame_desc;
} uvc_format_desc_t;
enum uvc_req_code {
UVC_RC_UNDEFINED = 0x00,
UVC_SET_CUR = 0x01,
UVC_GET_CUR = 0x81,
UVC_GET_MIN = 0x82,
UVC_GET_MAX = 0x83,
UVC_GET_RES = 0x84,
UVC_GET_LEN = 0x85,
UVC_GET_INFO = 0x86,
UVC_GET_DEF = 0x87
};
enum uvc_device_power_mode {
UVC_VC_VIDEO_POWER_MODE_FULL = 0x000b,
UVC_VC_VIDEO_POWER_MODE_DEVICE_DEPENDENT = 0x001b,
};
enum uvc_ct_ctrl_selector {
UVC_CT_CONTROL_UNDEFINED = 0x00,
UVC_CT_SCANNING_MODE_CONTROL = 0x01,
UVC_CT_AE_MODE_CONTROL = 0x02,
UVC_CT_AE_PRIORITY_CONTROL = 0x03,
UVC_CT_EXPOSURE_TIME_ABSOLUTE_CONTROL = 0x04,
UVC_CT_EXPOSURE_TIME_RELATIVE_CONTROL = 0x05,
UVC_CT_FOCUS_ABSOLUTE_CONTROL = 0x06,
UVC_CT_FOCUS_RELATIVE_CONTROL = 0x07,
UVC_CT_FOCUS_AUTO_CONTROL = 0x08,
UVC_CT_IRIS_ABSOLUTE_CONTROL = 0x09,
UVC_CT_IRIS_RELATIVE_CONTROL = 0x0a,
UVC_CT_ZOOM_ABSOLUTE_CONTROL = 0x0b,
UVC_CT_ZOOM_RELATIVE_CONTROL = 0x0c,
UVC_CT_PANTILT_ABSOLUTE_CONTROL = 0x0d,
UVC_CT_PANTILT_RELATIVE_CONTROL = 0x0e,
UVC_CT_ROLL_ABSOLUTE_CONTROL = 0x0f,
UVC_CT_ROLL_RELATIVE_CONTROL = 0x10,
UVC_CT_PRIVACY_CONTROL = 0x11,
UVC_CT_FOCUS_SIMPLE_CONTROL = 0x12,
UVC_CT_DIGITAL_WINDOW_CONTROL = 0x13,
UVC_CT_REGION_OF_INTEREST_CONTROL = 0x14
};
enum uvc_pu_ctrl_selector {
UVC_PU_CONTROL_UNDEFINED = 0x00,
UVC_PU_BACKLIGHT_COMPENSATION_CONTROL = 0x01,
UVC_PU_BRIGHTNESS_CONTROL = 0x02,
UVC_PU_CONTRAST_CONTROL = 0x03,
UVC_PU_GAIN_CONTROL = 0x04,
UVC_PU_POWER_LINE_FREQUENCY_CONTROL = 0x05,
UVC_PU_HUE_CONTROL = 0x06,
UVC_PU_SATURATION_CONTROL = 0x07,
UVC_PU_SHARPNESS_CONTROL = 0x08,
UVC_PU_GAMMA_CONTROL = 0x09,
UVC_PU_WHITE_BALANCE_TEMPERATURE_CONTROL = 0x0a,
UVC_PU_WHITE_BALANCE_TEMPERATURE_AUTO_CONTROL = 0x0b,
UVC_PU_WHITE_BALANCE_COMPONENT_CONTROL = 0x0c,
UVC_PU_WHITE_BALANCE_COMPONENT_AUTO_CONTROL = 0x0d,
UVC_PU_DIGITAL_MULTIPLIER_CONTROL = 0x0e,
UVC_PU_DIGITAL_MULTIPLIER_LIMIT_CONTROL = 0x0f,
UVC_PU_HUE_AUTO_CONTROL = 0x10,
UVC_PU_ANALOG_VIDEO_STANDARD_CONTROL = 0x11,
UVC_PU_ANALOG_LOCK_STATUS_CONTROL = 0x12,
UVC_PU_CONTRAST_AUTO_CONTROL = 0x13
};
enum uvc_term_type {
UVC_TT_VENDOR_SPECIFIC = 0x0100,
UVC_TT_STREAMING = 0x0101
};
enum uvc_it_type {
UVC_ITT_VENDOR_SPECIFIC = 0x0200,
UVC_ITT_CAMERA = 0x0201,
UVC_ITT_MEDIA_TRANSPORT_INPUT = 0x0202
};
enum uvc_ot_type {
UVC_OTT_VENDOR_SPECIFIC = 0x0300,
UVC_OTT_DISPLAY = 0x0301,
UVC_OTT_MEDIA_TRANSPORT_OUTPUT = 0x0302
};
enum uvc_et_type {
UVC_EXTERNAL_VENDOR_SPECIFIC = 0x0400,
UVC_COMPOSITE_CONNECTOR = 0x0401,
UVC_SVIDEO_CONNECTOR = 0x0402,
UVC_COMPONENT_CONNECTOR = 0x0403
};
struct uvc_context;
typedef struct uvc_context uvc_context_t;
struct uvc_device;
typedef struct uvc_device uvc_device_t;
struct uvc_device_handle;
typedef struct uvc_device_handle uvc_device_handle_t;
struct uvc_stream_handle;
typedef struct uvc_stream_handle uvc_stream_handle_t;
typedef struct uvc_input_terminal {
struct uvc_input_terminal *prev, *next;
uint8_t bTerminalID;
enum uvc_it_type wTerminalType;
uint16_t wObjectiveFocalLengthMin;
uint16_t wObjectiveFocalLengthMax;
uint16_t wOcularFocalLength;
uint64_t bmControls;
} uvc_input_terminal_t;
typedef struct uvc_output_terminal {
struct uvc_output_terminal *prev, *next;
} uvc_output_terminal_t;
typedef struct uvc_processing_unit {
struct uvc_processing_unit *prev, *next;
uint8_t bUnitID;
uint8_t bSourceID;
uint64_t bmControls;
} uvc_processing_unit_t;
typedef struct uvc_selector_unit {
struct uvc_selector_unit *prev, *next;
uint8_t bUnitID;
} uvc_selector_unit_t;
typedef struct uvc_extension_unit {
struct uvc_extension_unit *prev, *next;
uint8_t bUnitID;
uint8_t guidExtensionCode[16];
uint64_t bmControls;
} uvc_extension_unit_t;
enum uvc_status_class {
UVC_STATUS_CLASS_CONTROL = 0x10,
UVC_STATUS_CLASS_CONTROL_CAMERA = 0x11,
UVC_STATUS_CLASS_CONTROL_PROCESSING = 0x12,
};
enum uvc_status_attribute {
UVC_STATUS_ATTRIBUTE_VALUE_CHANGE = 0x00,
UVC_STATUS_ATTRIBUTE_INFO_CHANGE = 0x01,
UVC_STATUS_ATTRIBUTE_FAILURE_CHANGE = 0x02,
UVC_STATUS_ATTRIBUTE_UNKNOWN = 0xff
};
typedef void(uvc_status_callback_t)(enum uvc_status_class status_class,
int event,
int selector,
enum uvc_status_attribute status_attribute,
void *data, size_t data_len,
void *user_ptr);
typedef void(uvc_button_callback_t)(int button,
int state,
void *user_ptr);
typedef struct uvc_device_descriptor {
uint16_t idVendor;
uint16_t idProduct;
uint16_t bcdUVC;
const char *serialNumber;
const char *manufacturer;
const char *product;
} uvc_device_descriptor_t;
typedef struct uvc_frame {
void *data;
size_t data_bytes;
uint32_t width;
uint32_t height;
enum uvc_frame_format frame_format;
size_t step;
uint32_t sequence;
struct timeval capture_time;
struct timespec capture_time_finished;
uvc_device_handle_t *source;
uint8_t library_owns_data;
void *metadata;
size_t metadata_bytes;
} uvc_frame_t;
typedef void(uvc_frame_callback_t)(struct uvc_frame *frame, void *user_ptr);
typedef struct uvc_stream_ctrl {
uint16_t bmHint;
uint8_t bFormatIndex;
uint8_t bFrameIndex;
uint32_t dwFrameInterval;
uint16_t wKeyFrameRate;
uint16_t wPFrameRate;
uint16_t wCompQuality;
uint16_t wCompWindowSize;
uint16_t wDelay;
uint32_t dwMaxVideoFrameSize;
uint32_t dwMaxPayloadTransferSize;
uint32_t dwClockFrequency;
uint8_t bmFramingInfo;
uint8_t bPreferredVersion;
uint8_t bMinVersion;
uint8_t bMaxVersion;
uint8_t bInterfaceNumber;
} uvc_stream_ctrl_t;
typedef struct uvc_still_ctrl {
/* Video format index from a format descriptor */
uint8_t bFormatIndex;
/* Video frame index from a frame descriptor */
uint8_t bFrameIndex;
/* Compression index from a frame descriptor */
uint8_t bCompressionIndex;
/* Maximum still image size in bytes. */
uint32_t dwMaxVideoFrameSize;
/* Maximum number of byte per payload*/
uint32_t dwMaxPayloadTransferSize;
uint8_t bInterfaceNumber;
} uvc_still_ctrl_t;
uvc_error_t uvc_init(uvc_context_t **ctx, struct libusb_context *usb_ctx);
void uvc_exit(uvc_context_t *ctx);
uvc_error_t uvc_get_device_list(
uvc_context_t *ctx,
uvc_device_t ***list);
void uvc_free_device_list(uvc_device_t **list, uint8_t unref_devices);
uvc_error_t uvc_get_device_descriptor(
uvc_device_t *dev,
uvc_device_descriptor_t **desc);
void uvc_free_device_descriptor(
uvc_device_descriptor_t *desc);
uint8_t uvc_get_bus_number(uvc_device_t *dev);
uint8_t uvc_get_device_address(uvc_device_t *dev);
uvc_error_t uvc_find_device(
uvc_context_t *ctx,
uvc_device_t **dev,
int vid, int pid, const char *sn);
uvc_error_t uvc_find_devices(
uvc_context_t *ctx,
uvc_device_t ***devs,
int vid, int pid, const char *sn);
#if LIBUSB_API_VERSION >= 0x01000107
uvc_error_t uvc_wrap(
int sys_dev,
uvc_context_t *context,
uvc_device_handle_t **devh);
#endif
uvc_error_t uvc_open(
uvc_device_t *dev,
uvc_device_handle_t **devh);
void uvc_close(uvc_device_handle_t *devh);
uvc_device_t *uvc_get_device(uvc_device_handle_t *devh);
struct libusb_device_handle *uvc_get_libusb_handle(uvc_device_handle_t *devh);
void uvc_ref_device(uvc_device_t *dev);
void uvc_unref_device(uvc_device_t *dev);
void uvc_set_status_callback(uvc_device_handle_t *devh,
uvc_status_callback_t cb,
void *user_ptr);
void uvc_set_button_callback(uvc_device_handle_t *devh,
uvc_button_callback_t cb,
void *user_ptr);
const uvc_input_terminal_t *uvc_get_camera_terminal(uvc_device_handle_t *devh);
const uvc_input_terminal_t *uvc_get_input_terminals(uvc_device_handle_t *devh);
const uvc_output_terminal_t *uvc_get_output_terminals(uvc_device_handle_t *devh);
const uvc_selector_unit_t *uvc_get_selector_units(uvc_device_handle_t *devh);
const uvc_processing_unit_t *uvc_get_processing_units(uvc_device_handle_t *devh);
const uvc_extension_unit_t *uvc_get_extension_units(uvc_device_handle_t *devh);
uvc_error_t uvc_get_stream_ctrl_format_size(
uvc_device_handle_t *devh,
uvc_stream_ctrl_t *ctrl,
enum uvc_frame_format format,
int width, int height,
int fps
);
uvc_error_t uvc_get_still_ctrl_format_size(
uvc_device_handle_t *devh,
uvc_stream_ctrl_t *ctrl,
uvc_still_ctrl_t *still_ctrl,
int width, int height);
uvc_error_t uvc_trigger_still(
uvc_device_handle_t *devh,
uvc_still_ctrl_t *still_ctrl);
const uvc_format_desc_t *uvc_get_format_descs(uvc_device_handle_t* );
uvc_error_t uvc_probe_stream_ctrl(
uvc_device_handle_t *devh,
uvc_stream_ctrl_t *ctrl);
uvc_error_t uvc_probe_still_ctrl(
uvc_device_handle_t *devh,
uvc_still_ctrl_t *still_ctrl);
uvc_error_t uvc_start_streaming(
uvc_device_handle_t *devh,
uvc_stream_ctrl_t *ctrl,
uvc_frame_callback_t *cb,
void *user_ptr,
uint8_t flags);
uvc_error_t uvc_start_iso_streaming(
uvc_device_handle_t *devh,
uvc_stream_ctrl_t *ctrl,
uvc_frame_callback_t *cb,
void *user_ptr);
void uvc_stop_streaming(uvc_device_handle_t *devh);
uvc_error_t uvc_stream_open_ctrl(uvc_device_handle_t *devh, uvc_stream_handle_t **strmh, uvc_stream_ctrl_t *ctrl);
uvc_error_t uvc_stream_ctrl(uvc_stream_handle_t *strmh, uvc_stream_ctrl_t *ctrl);
uvc_error_t uvc_stream_start(uvc_stream_handle_t *strmh,
uvc_frame_callback_t *cb,
void *user_ptr,
uint8_t flags);
uvc_error_t uvc_stream_start_iso(uvc_stream_handle_t *strmh,
uvc_frame_callback_t *cb,
void *user_ptr);
uvc_error_t uvc_stream_get_frame(
uvc_stream_handle_t *strmh,
uvc_frame_t **frame,
int32_t timeout_us
);
uvc_error_t uvc_stream_stop(uvc_stream_handle_t *strmh);
void uvc_stream_close(uvc_stream_handle_t *strmh);
int uvc_get_ctrl_len(uvc_device_handle_t *devh, uint8_t unit, uint8_t ctrl);
int uvc_get_ctrl(uvc_device_handle_t *devh, uint8_t unit, uint8_t ctrl, void *data, int len, enum uvc_req_code req_code);
int uvc_set_ctrl(uvc_device_handle_t *devh, uint8_t unit, uint8_t ctrl, void *data, int len);
uvc_error_t uvc_get_power_mode(uvc_device_handle_t *devh, enum uvc_device_power_mode *mode, enum uvc_req_code req_code);
uvc_error_t uvc_set_power_mode(uvc_device_handle_t *devh, enum uvc_device_power_mode mode);
/* AUTO-GENERATED control accessors! Update them with the output of `ctrl-gen.py decl`. */
uvc_error_t uvc_get_scanning_mode(uvc_device_handle_t *devh, uint8_t* mode, enum uvc_req_code req_code);
uvc_error_t uvc_set_scanning_mode(uvc_device_handle_t *devh, uint8_t mode);
uvc_error_t uvc_get_ae_mode(uvc_device_handle_t *devh, uint8_t* mode, enum uvc_req_code req_code);
uvc_error_t uvc_set_ae_mode(uvc_device_handle_t *devh, uint8_t mode);
uvc_error_t uvc_get_ae_priority(uvc_device_handle_t *devh, uint8_t* priority, enum uvc_req_code req_code);
uvc_error_t uvc_set_ae_priority(uvc_device_handle_t *devh, uint8_t priority);
uvc_error_t uvc_get_exposure_abs(uvc_device_handle_t *devh, uint32_t* time, enum uvc_req_code req_code);
uvc_error_t uvc_set_exposure_abs(uvc_device_handle_t *devh, uint32_t time);
uvc_error_t uvc_get_exposure_rel(uvc_device_handle_t *devh, int8_t* step, enum uvc_req_code req_code);
uvc_error_t uvc_set_exposure_rel(uvc_device_handle_t *devh, int8_t step);
uvc_error_t uvc_get_focus_abs(uvc_device_handle_t *devh, uint16_t* focus, enum uvc_req_code req_code);
uvc_error_t uvc_set_focus_abs(uvc_device_handle_t *devh, uint16_t focus);
uvc_error_t uvc_get_focus_rel(uvc_device_handle_t *devh, int8_t* focus_rel, uint8_t* speed, enum uvc_req_code req_code);
uvc_error_t uvc_set_focus_rel(uvc_device_handle_t *devh, int8_t focus_rel, uint8_t speed);
uvc_error_t uvc_get_focus_simple_range(uvc_device_handle_t *devh, uint8_t* focus, enum uvc_req_code req_code);
uvc_error_t uvc_set_focus_simple_range(uvc_device_handle_t *devh, uint8_t focus);
uvc_error_t uvc_get_focus_auto(uvc_device_handle_t *devh, uint8_t* state, enum uvc_req_code req_code);
uvc_error_t uvc_set_focus_auto(uvc_device_handle_t *devh, uint8_t state);
uvc_error_t uvc_get_iris_abs(uvc_device_handle_t *devh, uint16_t* iris, enum uvc_req_code req_code);
uvc_error_t uvc_set_iris_abs(uvc_device_handle_t *devh, uint16_t iris);
uvc_error_t uvc_get_iris_rel(uvc_device_handle_t *devh, uint8_t* iris_rel, enum uvc_req_code req_code);
uvc_error_t uvc_set_iris_rel(uvc_device_handle_t *devh, uint8_t iris_rel);
uvc_error_t uvc_get_zoom_abs(uvc_device_handle_t *devh, uint16_t* focal_length, enum uvc_req_code req_code);
uvc_error_t uvc_set_zoom_abs(uvc_device_handle_t *devh, uint16_t focal_length);
uvc_error_t uvc_get_zoom_rel(uvc_device_handle_t *devh, int8_t* zoom_rel, uint8_t* digital_zoom, uint8_t* speed, enum uvc_req_code req_code);
uvc_error_t uvc_set_zoom_rel(uvc_device_handle_t *devh, int8_t zoom_rel, uint8_t digital_zoom, uint8_t speed);
uvc_error_t uvc_get_pantilt_abs(uvc_device_handle_t *devh, int32_t* pan, int32_t* tilt, enum uvc_req_code req_code);
uvc_error_t uvc_set_pantilt_abs(uvc_device_handle_t *devh, int32_t pan, int32_t tilt);
uvc_error_t uvc_get_pantilt_rel(uvc_device_handle_t *devh, int8_t* pan_rel, uint8_t* pan_speed, int8_t* tilt_rel, uint8_t* tilt_speed, enum uvc_req_code req_code);
uvc_error_t uvc_set_pantilt_rel(uvc_device_handle_t *devh, int8_t pan_rel, uint8_t pan_speed, int8_t tilt_rel, uint8_t tilt_speed);
uvc_error_t uvc_get_roll_abs(uvc_device_handle_t *devh, int16_t* roll, enum uvc_req_code req_code);
uvc_error_t uvc_set_roll_abs(uvc_device_handle_t *devh, int16_t roll);
uvc_error_t uvc_get_roll_rel(uvc_device_handle_t *devh, int8_t* roll_rel, uint8_t* speed, enum uvc_req_code req_code);
uvc_error_t uvc_set_roll_rel(uvc_device_handle_t *devh, int8_t roll_rel, uint8_t speed);
uvc_error_t uvc_get_privacy(uvc_device_handle_t *devh, uint8_t* privacy, enum uvc_req_code req_code);
uvc_error_t uvc_set_privacy(uvc_device_handle_t *devh, uint8_t privacy);
uvc_error_t uvc_get_digital_window(uvc_device_handle_t *devh, uint16_t* window_top, uint16_t* window_left, uint16_t* window_bottom, uint16_t* window_right, uint16_t* num_steps, uint16_t* num_steps_units, enum uvc_req_code req_code);
uvc_error_t uvc_set_digital_window(uvc_device_handle_t *devh, uint16_t window_top, uint16_t window_left, uint16_t window_bottom, uint16_t window_right, uint16_t num_steps, uint16_t num_steps_units);
uvc_error_t uvc_get_digital_roi(uvc_device_handle_t *devh, uint16_t* roi_top, uint16_t* roi_left, uint16_t* roi_bottom, uint16_t* roi_right, uint16_t* auto_controls, enum uvc_req_code req_code);
uvc_error_t uvc_set_digital_roi(uvc_device_handle_t *devh, uint16_t roi_top, uint16_t roi_left, uint16_t roi_bottom, uint16_t roi_right, uint16_t auto_controls);
uvc_error_t uvc_get_backlight_compensation(uvc_device_handle_t *devh, uint16_t* backlight_compensation, enum uvc_req_code req_code);
uvc_error_t uvc_set_backlight_compensation(uvc_device_handle_t *devh, uint16_t backlight_compensation);
uvc_error_t uvc_get_brightness(uvc_device_handle_t *devh, int16_t* brightness, enum uvc_req_code req_code);
uvc_error_t uvc_set_brightness(uvc_device_handle_t *devh, int16_t brightness);
uvc_error_t uvc_get_contrast(uvc_device_handle_t *devh, uint16_t* contrast, enum uvc_req_code req_code);
uvc_error_t uvc_set_contrast(uvc_device_handle_t *devh, uint16_t contrast);
uvc_error_t uvc_get_contrast_auto(uvc_device_handle_t *devh, uint8_t* contrast_auto, enum uvc_req_code req_code);
uvc_error_t uvc_set_contrast_auto(uvc_device_handle_t *devh, uint8_t contrast_auto);
uvc_error_t uvc_get_gain(uvc_device_handle_t *devh, uint16_t* gain, enum uvc_req_code req_code);
uvc_error_t uvc_set_gain(uvc_device_handle_t *devh, uint16_t gain);
uvc_error_t uvc_get_power_line_frequency(uvc_device_handle_t *devh, uint8_t* power_line_frequency, enum uvc_req_code req_code);
uvc_error_t uvc_set_power_line_frequency(uvc_device_handle_t *devh, uint8_t power_line_frequency);
uvc_error_t uvc_get_hue(uvc_device_handle_t *devh, int16_t* hue, enum uvc_req_code req_code);
uvc_error_t uvc_set_hue(uvc_device_handle_t *devh, int16_t hue);
uvc_error_t uvc_get_hue_auto(uvc_device_handle_t *devh, uint8_t* hue_auto, enum uvc_req_code req_code);
uvc_error_t uvc_set_hue_auto(uvc_device_handle_t *devh, uint8_t hue_auto);
uvc_error_t uvc_get_saturation(uvc_device_handle_t *devh, uint16_t* saturation, enum uvc_req_code req_code);
uvc_error_t uvc_set_saturation(uvc_device_handle_t *devh, uint16_t saturation);
uvc_error_t uvc_get_sharpness(uvc_device_handle_t *devh, uint16_t* sharpness, enum uvc_req_code req_code);
uvc_error_t uvc_set_sharpness(uvc_device_handle_t *devh, uint16_t sharpness);
uvc_error_t uvc_get_gamma(uvc_device_handle_t *devh, uint16_t* gamma, enum uvc_req_code req_code);
uvc_error_t uvc_set_gamma(uvc_device_handle_t *devh, uint16_t gamma);
uvc_error_t uvc_get_white_balance_temperature(uvc_device_handle_t *devh, uint16_t* temperature, enum uvc_req_code req_code);
uvc_error_t uvc_set_white_balance_temperature(uvc_device_handle_t *devh, uint16_t temperature);
uvc_error_t uvc_get_white_balance_temperature_auto(uvc_device_handle_t *devh, uint8_t* temperature_auto, enum uvc_req_code req_code);
uvc_error_t uvc_set_white_balance_temperature_auto(uvc_device_handle_t *devh, uint8_t temperature_auto);
uvc_error_t uvc_get_white_balance_component(uvc_device_handle_t *devh, uint16_t* blue, uint16_t* red, enum uvc_req_code req_code);
uvc_error_t uvc_set_white_balance_component(uvc_device_handle_t *devh, uint16_t blue, uint16_t red);
uvc_error_t uvc_get_white_balance_component_auto(uvc_device_handle_t *devh, uint8_t* white_balance_component_auto, enum uvc_req_code req_code);
uvc_error_t uvc_set_white_balance_component_auto(uvc_device_handle_t *devh, uint8_t white_balance_component_auto);
uvc_error_t uvc_get_digital_multiplier(uvc_device_handle_t *devh, uint16_t* multiplier_step, enum uvc_req_code req_code);
uvc_error_t uvc_set_digital_multiplier(uvc_device_handle_t *devh, uint16_t multiplier_step);
uvc_error_t uvc_get_digital_multiplier_limit(uvc_device_handle_t *devh, uint16_t* multiplier_step, enum uvc_req_code req_code);
uvc_error_t uvc_set_digital_multiplier_limit(uvc_device_handle_t *devh, uint16_t multiplier_step);
uvc_error_t uvc_get_analog_video_standard(uvc_device_handle_t *devh, uint8_t* video_standard, enum uvc_req_code req_code);
uvc_error_t uvc_set_analog_video_standard(uvc_device_handle_t *devh, uint8_t video_standard);
uvc_error_t uvc_get_analog_video_lock_status(uvc_device_handle_t *devh, uint8_t* status, enum uvc_req_code req_code);
uvc_error_t uvc_set_analog_video_lock_status(uvc_device_handle_t *devh, uint8_t status);
uvc_error_t uvc_get_input_select(uvc_device_handle_t *devh, uint8_t* selector, enum uvc_req_code req_code);
uvc_error_t uvc_set_input_select(uvc_device_handle_t *devh, uint8_t selector);
/* end AUTO-GENERATED control accessors */
void uvc_perror(uvc_error_t err, const char *msg);
const char* uvc_strerror(uvc_error_t err);
void uvc_print_diag(uvc_device_handle_t *devh, FILE *stream);
void uvc_print_stream_ctrl(uvc_stream_ctrl_t *ctrl, FILE *stream);
uvc_frame_t *uvc_allocate_frame(size_t data_bytes);
void uvc_free_frame(uvc_frame_t *frame);
uvc_error_t uvc_duplicate_frame(uvc_frame_t *in, uvc_frame_t *out);
uvc_error_t uvc_yuyv2rgb(uvc_frame_t *in, uvc_frame_t *out);
uvc_error_t uvc_uyvy2rgb(uvc_frame_t *in, uvc_frame_t *out);
uvc_error_t uvc_any2rgb(uvc_frame_t *in, uvc_frame_t *out);
uvc_error_t uvc_yuyv2bgr(uvc_frame_t *in, uvc_frame_t *out);
uvc_error_t uvc_uyvy2bgr(uvc_frame_t *in, uvc_frame_t *out);
uvc_error_t uvc_any2bgr(uvc_frame_t *in, uvc_frame_t *out);
uvc_error_t uvc_yuyv2y(uvc_frame_t *in, uvc_frame_t *out);
uvc_error_t uvc_yuyv2uv(uvc_frame_t *in, uvc_frame_t *out);
#ifdef LIBUVC_HAS_JPEG
uvc_error_t uvc_mjpeg2rgb(uvc_frame_t *in, uvc_frame_t *out);
uvc_error_t uvc_mjpeg2gray(uvc_frame_t *in, uvc_frame_t *out);
#endif
#ifdef __cplusplus
}
#endif
#endif // !def(LIBUVC_H)
uvc_set_roll_rel
uvc_error_t uvc_set_roll_rel(uvc_device_handle_t *devh, int8_t roll_rel, uint8_t speed)
Sets the ROLL_RELATIVE control.
Definition ctrl-gen.c:956
uvc_set_privacy
uvc_error_t uvc_set_privacy(uvc_device_handle_t *devh, uint8_t privacy)
Sets the PRIVACY control.
Definition ctrl-gen.c:1011
uvc_get_contrast
uvc_error_t uvc_get_contrast(uvc_device_handle_t *devh, uint16_t *contrast, enum uvc_req_code req_code)
Reads the CONTRAST control.
Definition ctrl-gen.c:1290
uvc_set_focus_simple_range
uvc_error_t uvc_set_focus_simple_range(uvc_device_handle_t *devh, uint8_t focus)
Sets the FOCUS_SIMPLE control.
Definition ctrl-gen.c:443
uvc_get_analog_video_standard
uvc_error_t uvc_get_analog_video_standard(uvc_device_handle_t *devh, uint8_t *video_standard, enum uvc_req_code req_code)
Reads the ANALOG_VIDEO_STANDARD control.
Definition ctrl-gen.c:2104
uvc_get_focus_simple_range
uvc_error_t uvc_get_focus_simple_range(uvc_device_handle_t *devh, uint8_t *focus, enum uvc_req_code req_code)
Reads the FOCUS_SIMPLE control.
Definition ctrl-gen.c:416
uvc_get_iris_abs
uvc_error_t uvc_get_iris_abs(uvc_device_handle_t *devh, uint16_t *iris, enum uvc_req_code req_code)
Reads the IRIS_ABSOLUTE control.
Definition ctrl-gen.c:524
uvc_get_digital_window
uvc_error_t uvc_get_digital_window(uvc_device_handle_t *devh, uint16_t *window_top, uint16_t *window_left, uint16_t *window_bottom, uint16_t *window_right, uint16_t *num_steps, uint16_t *num_steps_units, enum uvc_req_code req_code)
Reads the DIGITAL_WINDOW control.
Definition ctrl-gen.c:1043
uvc_get_digital_multiplier
uvc_error_t uvc_get_digital_multiplier(uvc_device_handle_t *devh, uint16_t *multiplier_step, enum uvc_req_code req_code)
Reads the DIGITAL_MULTIPLIER control.
Definition ctrl-gen.c:1996
uvc_get_sharpness
uvc_error_t uvc_get_sharpness(uvc_device_handle_t *devh, uint16_t *sharpness, enum uvc_req_code req_code)
Reads the SHARPNESS control.
Definition ctrl-gen.c:1668
uvc_get_digital_roi
uvc_error_t uvc_get_digital_roi(uvc_device_handle_t *devh, uint16_t *roi_top, uint16_t *roi_left, uint16_t *roi_bottom, uint16_t *roi_right, uint16_t *auto_controls, enum uvc_req_code req_code)
Reads the REGION_OF_INTEREST control.
Definition ctrl-gen.c:1116
uvc_get_ctrl
int uvc_get_ctrl(uvc_device_handle_t *devh, uint8_t unit, uint8_t ctrl, void *data, int len, enum uvc_req_code req_code)
Perform a GET_* request from an extension unit.
Definition ctrl.c:90
uvc_set_analog_video_standard
uvc_error_t uvc_set_analog_video_standard(uvc_device_handle_t *devh, uint8_t video_standard)
Sets the ANALOG_VIDEO_STANDARD control.
Definition ctrl-gen.c:2131
uvc_set_roll_abs
uvc_error_t uvc_set_roll_abs(uvc_device_handle_t *devh, int16_t roll)
Sets the ROLL_ABSOLUTE control.
Definition ctrl-gen.c:899
uvc_get_exposure_rel
uvc_error_t uvc_get_exposure_rel(uvc_device_handle_t *devh, int8_t *step, enum uvc_req_code req_code)
Reads the exposure time relative to the current setting.
Definition ctrl-gen.c:250
uvc_get_gain
uvc_error_t uvc_get_gain(uvc_device_handle_t *devh, uint16_t *gain, enum uvc_req_code req_code)
Reads the GAIN control.
Definition ctrl-gen.c:1398
uvc_set_hue_auto
uvc_error_t uvc_set_hue_auto(uvc_device_handle_t *devh, uint8_t hue_auto)
Sets the HUE_AUTO control.
Definition ctrl-gen.c:1587
uvc_set_gain
uvc_error_t uvc_set_gain(uvc_device_handle_t *devh, uint16_t gain)
Sets the GAIN control.
Definition ctrl-gen.c:1425
uvc_get_hue
uvc_error_t uvc_get_hue(uvc_device_handle_t *devh, int16_t *hue, enum uvc_req_code req_code)
Reads the HUE control.
Definition ctrl-gen.c:1506
uvc_get_white_balance_component
uvc_error_t uvc_get_white_balance_component(uvc_device_handle_t *devh, uint16_t *blue, uint16_t *red, enum uvc_req_code req_code)
Reads the WHITE_BALANCE_COMPONENT control.
Definition ctrl-gen.c:1885
uvc_set_digital_multiplier_limit
uvc_error_t uvc_set_digital_multiplier_limit(uvc_device_handle_t *devh, uint16_t multiplier_step)
Sets the DIGITAL_MULTIPLIER_LIMIT control.
Definition ctrl-gen.c:2077
uvc_get_pantilt_rel
uvc_error_t uvc_get_pantilt_rel(uvc_device_handle_t *devh, int8_t *pan_rel, uint8_t *pan_speed, int8_t *tilt_rel, uint8_t *tilt_speed, enum uvc_req_code req_code)
Reads the PANTILT_RELATIVE control.
Definition ctrl-gen.c:809
uvc_get_focus_abs
uvc_error_t uvc_get_focus_abs(uvc_device_handle_t *devh, uint16_t *focus, enum uvc_req_code req_code)
Reads the distance at which an object is optimally focused.
Definition ctrl-gen.c:304
uvc_set_power_line_frequency
uvc_error_t uvc_set_power_line_frequency(uvc_device_handle_t *devh, uint8_t power_line_frequency)
Sets the POWER_LINE_FREQUENCY control.
Definition ctrl-gen.c:1479
uvc_set_brightness
uvc_error_t uvc_set_brightness(uvc_device_handle_t *devh, int16_t brightness)
Sets the BRIGHTNESS control.
Definition ctrl-gen.c:1263
uvc_get_focus_rel
uvc_error_t uvc_get_focus_rel(uvc_device_handle_t *devh, int8_t *focus_rel, uint8_t *speed, enum uvc_req_code req_code)
Reads the FOCUS_RELATIVE control.
Definition ctrl-gen.c:359
uvc_set_contrast
uvc_error_t uvc_set_contrast(uvc_device_handle_t *devh, uint16_t contrast)
Sets the CONTRAST control.
Definition ctrl-gen.c:1317
uvc_get_iris_rel
uvc_error_t uvc_get_iris_rel(uvc_device_handle_t *devh, uint8_t *iris_rel, enum uvc_req_code req_code)
Reads the IRIS_RELATIVE control.
Definition ctrl-gen.c:578
uvc_get_roll_abs
uvc_error_t uvc_get_roll_abs(uvc_device_handle_t *devh, int16_t *roll, enum uvc_req_code req_code)
Reads the ROLL_ABSOLUTE control.
Definition ctrl-gen.c:872
uvc_set_white_balance_component_auto
uvc_error_t uvc_set_white_balance_component_auto(uvc_device_handle_t *devh, uint8_t white_balance_component_auto)
Sets the WHITE_BALANCE_COMPONENT_AUTO control.
Definition ctrl-gen.c:1969
uvc_set_exposure_abs
uvc_error_t uvc_set_exposure_abs(uvc_device_handle_t *devh, uint32_t time)
Sets the absolute exposure time.
Definition ctrl-gen.c:223
uvc_get_zoom_rel
uvc_error_t uvc_get_zoom_rel(uvc_device_handle_t *devh, int8_t *zoom_rel, uint8_t *digital_zoom, uint8_t *speed, enum uvc_req_code req_code)
Reads the ZOOM_RELATIVE control.
Definition ctrl-gen.c:688
uvc_get_zoom_abs
uvc_error_t uvc_get_zoom_abs(uvc_device_handle_t *devh, uint16_t *focal_length, enum uvc_req_code req_code)
Reads the ZOOM_ABSOLUTE control.
Definition ctrl-gen.c:632
uvc_get_hue_auto
uvc_error_t uvc_get_hue_auto(uvc_device_handle_t *devh, uint8_t *hue_auto, enum uvc_req_code req_code)
Reads the HUE_AUTO control.
Definition ctrl-gen.c:1560
uvc_set_white_balance_temperature_auto
uvc_error_t uvc_set_white_balance_temperature_auto(uvc_device_handle_t *devh, uint8_t temperature_auto)
Sets the WHITE_BALANCE_TEMPERATURE_AUTO control.
Definition ctrl-gen.c:1857
uvc_get_roll_rel
uvc_error_t uvc_get_roll_rel(uvc_device_handle_t *devh, int8_t *roll_rel, uint8_t *speed, enum uvc_req_code req_code)
Reads the ROLL_RELATIVE control.
Definition ctrl-gen.c:927
uvc_set_analog_video_lock_status
uvc_error_t uvc_set_analog_video_lock_status(uvc_device_handle_t *devh, uint8_t status)
Sets the ANALOG_LOCK_STATUS control.
Definition ctrl-gen.c:2185
uvc_set_iris_rel
uvc_error_t uvc_set_iris_rel(uvc_device_handle_t *devh, uint8_t iris_rel)
Sets the IRIS_RELATIVE control.
Definition ctrl-gen.c:605
uvc_set_white_balance_temperature
uvc_error_t uvc_set_white_balance_temperature(uvc_device_handle_t *devh, uint16_t temperature)
Sets the WHITE_BALANCE_TEMPERATURE control.
Definition ctrl-gen.c:1803
uvc_set_digital_roi
uvc_error_t uvc_set_digital_roi(uvc_device_handle_t *devh, uint16_t roi_top, uint16_t roi_left, uint16_t roi_bottom, uint16_t roi_right, uint16_t auto_controls)
Sets the REGION_OF_INTEREST control.
Definition ctrl-gen.c:1151
uvc_get_saturation
uvc_error_t uvc_get_saturation(uvc_device_handle_t *devh, uint16_t *saturation, enum uvc_req_code req_code)
Reads the SATURATION control.
Definition ctrl-gen.c:1614
uvc_get_privacy
uvc_error_t uvc_get_privacy(uvc_device_handle_t *devh, uint8_t *privacy, enum uvc_req_code req_code)
Reads the PRIVACY control.
Definition ctrl-gen.c:984
uvc_get_ae_priority
uvc_error_t uvc_get_ae_priority(uvc_device_handle_t *devh, uint8_t *priority, enum uvc_req_code req_code)
Checks whether the camera may vary the frame rate for exposure control reasons.
Definition ctrl-gen.c:133
uvc_get_ctrl_len
int uvc_get_ctrl_len(uvc_device_handle_t *devh, uint8_t unit, uint8_t ctrl)
Get the length of a control on a terminal or unit.
Definition ctrl.c:59
uvc_set_focus_rel
uvc_error_t uvc_set_focus_rel(uvc_device_handle_t *devh, int8_t focus_rel, uint8_t speed)
Sets the FOCUS_RELATIVE control.
Definition ctrl-gen.c:388
uvc_get_white_balance_component_auto
uvc_error_t uvc_get_white_balance_component_auto(uvc_device_handle_t *devh, uint8_t *white_balance_component_auto, enum uvc_req_code req_code)
Reads the WHITE_BALANCE_COMPONENT_AUTO control.
Definition ctrl-gen.c:1942
uvc_get_white_balance_temperature
uvc_error_t uvc_get_white_balance_temperature(uvc_device_handle_t *devh, uint16_t *temperature, enum uvc_req_code req_code)
Reads the WHITE_BALANCE_TEMPERATURE control.
Definition ctrl-gen.c:1776
uvc_set_zoom_rel
uvc_error_t uvc_set_zoom_rel(uvc_device_handle_t *devh, int8_t zoom_rel, uint8_t digital_zoom, uint8_t speed)
Sets the ZOOM_RELATIVE control.
Definition ctrl-gen.c:719
uvc_get_brightness
uvc_error_t uvc_get_brightness(uvc_device_handle_t *devh, int16_t *brightness, enum uvc_req_code req_code)
Reads the BRIGHTNESS control.
Definition ctrl-gen.c:1236
uvc_set_digital_multiplier
uvc_error_t uvc_set_digital_multiplier(uvc_device_handle_t *devh, uint16_t multiplier_step)
Sets the DIGITAL_MULTIPLIER control.
Definition ctrl-gen.c:2023
uvc_set_hue
uvc_error_t uvc_set_hue(uvc_device_handle_t *devh, int16_t hue)
Sets the HUE control.
Definition ctrl-gen.c:1533
uvc_get_scanning_mode
uvc_error_t uvc_get_scanning_mode(uvc_device_handle_t *devh, uint8_t *mode, enum uvc_req_code req_code)
Reads the SCANNING_MODE control.
Definition ctrl-gen.c:14
uvc_set_ae_mode
uvc_error_t uvc_set_ae_mode(uvc_device_handle_t *devh, uint8_t mode)
Sets camera's auto-exposure mode.
Definition ctrl-gen.c:105
uvc_set_ae_priority
uvc_error_t uvc_set_ae_priority(uvc_device_handle_t *devh, uint8_t priority)
Chooses whether the camera may vary the frame rate for exposure control reasons.
Definition ctrl-gen.c:163
uvc_get_backlight_compensation
uvc_error_t uvc_get_backlight_compensation(uvc_device_handle_t *devh, uint16_t *backlight_compensation, enum uvc_req_code req_code)
Reads the BACKLIGHT_COMPENSATION control.
Definition ctrl-gen.c:1182
uvc_get_digital_multiplier_limit
uvc_error_t uvc_get_digital_multiplier_limit(uvc_device_handle_t *devh, uint16_t *multiplier_step, enum uvc_req_code req_code)
Reads the DIGITAL_MULTIPLIER_LIMIT control.
Definition ctrl-gen.c:2050
uvc_set_ctrl
int uvc_set_ctrl(uvc_device_handle_t *devh, uint8_t unit, uint8_t ctrl, void *data, int len)
Perform a SET_CUR request to a terminal or unit.
Definition ctrl.c:113
uvc_set_focus_auto
uvc_error_t uvc_set_focus_auto(uvc_device_handle_t *devh, uint8_t state)
Sets the FOCUS_AUTO control.
Definition ctrl-gen.c:497
uvc_set_zoom_abs
uvc_error_t uvc_set_zoom_abs(uvc_device_handle_t *devh, uint16_t focal_length)
Sets the ZOOM_ABSOLUTE control.
Definition ctrl-gen.c:659
uvc_set_digital_window
uvc_error_t uvc_set_digital_window(uvc_device_handle_t *devh, uint16_t window_top, uint16_t window_left, uint16_t window_bottom, uint16_t window_right, uint16_t num_steps, uint16_t num_steps_units)
Sets the DIGITAL_WINDOW control.
Definition ctrl-gen.c:1080
uvc_set_sharpness
uvc_error_t uvc_set_sharpness(uvc_device_handle_t *devh, uint16_t sharpness)
Sets the SHARPNESS control.
Definition ctrl-gen.c:1695
uvc_set_backlight_compensation
uvc_error_t uvc_set_backlight_compensation(uvc_device_handle_t *devh, uint16_t backlight_compensation)
Sets the BACKLIGHT_COMPENSATION control.
Definition ctrl-gen.c:1209
uvc_get_input_select
uvc_error_t uvc_get_input_select(uvc_device_handle_t *devh, uint8_t *selector, enum uvc_req_code req_code)
Reads the INPUT_SELECT control.
Definition ctrl-gen.c:2212
uvc_set_contrast_auto
uvc_error_t uvc_set_contrast_auto(uvc_device_handle_t *devh, uint8_t contrast_auto)
Sets the CONTRAST_AUTO control.
Definition ctrl-gen.c:1371
uvc_get_exposure_abs
uvc_error_t uvc_get_exposure_abs(uvc_device_handle_t *devh, uint32_t *time, enum uvc_req_code req_code)
Gets the absolute exposure time.
Definition ctrl-gen.c:192
uvc_set_focus_abs
uvc_error_t uvc_set_focus_abs(uvc_device_handle_t *devh, uint16_t focus)
Sets the distance at which an object is optimally focused.
Definition ctrl-gen.c:331
uvc_set_white_balance_component
uvc_error_t uvc_set_white_balance_component(uvc_device_handle_t *devh, uint16_t blue, uint16_t red)
Sets the WHITE_BALANCE_COMPONENT control.
Definition ctrl-gen.c:1914
uvc_set_input_select
uvc_error_t uvc_set_input_select(uvc_device_handle_t *devh, uint8_t selector)
Sets the INPUT_SELECT control.
Definition ctrl-gen.c:2239
uvc_set_scanning_mode
uvc_error_t uvc_set_scanning_mode(uvc_device_handle_t *devh, uint8_t mode)
Sets the SCANNING_MODE control.
Definition ctrl-gen.c:41
uvc_get_white_balance_temperature_auto
uvc_error_t uvc_get_white_balance_temperature_auto(uvc_device_handle_t *devh, uint8_t *temperature_auto, enum uvc_req_code req_code)
Reads the WHITE_BALANCE_TEMPERATURE_AUTO control.
Definition ctrl-gen.c:1830
uvc_set_saturation
uvc_error_t uvc_set_saturation(uvc_device_handle_t *devh, uint16_t saturation)
Sets the SATURATION control.
Definition ctrl-gen.c:1641
uvc_set_exposure_rel
uvc_error_t uvc_set_exposure_rel(uvc_device_handle_t *devh, int8_t step)
Sets the exposure time relative to the current setting.
Definition ctrl-gen.c:277
uvc_get_analog_video_lock_status
uvc_error_t uvc_get_analog_video_lock_status(uvc_device_handle_t *devh, uint8_t *status, enum uvc_req_code req_code)
Reads the ANALOG_LOCK_STATUS control.
Definition ctrl-gen.c:2158
uvc_get_contrast_auto
uvc_error_t uvc_get_contrast_auto(uvc_device_handle_t *devh, uint8_t *contrast_auto, enum uvc_req_code req_code)
Reads the CONTRAST_AUTO control.
Definition ctrl-gen.c:1344
uvc_get_focus_auto
uvc_error_t uvc_get_focus_auto(uvc_device_handle_t *devh, uint8_t *state, enum uvc_req_code req_code)
Reads the FOCUS_AUTO control.
Definition ctrl-gen.c:470
uvc_get_gamma
uvc_error_t uvc_get_gamma(uvc_device_handle_t *devh, uint16_t *gamma, enum uvc_req_code req_code)
Reads the GAMMA control.
Definition ctrl-gen.c:1722
uvc_get_pantilt_abs
uvc_error_t uvc_get_pantilt_abs(uvc_device_handle_t *devh, int32_t *pan, int32_t *tilt, enum uvc_req_code req_code)
Reads the PANTILT_ABSOLUTE control.
Definition ctrl-gen.c:749
uvc_set_gamma
uvc_error_t uvc_set_gamma(uvc_device_handle_t *devh, uint16_t gamma)
Sets the GAMMA control.
Definition ctrl-gen.c:1749
uvc_set_iris_abs
uvc_error_t uvc_set_iris_abs(uvc_device_handle_t *devh, uint16_t iris)
Sets the IRIS_ABSOLUTE control.
Definition ctrl-gen.c:551
uvc_get_ae_mode
uvc_error_t uvc_get_ae_mode(uvc_device_handle_t *devh, uint8_t *mode, enum uvc_req_code req_code)
Reads camera's auto-exposure mode.
Definition ctrl-gen.c:70
uvc_set_pantilt_abs
uvc_error_t uvc_set_pantilt_abs(uvc_device_handle_t *devh, int32_t pan, int32_t tilt)
Sets the PANTILT_ABSOLUTE control.
Definition ctrl-gen.c:778
uvc_set_pantilt_rel
uvc_error_t uvc_set_pantilt_rel(uvc_device_handle_t *devh, int8_t pan_rel, uint8_t pan_speed, int8_t tilt_rel, uint8_t tilt_speed)
Sets the PANTILT_RELATIVE control.
Definition ctrl-gen.c:842
uvc_get_power_line_frequency
uvc_error_t uvc_get_power_line_frequency(uvc_device_handle_t *devh, uint8_t *power_line_frequency, enum uvc_req_code req_code)
Reads the POWER_LINE_FREQUENCY control.
Definition ctrl-gen.c:1452
uvc_find_device
uvc_error_t uvc_find_device(uvc_context_t *ctx, uvc_device_t **dev, int vid, int pid, const char *sn)
Finds a camera identified by vendor, product and/or serial number.
Definition device.c:128
uvc_get_device_descriptor
uvc_error_t uvc_get_device_descriptor(uvc_device_t *dev, uvc_device_descriptor_t **desc)
Get a descriptor that contains the general information about a device.
Definition device.c:591
uvc_get_device
uvc_device_t * uvc_get_device(uvc_device_handle_t *devh)
Get the uvc_device_t corresponding to an open device.
Definition device.c:823
uvc_close
void uvc_close(uvc_device_handle_t *devh)
Close a device.
Definition device.c:1721
uvc_status_callback_t
void() uvc_status_callback_t(enum uvc_status_class status_class, int event, int selector, enum uvc_status_attribute status_attribute, void *data, size_t data_len, void *user_ptr)
A callback function to accept status updates.
Definition libuvc.h:419
uvc_find_devices
uvc_error_t uvc_find_devices(uvc_context_t *ctx, uvc_device_t ***devs, int vid, int pid, const char *sn)
Finds all cameras identified by vendor, product and/or serial number.
Definition device.c:189
uvc_get_device_address
uint8_t uvc_get_device_address(uvc_device_t *dev)
Get the number assigned to the device within its bus.
Definition device.c:262
uvc_set_button_callback
void uvc_set_button_callback(uvc_device_handle_t *devh, uvc_button_callback_t cb, void *user_ptr)
Set a callback function to receive button events.
Definition device.c:1954
uvc_set_status_callback
void uvc_set_status_callback(uvc_device_handle_t *devh, uvc_status_callback_t cb, void *user_ptr)
Set a callback function to receive status updates.
Definition device.c:1939
uvc_button_callback_t
void() uvc_button_callback_t(int button, int state, void *user_ptr)
A callback function to accept button events.
Definition libuvc.h:429
uvc_ref_device
void uvc_ref_device(uvc_device_t *dev)
Increment the reference count for a device.
Definition device.c:938
uvc_free_device_descriptor
void uvc_free_device_descriptor(uvc_device_descriptor_t *desc)
Frees a device descriptor created with uvc_get_device_descriptor.
Definition device.c:651
uvc_get_device_list
uvc_error_t uvc_get_device_list(uvc_context_t *ctx, uvc_device_t ***list)
Get a list of the UVC devices attached to the system.
Definition device.c:679
uvc_get_libusb_handle
struct libusb_device_handle * uvc_get_libusb_handle(uvc_device_handle_t *devh)
Get the underlying libusb device handle for an open device.
Definition device.c:840
uvc_get_bus_number
uint8_t uvc_get_bus_number(uvc_device_t *dev)
Get the number of the bus to which the device is attached.
Definition device.c:255
uvc_free_device_list
void uvc_free_device_list(uvc_device_t **list, uint8_t unref_devices)
Frees a list of device structures created with uvc_get_device_list.
Definition device.c:798
uvc_open
uvc_error_t uvc_open(uvc_device_t *dev, uvc_device_handle_t **devh)
Open a UVC device.
Definition device.c:316
uvc_error_t
enum uvc_error uvc_error_t
UVC error types, based on libusb errors.
uvc_strerror
const char * uvc_strerror(uvc_error_t err)
Return a string explaining an error in the UVC driver.
Definition diag.c:88
uvc_print_diag
void uvc_print_diag(uvc_device_handle_t *devh, FILE *stream)
Print camera capabilities and configuration.
Definition diag.c:143
uvc_print_stream_ctrl
void uvc_print_stream_ctrl(uvc_stream_ctrl_t *ctrl, FILE *stream)
Print the values in a stream control block.
Definition diag.c:106
uvc_perror
void uvc_perror(uvc_error_t err, const char *msg)
Print a message explaining an error in the UVC driver.
Definition diag.c:73
uvc_error
uvc_error
UVC error types, based on libusb errors.
Definition libuvc.h:19
UVC_ERROR_PIPE
@ UVC_ERROR_PIPE
Pipe error.
Definition libuvc.h:39
UVC_ERROR_NOT_SUPPORTED
@ UVC_ERROR_NOT_SUPPORTED
Operation not supported.
Definition libuvc.h:45
UVC_ERROR_BUSY
@ UVC_ERROR_BUSY
Resource busy.
Definition libuvc.h:33
UVC_ERROR_OTHER
@ UVC_ERROR_OTHER
Undefined error.
Definition libuvc.h:53
UVC_ERROR_INTERRUPTED
@ UVC_ERROR_INTERRUPTED
System call interrupted.
Definition libuvc.h:41
UVC_ERROR_OVERFLOW
@ UVC_ERROR_OVERFLOW
Overflow.
Definition libuvc.h:37
UVC_ERROR_CALLBACK_EXISTS
@ UVC_ERROR_CALLBACK_EXISTS
Resource has a callback (can't use polling and async)
Definition libuvc.h:51
UVC_ERROR_NO_DEVICE
@ UVC_ERROR_NO_DEVICE
No such device.
Definition libuvc.h:29
UVC_ERROR_IO
@ UVC_ERROR_IO
Input/output error.
Definition libuvc.h:23
UVC_ERROR_INVALID_DEVICE
@ UVC_ERROR_INVALID_DEVICE
Device is not UVC-compliant.
Definition libuvc.h:47
UVC_ERROR_INVALID_MODE
@ UVC_ERROR_INVALID_MODE
Mode not supported.
Definition libuvc.h:49
UVC_ERROR_INVALID_PARAM
@ UVC_ERROR_INVALID_PARAM
Invalid parameter.
Definition libuvc.h:25
UVC_SUCCESS
@ UVC_SUCCESS
Success (no error)
Definition libuvc.h:21
UVC_ERROR_TIMEOUT
@ UVC_ERROR_TIMEOUT
Operation timed out.
Definition libuvc.h:35
UVC_ERROR_NO_MEM
@ UVC_ERROR_NO_MEM
Insufficient memory.
Definition libuvc.h:43
UVC_ERROR_NOT_FOUND
@ UVC_ERROR_NOT_FOUND
Entity not found.
Definition libuvc.h:31
UVC_ERROR_ACCESS
@ UVC_ERROR_ACCESS
Access denied.
Definition libuvc.h:27
uvc_mjpeg2rgb
uvc_error_t uvc_mjpeg2rgb(uvc_frame_t *in, uvc_frame_t *out)
Convert an MJPEG frame to RGB.
Definition frame-mjpeg.c:180
uvc_mjpeg2gray
uvc_error_t uvc_mjpeg2gray(uvc_frame_t *in, uvc_frame_t *out)
Convert an MJPEG frame to GRAY8.
Definition frame-mjpeg.c:205
uvc_yuyv2y
uvc_error_t uvc_yuyv2y(uvc_frame_t *in, uvc_frame_t *out)
Convert a frame from YUYV to Y (GRAY8)
Definition frame.c:265
uvc_any2rgb
uvc_error_t uvc_any2rgb(uvc_frame_t *in, uvc_frame_t *out)
Convert a frame to RGB.
Definition frame.c:441
uvc_yuyv2rgb
uvc_error_t uvc_yuyv2rgb(uvc_frame_t *in, uvc_frame_t *out)
Convert a frame from YUYV to RGB.
Definition frame.c:174
uvc_yuyv2bgr
uvc_error_t uvc_yuyv2bgr(uvc_frame_t *in, uvc_frame_t *out)
Convert a frame from YUYV to BGR.
Definition frame.c:225
uvc_uyvy2rgb
uvc_error_t uvc_uyvy2rgb(uvc_frame_t *in, uvc_frame_t *out)
Convert a frame from UYVY to RGB.
Definition frame.c:355
uvc_free_frame
void uvc_free_frame(uvc_frame_t *frame)
Free a frame structure.
Definition frame.c:92
uvc_yuyv2uv
uvc_error_t uvc_yuyv2uv(uvc_frame_t *in, uvc_frame_t *out)
Convert a frame from YUYV to UV (GRAY8)
Definition frame.c:305
uvc_allocate_frame
uvc_frame_t * uvc_allocate_frame(size_t data_bytes)
Allocate a frame structure.
Definition frame.c:64
uvc_uyvy2bgr
uvc_error_t uvc_uyvy2bgr(uvc_frame_t *in, uvc_frame_t *out)
Convert a frame from UYVY to BGR.
Definition frame.c:405
uvc_any2bgr
uvc_error_t uvc_any2bgr(uvc_frame_t *in, uvc_frame_t *out)
Convert a frame to BGR.
Definition frame.c:464
uvc_duplicate_frame
uvc_error_t uvc_duplicate_frame(uvc_frame_t *in, uvc_frame_t *out)
Duplicate a frame, preserving color format.
Definition frame.c:114
uvc_init
uvc_error_t uvc_init(uvc_context_t **ctx, struct libusb_context *usb_ctx)
Initializes the UVC context.
Definition init.c:104
uvc_exit
void uvc_exit(uvc_context_t *ctx)
Closes the UVC context, shutting down any active cameras.
Definition init.c:138
uvc_stream_stop
uvc_error_t uvc_stream_stop(uvc_stream_handle_t *strmh)
Stop stream.
Definition stream.c:1492
uvc_frame_callback_t
void() uvc_frame_callback_t(struct uvc_frame *frame, void *user_ptr)
A callback function to handle incoming assembled UVC frames.
Definition libuvc.h:493
uvc_stream_close
void uvc_stream_close(uvc_stream_handle_t *strmh)
Close stream.
Definition stream.c:1542
uvc_start_streaming
uvc_error_t uvc_start_streaming(uvc_device_handle_t *devh, uvc_stream_ctrl_t *ctrl, uvc_frame_callback_t *cb, void *user_ptr, uint8_t flags)
Begin streaming video from the camera into the callback function.
Definition stream.c:931
uvc_stream_start_iso
uvc_error_t uvc_stream_start_iso(uvc_stream_handle_t *strmh, uvc_frame_callback_t *cb, void *user_ptr)
Begin streaming video from the stream into the callback function.
Definition stream.c:1283
uvc_stream_ctrl_t
struct uvc_stream_ctrl uvc_stream_ctrl_t
Streaming mode, includes all information needed to select stream.
uvc_get_still_ctrl_format_size
uvc_error_t uvc_get_still_ctrl_format_size(uvc_device_handle_t *devh, uvc_stream_ctrl_t *ctrl, uvc_still_ctrl_t *still_ctrl, int width, int height)
Get a negotiated still control block for some common parameters.
Definition stream.c:549
uvc_stop_streaming
void uvc_stop_streaming(uvc_device_handle_t *devh)
Stop streaming video.
Definition stream.c:1477
uvc_frame_format
uvc_frame_format
Color coding of stream, transport-independent.
Definition libuvc.h:59
uvc_stream_start
uvc_error_t uvc_stream_start(uvc_stream_handle_t *strmh, uvc_frame_callback_t *cb, void *user_ptr, uint8_t flags)
Begin streaming video from the stream into the callback function.
Definition stream.c:1075
uvc_stream_open_ctrl
uvc_error_t uvc_stream_open_ctrl(uvc_device_handle_t *devh, uvc_stream_handle_t **strmh, uvc_stream_ctrl_t *ctrl)
Open a new video stream.
Definition stream.c:1005
uvc_start_iso_streaming
uvc_error_t uvc_start_iso_streaming(uvc_device_handle_t *devh, uvc_stream_ctrl_t *ctrl, uvc_frame_callback_t *cb, void *user_ptr)
Begin streaming video from the camera into the callback function.
Definition stream.c:967
uvc_trigger_still
uvc_error_t uvc_trigger_still(uvc_device_handle_t *devh, uvc_still_ctrl_t *still_ctrl)
Initiate a method 2 (in stream) still capture.
Definition stream.c:346
uvc_get_stream_ctrl_format_size
uvc_error_t uvc_get_stream_ctrl_format_size(uvc_device_handle_t *devh, uvc_stream_ctrl_t *ctrl, enum uvc_frame_format format, int width, int height, int fps)
Get a negotiated streaming control block for some common parameters.
Definition stream.c:470
uvc_frame_t
struct uvc_frame uvc_frame_t
An image frame received from the UVC device.
uvc_stream_get_frame
uvc_error_t uvc_stream_get_frame(uvc_stream_handle_t *strmh, uvc_frame_t **frame, int32_t timeout_us)
Poll for a frame.
Definition stream.c:1397
UVC_FRAME_FORMAT_RGB
@ UVC_FRAME_FORMAT_RGB
24-bit RGB
Definition libuvc.h:71
UVC_FRAME_FORMAT_COUNT
@ UVC_FRAME_FORMAT_COUNT
Number of formats understood.
Definition libuvc.h:91
UVC_FRAME_FORMAT_P010
@ UVC_FRAME_FORMAT_P010
YUV: P010.
Definition libuvc.h:89
UVC_FRAME_FORMAT_GRAY8
@ UVC_FRAME_FORMAT_GRAY8
Greyscale images.
Definition libuvc.h:77
UVC_FRAME_FORMAT_ANY
@ UVC_FRAME_FORMAT_ANY
Any supported format.
Definition libuvc.h:62
UVC_FRAME_FORMAT_NV12
@ UVC_FRAME_FORMAT_NV12
YUV420: NV12.
Definition libuvc.h:87
UVC_FRAME_FORMAT_MJPEG
@ UVC_FRAME_FORMAT_MJPEG
Motion-JPEG (or JPEG) encoded images.
Definition libuvc.h:74
UVC_FRAME_FORMAT_YUYV
@ UVC_FRAME_FORMAT_YUYV
YUYV/YUV2/YUV422: YUV encoding with one luminance value per pixel and one UV (chrominance) pair for e...
Definition libuvc.h:68
uvc_device_descriptor
Structure representing a UVC device descriptor.
Definition libuvc.h:437
uvc_device_descriptor::idProduct
uint16_t idProduct
Product ID.
Definition libuvc.h:441
uvc_device_descriptor::manufacturer
const char * manufacturer
Device-reported manufacturer name (or null)
Definition libuvc.h:447
uvc_device_descriptor::serialNumber
const char * serialNumber
Serial number (null if unavailable)
Definition libuvc.h:445
uvc_device_descriptor::idVendor
uint16_t idVendor
Vendor ID.
Definition libuvc.h:439
uvc_device_descriptor::bcdUVC
uint16_t bcdUVC
UVC compliance level, e.g.
Definition libuvc.h:443
uvc_device_descriptor::product
const char * product
Device-reporter product name (or null)
Definition libuvc.h:449
uvc_extension_unit
Custom processing or camera-control functions.
Definition libuvc.h:393
uvc_extension_unit::guidExtensionCode
uint8_t guidExtensionCode[16]
GUID identifying the extension unit.
Definition libuvc.h:398
uvc_extension_unit::bUnitID
uint8_t bUnitID
Index of the extension unit within the device.
Definition libuvc.h:396
uvc_extension_unit::bmControls
uint64_t bmControls
Bitmap of available controls (manufacturer-dependent)
Definition libuvc.h:400
uvc_format_desc
Format descriptor.
Definition libuvc.h:196
uvc_format_desc::frame_descs
struct uvc_frame_desc * frame_descs
Available frame specifications for this format.
Definition libuvc.h:224
uvc_format_desc::bmFlags
uint8_t bmFlags
Flags for JPEG stream.
Definition libuvc.h:214
uvc_format_desc::bFormatIndex
uint8_t bFormatIndex
Identifier of this format within the VS interface's format list.
Definition libuvc.h:202
uvc_format_desc::bDescriptorSubtype
enum uvc_vs_desc_subtype bDescriptorSubtype
Type of image stream, such as JPEG or uncompressed.
Definition libuvc.h:200
uvc_format_desc::bBitsPerPixel
uint8_t bBitsPerPixel
BPP for uncompressed stream.
Definition libuvc.h:212
uvc_format_desc::bDefaultFrameIndex
uint8_t bDefaultFrameIndex
Default {uvc_frame_desc} to choose given this format.
Definition libuvc.h:217
uvc_frame_desc
Frame descriptor.
Definition libuvc.h:157
uvc_frame_desc::wWidth
uint16_t wWidth
Image width.
Definition libuvc.h:166
uvc_frame_desc::intervals
uint32_t * intervals
Available frame rates, zero-terminated (in 100ns units)
Definition libuvc.h:188
uvc_frame_desc::bFrameIndex
uint8_t bFrameIndex
Index of the frame within the list of specs available for this format.
Definition libuvc.h:163
uvc_frame_desc::wHeight
uint16_t wHeight
Image height.
Definition libuvc.h:168
uvc_frame_desc::dwBytesPerLine
uint32_t dwBytesPerLine
number of bytes per line
Definition libuvc.h:186
uvc_frame_desc::dwDefaultFrameInterval
uint32_t dwDefaultFrameInterval
Default frame interval (in 100ns units)
Definition libuvc.h:176
uvc_frame_desc::bDescriptorSubtype
enum uvc_vs_desc_subtype bDescriptorSubtype
Type of frame, such as JPEG frame or uncompressed frme.
Definition libuvc.h:161
uvc_frame_desc::dwMaxBitRate
uint32_t dwMaxBitRate
Bitrate of corresponding stream at maximal frame rate.
Definition libuvc.h:172
uvc_frame_desc::bFrameIntervalType
uint8_t bFrameIntervalType
Frame intervals.
Definition libuvc.h:184
uvc_frame_desc::dwMaxVideoFrameBufferSize
uint32_t dwMaxVideoFrameBufferSize
Maximum number of bytes for a video frame.
Definition libuvc.h:174
uvc_frame_desc::dwMinFrameInterval
uint32_t dwMinFrameInterval
Minimum frame interval for continuous mode (100ns units)
Definition libuvc.h:178
uvc_frame_desc::dwMinBitRate
uint32_t dwMinBitRate
Bitrate of corresponding stream at minimal frame rate.
Definition libuvc.h:170
uvc_frame_desc::dwFrameIntervalStep
uint32_t dwFrameIntervalStep
Granularity of frame interval range for continuous mode (100ns)
Definition libuvc.h:182
uvc_frame_desc::dwMaxFrameInterval
uint32_t dwMaxFrameInterval
Maximum frame interval for continuous mode (100ns units)
Definition libuvc.h:180
uvc_frame
An image frame received from the UVC device.
Definition libuvc.h:455
uvc_frame::frame_format
enum uvc_frame_format frame_format
Pixel data format.
Definition libuvc.h:465
uvc_frame::data_bytes
size_t data_bytes
Size of image data buffer.
Definition libuvc.h:459
uvc_frame::width
uint32_t width
Width of image in pixels.
Definition libuvc.h:461
uvc_frame::library_owns_data
uint8_t library_owns_data
Is the data buffer owned by the library? If 1, the data buffer can be arbitrarily reallocated by fram...
Definition libuvc.h:483
uvc_frame::height
uint32_t height
Height of image in pixels.
Definition libuvc.h:463
uvc_frame::sequence
uint32_t sequence
Frame number (may skip, but is strictly monotonically increasing)
Definition libuvc.h:469
uvc_frame::metadata
void * metadata
Metadata for this frame if available.
Definition libuvc.h:485
uvc_frame::step
size_t step
Number of bytes per horizontal line (undefined for compressed format)
Definition libuvc.h:467
uvc_frame::capture_time
struct timeval capture_time
Estimate of system time when the device started capturing the image.
Definition libuvc.h:471
uvc_frame::data
void * data
Image data for this frame.
Definition libuvc.h:457
uvc_frame::source
uvc_device_handle_t * source
Handle on the device that produced the image.
Definition libuvc.h:476
uvc_frame::capture_time_finished
struct timespec capture_time_finished
Estimate of system time when the device finished receiving the image.
Definition libuvc.h:473
uvc_frame::metadata_bytes
size_t metadata_bytes
Size of metadata buffer.
Definition libuvc.h:487
uvc_input_terminal
Representation of the interface that brings data into the UVC device.
Definition libuvc.h:356
uvc_input_terminal::bTerminalID
uint8_t bTerminalID
Index of the terminal within the device.
Definition libuvc.h:359
uvc_input_terminal::bmControls
uint64_t bmControls
Camera controls (meaning of bits given in {uvc_ct_ctrl_selector})
Definition libuvc.h:366
uvc_input_terminal::wTerminalType
enum uvc_it_type wTerminalType
Type of terminal (e.g., camera)
Definition libuvc.h:361
uvc_processing_unit
Represents post-capture processing functions.
Definition libuvc.h:375
uvc_processing_unit::bUnitID
uint8_t bUnitID
Index of the processing unit within the device.
Definition libuvc.h:378
uvc_processing_unit::bmControls
uint64_t bmControls
Processing controls (meaning of bits given in {uvc_pu_ctrl_selector})
Definition libuvc.h:382
uvc_processing_unit::bSourceID
uint8_t bSourceID
Index of the terminal from which the device accepts images.
Definition libuvc.h:380
uvc_selector_unit
Represents selector unit to connect other units.
Definition libuvc.h:386
uvc_selector_unit::bUnitID
uint8_t bUnitID
Index of the selector unit within the device.
Definition libuvc.h:389
uvc_stream_ctrl
Streaming mode, includes all information needed to select stream.
Definition libuvc.h:498