Intel® RealSense™ Cross Platform API
Intel Realsense Cross-platform API
Classes | Typedefs | Enumerations | Functions
libuvc.h File Reference
#include <stdio.h>
#include <errno.h>
#include <libusb.h>
#include <sys/time.h>
#include "libuvc_config.h"

Go to the source code of this file.

Classes

struct  uvc_frame_desc
 
struct  uvc_format_desc
 
struct  uvc_input_terminal
 
struct  uvc_output_terminal
 
struct  uvc_processing_unit
 
struct  uvc_extension_unit
 
struct  uvc_device_descriptor
 
struct  uvc_frame
 
struct  uvc_stream_ctrl
 

Typedefs

typedef enum uvc_error uvc_error_t
 
typedef struct uvc_frame_desc uvc_frame_desc_t
 
typedef struct uvc_format_desc uvc_format_desc_t
 
typedef struct uvc_context uvc_context_t
 
typedef struct uvc_device uvc_device_t
 
typedef struct uvc_device_handle uvc_device_handle_t
 
typedef struct uvc_stream_handle uvc_stream_handle_t
 
typedef struct uvc_input_terminal uvc_input_terminal_t
 
typedef struct uvc_output_terminal uvc_output_terminal_t
 
typedef struct uvc_processing_unit uvc_processing_unit_t
 
typedef struct uvc_extension_unit uvc_extension_unit_t
 
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 struct uvc_device_descriptor uvc_device_descriptor_t
 
typedef struct uvc_frame uvc_frame_t
 
typedef void() uvc_frame_callback_t(struct uvc_frame *frame, void *user_ptr)
 
typedef struct uvc_stream_ctrl uvc_stream_ctrl_t
 

Enumerations

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
}
 
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
}
 
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 }
 
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 }
 

Functions

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_open (uvc_device_t *dev, uvc_device_handle_t **devh)
 
uvc_error_t uvc_open2 (uvc_device_t *dev, uvc_device_handle_t **devh, int camera_number)
 
void uvc_close (uvc_device_handle_t *devh)
 
uvc_device_tuvc_get_device (uvc_device_handle_t *devh)
 
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)
 
const uvc_input_terminal_tuvc_get_input_terminals (uvc_device_handle_t *devh)
 
const uvc_output_terminal_tuvc_get_output_terminals (uvc_device_handle_t *devh)
 
const uvc_processing_unit_tuvc_get_processing_units (uvc_device_handle_t *devh)
 
const uvc_extension_unit_tuvc_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, uint32_t fourcc, int width, int height, int fps)
 
const uvc_format_desc_tuvc_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_start_streaming (uvc_device_handle_t *devh, uvc_stream_ctrl_t *ctrl, uvc_frame_callback_t *cb, void *user_ptr, uint8_t flags, int num_transfer_buffers)
 
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, int num_transfer_buffers)
 
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)
 
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)
 
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_tuvc_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)
 

Typedef Documentation

◆ uvc_context_t

typedef struct uvc_context uvc_context_t

◆ uvc_device_descriptor_t

Structure representing a UVC device descriptor.

(This isn't a standard structure.)

◆ uvc_device_handle_t

typedef struct uvc_device_handle uvc_device_handle_t

◆ uvc_device_t

typedef struct uvc_device uvc_device_t

◆ uvc_error_t

typedef enum uvc_error uvc_error_t

UVC error types, based on libusb errors

◆ uvc_extension_unit_t

Custom processing or camera-control functions

◆ uvc_format_desc_t

Format descriptor

A "format" determines a stream's image type (e.g., raw YUYV or JPEG) and includes many "frame" configurations.

◆ uvc_frame_callback_t

typedef void() uvc_frame_callback_t(struct uvc_frame *frame, void *user_ptr)

A callback function to handle incoming assembled UVC frames

◆ uvc_frame_desc_t

Frame descriptor

A "frame" is a configuration of a streaming format for a particular image size at one of possibly several available frame rates.

◆ uvc_frame_t

typedef struct uvc_frame uvc_frame_t

An image frame received from the UVC device

◆ uvc_input_terminal_t

Representation of the interface that brings data into the UVC device

◆ uvc_output_terminal_t

◆ uvc_processing_unit_t

Represents post-capture processing functions

◆ uvc_status_callback_t

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)

A callback function to accept status updates

◆ uvc_stream_ctrl_t

Streaming mode, includes all information needed to select stream

◆ uvc_stream_handle_t

typedef struct uvc_stream_handle uvc_stream_handle_t

Enumeration Type Documentation

◆ uvc_ct_ctrl_selector

Camera terminal control selector (A.9.4)

Enumerator
UVC_CT_CONTROL_UNDEFINED 
UVC_CT_SCANNING_MODE_CONTROL 
UVC_CT_AE_MODE_CONTROL 
UVC_CT_AE_PRIORITY_CONTROL 
UVC_CT_EXPOSURE_TIME_ABSOLUTE_CONTROL 
UVC_CT_EXPOSURE_TIME_RELATIVE_CONTROL 
UVC_CT_FOCUS_ABSOLUTE_CONTROL 
UVC_CT_FOCUS_RELATIVE_CONTROL 
UVC_CT_FOCUS_AUTO_CONTROL 
UVC_CT_IRIS_ABSOLUTE_CONTROL 
UVC_CT_IRIS_RELATIVE_CONTROL 
UVC_CT_ZOOM_ABSOLUTE_CONTROL 
UVC_CT_ZOOM_RELATIVE_CONTROL 
UVC_CT_PANTILT_ABSOLUTE_CONTROL 
UVC_CT_PANTILT_RELATIVE_CONTROL 
UVC_CT_ROLL_ABSOLUTE_CONTROL 
UVC_CT_ROLL_RELATIVE_CONTROL 
UVC_CT_PRIVACY_CONTROL 
UVC_CT_FOCUS_SIMPLE_CONTROL 
UVC_CT_DIGITAL_WINDOW_CONTROL 
UVC_CT_REGION_OF_INTEREST_CONTROL 

◆ uvc_device_power_mode

Enumerator
UVC_VC_VIDEO_POWER_MODE_FULL 
UVC_VC_VIDEO_POWER_MODE_DEVICE_DEPENDENT 

◆ uvc_error

enum uvc_error

UVC error types, based on libusb errors

Enumerator
UVC_SUCCESS 

Success (no error)

UVC_ERROR_IO 

Input/output error

UVC_ERROR_INVALID_PARAM 

Invalid parameter

UVC_ERROR_ACCESS 

Access denied

UVC_ERROR_NO_DEVICE 

No such device

UVC_ERROR_NOT_FOUND 

Entity not found

UVC_ERROR_BUSY 

Resource busy

UVC_ERROR_TIMEOUT 

Operation timed out

UVC_ERROR_OVERFLOW 

Overflow

UVC_ERROR_PIPE 

Pipe error

UVC_ERROR_INTERRUPTED 

System call interrupted

UVC_ERROR_NO_MEM 

Insufficient memory

UVC_ERROR_NOT_SUPPORTED 

Operation not supported

UVC_ERROR_INVALID_DEVICE 

Device is not UVC-compliant

UVC_ERROR_INVALID_MODE 

Mode not supported

UVC_ERROR_CALLBACK_EXISTS 

Resource has a callback (can't use polling and async)

UVC_ERROR_OTHER 

Undefined error

◆ uvc_et_type

External terminal type (B.4)

Enumerator
UVC_EXTERNAL_VENDOR_SPECIFIC 
UVC_COMPOSITE_CONNECTOR 
UVC_SVIDEO_CONNECTOR 
UVC_COMPONENT_CONNECTOR 

◆ uvc_it_type

Input terminal type (B.2)

Enumerator
UVC_ITT_VENDOR_SPECIFIC 
UVC_ITT_CAMERA 
UVC_ITT_MEDIA_TRANSPORT_INPUT 

◆ uvc_ot_type

Output terminal type (B.3)

Enumerator
UVC_OTT_VENDOR_SPECIFIC 
UVC_OTT_DISPLAY 
UVC_OTT_MEDIA_TRANSPORT_OUTPUT 

◆ uvc_pu_ctrl_selector

Processing unit control selector (A.9.5)

Enumerator
UVC_PU_CONTROL_UNDEFINED 
UVC_PU_BACKLIGHT_COMPENSATION_CONTROL 
UVC_PU_BRIGHTNESS_CONTROL 
UVC_PU_CONTRAST_CONTROL 
UVC_PU_GAIN_CONTROL 
UVC_PU_POWER_LINE_FREQUENCY_CONTROL 
UVC_PU_HUE_CONTROL 
UVC_PU_SATURATION_CONTROL 
UVC_PU_SHARPNESS_CONTROL 
UVC_PU_GAMMA_CONTROL 
UVC_PU_WHITE_BALANCE_TEMPERATURE_CONTROL 
UVC_PU_WHITE_BALANCE_TEMPERATURE_AUTO_CONTROL 
UVC_PU_WHITE_BALANCE_COMPONENT_CONTROL 
UVC_PU_WHITE_BALANCE_COMPONENT_AUTO_CONTROL 
UVC_PU_DIGITAL_MULTIPLIER_CONTROL 
UVC_PU_DIGITAL_MULTIPLIER_LIMIT_CONTROL 
UVC_PU_HUE_AUTO_CONTROL 
UVC_PU_ANALOG_VIDEO_STANDARD_CONTROL 
UVC_PU_ANALOG_LOCK_STATUS_CONTROL 
UVC_PU_CONTRAST_AUTO_CONTROL 

◆ uvc_req_code

UVC request code (A.8)

Enumerator
UVC_RC_UNDEFINED 
UVC_SET_CUR 
UVC_GET_CUR 
UVC_GET_MIN 
UVC_GET_MAX 
UVC_GET_RES 
UVC_GET_LEN 
UVC_GET_INFO 
UVC_GET_DEF 

◆ uvc_status_attribute

Enumerator
UVC_STATUS_ATTRIBUTE_VALUE_CHANGE 
UVC_STATUS_ATTRIBUTE_INFO_CHANGE 
UVC_STATUS_ATTRIBUTE_FAILURE_CHANGE 
UVC_STATUS_ATTRIBUTE_UNKNOWN 

◆ uvc_status_class

Enumerator
UVC_STATUS_CLASS_CONTROL 
UVC_STATUS_CLASS_CONTROL_CAMERA 
UVC_STATUS_CLASS_CONTROL_PROCESSING 

◆ uvc_term_type

USB terminal type (B.1)

Enumerator
UVC_TT_VENDOR_SPECIFIC 
UVC_TT_STREAMING 

◆ uvc_vs_desc_subtype

VideoStreaming interface descriptor subtype (A.6)

Enumerator
UVC_VS_UNDEFINED 
UVC_VS_INPUT_HEADER 
UVC_VS_OUTPUT_HEADER 
UVC_VS_STILL_IMAGE_FRAME 
UVC_VS_FORMAT_UNCOMPRESSED 
UVC_VS_FRAME_UNCOMPRESSED 
UVC_VS_FORMAT_MJPEG 
UVC_VS_FRAME_MJPEG 
UVC_VS_FORMAT_MPEG2TS 
UVC_VS_FORMAT_DV 
UVC_VS_COLORFORMAT 
UVC_VS_FORMAT_FRAME_BASED 
UVC_VS_FRAME_FRAME_BASED 
UVC_VS_FORMAT_STREAM_BASED 

Function Documentation

◆ uvc_allocate_frame()

uvc_frame_t* uvc_allocate_frame ( size_t  data_bytes)

◆ uvc_close()

void uvc_close ( uvc_device_handle_t devh)

◆ uvc_duplicate_frame()

uvc_error_t uvc_duplicate_frame ( uvc_frame_t in,
uvc_frame_t out 
)

◆ uvc_exit()

void uvc_exit ( uvc_context_t ctx)

◆ uvc_find_device()

uvc_error_t uvc_find_device ( uvc_context_t ctx,
uvc_device_t **  dev,
int  vid,
int  pid,
const char *  sn 
)

◆ uvc_free_device_descriptor()

void uvc_free_device_descriptor ( uvc_device_descriptor_t desc)

◆ uvc_free_device_list()

void uvc_free_device_list ( uvc_device_t **  list,
uint8_t  unref_devices 
)

◆ uvc_free_frame()

void uvc_free_frame ( uvc_frame_t frame)

◆ 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 
)

◆ 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 
)

◆ 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 
)

◆ 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 
)

◆ 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 
)

◆ uvc_get_brightness()

uvc_error_t uvc_get_brightness ( uvc_device_handle_t devh,
int16_t *  brightness,
enum uvc_req_code  req_code 
)

◆ uvc_get_bus_number()

uint8_t uvc_get_bus_number ( uvc_device_t dev)

◆ uvc_get_contrast()

uvc_error_t uvc_get_contrast ( uvc_device_handle_t devh,
uint16_t *  contrast,
enum uvc_req_code  req_code 
)

◆ 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 
)

◆ 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 
)

◆ uvc_get_ctrl_len()

int uvc_get_ctrl_len ( uvc_device_handle_t devh,
uint8_t  unit,
uint8_t  ctrl 
)

◆ uvc_get_device()

uvc_device_t* uvc_get_device ( uvc_device_handle_t devh)

◆ uvc_get_device_address()

uint8_t uvc_get_device_address ( uvc_device_t dev)

◆ uvc_get_device_descriptor()

uvc_error_t uvc_get_device_descriptor ( uvc_device_t dev,
uvc_device_descriptor_t **  desc 
)

◆ uvc_get_device_list()

uvc_error_t uvc_get_device_list ( uvc_context_t ctx,
uvc_device_t ***  list 
)

◆ 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 
)

◆ 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 
)

◆ 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 
)

◆ 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 
)

◆ 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 
)

◆ 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 
)

◆ uvc_get_extension_units()

const uvc_extension_unit_t* uvc_get_extension_units ( uvc_device_handle_t devh)

◆ 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 
)

◆ 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 
)

◆ 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 
)

◆ 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 
)

◆ uvc_get_format_descs()

const uvc_format_desc_t* uvc_get_format_descs ( uvc_device_handle_t )

◆ uvc_get_gain()

uvc_error_t uvc_get_gain ( uvc_device_handle_t devh,
uint16_t *  gain,
enum uvc_req_code  req_code 
)

◆ uvc_get_gamma()

uvc_error_t uvc_get_gamma ( uvc_device_handle_t devh,
uint16_t *  gamma,
enum uvc_req_code  req_code 
)

◆ uvc_get_hue()

uvc_error_t uvc_get_hue ( uvc_device_handle_t devh,
int16_t *  hue,
enum uvc_req_code  req_code 
)

◆ 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 
)

◆ 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 
)

◆ uvc_get_input_terminals()

const uvc_input_terminal_t* uvc_get_input_terminals ( uvc_device_handle_t devh)

◆ 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 
)

◆ 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 
)

◆ uvc_get_libusb_handle()

libusb_device_handle* uvc_get_libusb_handle ( uvc_device_handle_t devh)

◆ uvc_get_output_terminals()

const uvc_output_terminal_t* uvc_get_output_terminals ( uvc_device_handle_t devh)

◆ 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 
)

◆ 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 
)

◆ 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 
)

◆ uvc_get_power_mode()

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_get_privacy()

uvc_error_t uvc_get_privacy ( uvc_device_handle_t devh,
uint8_t *  privacy,
enum uvc_req_code  req_code 
)

◆ uvc_get_processing_units()

const uvc_processing_unit_t* uvc_get_processing_units ( uvc_device_handle_t devh)

◆ 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 
)

◆ 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 
)

◆ uvc_get_saturation()

uvc_error_t uvc_get_saturation ( uvc_device_handle_t devh,
uint16_t *  saturation,
enum uvc_req_code  req_code 
)

◆ 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 
)

◆ uvc_get_sharpness()

uvc_error_t uvc_get_sharpness ( uvc_device_handle_t devh,
uint16_t *  sharpness,
enum uvc_req_code  req_code 
)

◆ 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,
uint32_t  fourcc,
int  width,
int  height,
int  fps 
)

◆ 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 
)

◆ 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 
)

◆ 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 
)

◆ 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 
)

◆ 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 
)

◆ 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 
)

◆ uvc_init()

uvc_error_t uvc_init ( uvc_context_t **  ctx,
struct libusb_context *  usb_ctx 
)

◆ uvc_open()

uvc_error_t uvc_open ( uvc_device_t dev,
uvc_device_handle_t **  devh 
)

◆ uvc_open2()

uvc_error_t uvc_open2 ( uvc_device_t dev,
uvc_device_handle_t **  devh,
int  camera_number 
)

◆ uvc_perror()

void uvc_perror ( uvc_error_t  err,
const char *  msg 
)

◆ uvc_print_diag()

void uvc_print_diag ( uvc_device_handle_t devh,
FILE *  stream 
)

◆ uvc_print_stream_ctrl()

void uvc_print_stream_ctrl ( uvc_stream_ctrl_t ctrl,
FILE *  stream 
)

◆ uvc_probe_stream_ctrl()

uvc_error_t uvc_probe_stream_ctrl ( uvc_device_handle_t devh,
uvc_stream_ctrl_t ctrl 
)

◆ uvc_ref_device()

void uvc_ref_device ( uvc_device_t dev)

◆ uvc_set_ae_mode()

uvc_error_t uvc_set_ae_mode ( uvc_device_handle_t devh,
uint8_t  mode 
)

◆ uvc_set_ae_priority()

uvc_error_t uvc_set_ae_priority ( uvc_device_handle_t devh,
uint8_t  priority 
)

◆ uvc_set_analog_video_lock_status()

uvc_error_t uvc_set_analog_video_lock_status ( uvc_device_handle_t devh,
uint8_t  status 
)

◆ uvc_set_analog_video_standard()

uvc_error_t uvc_set_analog_video_standard ( uvc_device_handle_t devh,
uint8_t  video_standard 
)

◆ uvc_set_backlight_compensation()

uvc_error_t uvc_set_backlight_compensation ( uvc_device_handle_t devh,
uint16_t  backlight_compensation 
)

◆ uvc_set_brightness()

uvc_error_t uvc_set_brightness ( uvc_device_handle_t devh,
int16_t  brightness 
)

◆ uvc_set_contrast()

uvc_error_t uvc_set_contrast ( uvc_device_handle_t devh,
uint16_t  contrast 
)

◆ uvc_set_contrast_auto()

uvc_error_t uvc_set_contrast_auto ( uvc_device_handle_t devh,
uint8_t  contrast_auto 
)

◆ uvc_set_ctrl()

int uvc_set_ctrl ( uvc_device_handle_t devh,
uint8_t  unit,
uint8_t  ctrl,
void *  data,
int  len 
)

◆ uvc_set_digital_multiplier()

uvc_error_t uvc_set_digital_multiplier ( uvc_device_handle_t devh,
uint16_t  multiplier_step 
)

◆ uvc_set_digital_multiplier_limit()

uvc_error_t uvc_set_digital_multiplier_limit ( uvc_device_handle_t devh,
uint16_t  multiplier_step 
)

◆ 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 
)

◆ 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 
)

◆ uvc_set_exposure_abs()

uvc_error_t uvc_set_exposure_abs ( uvc_device_handle_t devh,
uint32_t  time 
)

◆ uvc_set_exposure_rel()

uvc_error_t uvc_set_exposure_rel ( uvc_device_handle_t devh,
int8_t  step 
)

◆ uvc_set_focus_abs()

uvc_error_t uvc_set_focus_abs ( uvc_device_handle_t devh,
uint16_t  focus 
)

◆ uvc_set_focus_auto()

uvc_error_t uvc_set_focus_auto ( uvc_device_handle_t devh,
uint8_t  state 
)

◆ uvc_set_focus_rel()

uvc_error_t uvc_set_focus_rel ( uvc_device_handle_t devh,
int8_t  focus_rel,
uint8_t  speed 
)

◆ uvc_set_focus_simple_range()

uvc_error_t uvc_set_focus_simple_range ( uvc_device_handle_t devh,
uint8_t  focus 
)

◆ uvc_set_gain()

uvc_error_t uvc_set_gain ( uvc_device_handle_t devh,
uint16_t  gain 
)

◆ uvc_set_gamma()

uvc_error_t uvc_set_gamma ( uvc_device_handle_t devh,
uint16_t  gamma 
)

◆ uvc_set_hue()

uvc_error_t uvc_set_hue ( uvc_device_handle_t devh,
int16_t  hue 
)

◆ uvc_set_hue_auto()

uvc_error_t uvc_set_hue_auto ( uvc_device_handle_t devh,
uint8_t  hue_auto 
)

◆ uvc_set_input_select()

uvc_error_t uvc_set_input_select ( uvc_device_handle_t devh,
uint8_t  selector 
)

◆ uvc_set_iris_abs()

uvc_error_t uvc_set_iris_abs ( uvc_device_handle_t devh,
uint16_t  iris 
)

◆ uvc_set_iris_rel()

uvc_error_t uvc_set_iris_rel ( uvc_device_handle_t devh,
uint8_t  iris_rel 
)

◆ uvc_set_pantilt_abs()

uvc_error_t uvc_set_pantilt_abs ( uvc_device_handle_t devh,
int32_t  pan,
int32_t  tilt 
)

◆ 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 
)

◆ uvc_set_power_line_frequency()

uvc_error_t uvc_set_power_line_frequency ( uvc_device_handle_t devh,
uint8_t  power_line_frequency 
)

◆ uvc_set_power_mode()

uvc_error_t uvc_set_power_mode ( uvc_device_handle_t devh,
enum uvc_device_power_mode  mode 
)

◆ uvc_set_privacy()

uvc_error_t uvc_set_privacy ( uvc_device_handle_t devh,
uint8_t  privacy 
)

◆ uvc_set_roll_abs()

uvc_error_t uvc_set_roll_abs ( uvc_device_handle_t devh,
int16_t  roll 
)

◆ uvc_set_roll_rel()

uvc_error_t uvc_set_roll_rel ( uvc_device_handle_t devh,
int8_t  roll_rel,
uint8_t  speed 
)

◆ uvc_set_saturation()

uvc_error_t uvc_set_saturation ( uvc_device_handle_t devh,
uint16_t  saturation 
)

◆ uvc_set_scanning_mode()

uvc_error_t uvc_set_scanning_mode ( uvc_device_handle_t devh,
uint8_t  mode 
)

◆ uvc_set_sharpness()

uvc_error_t uvc_set_sharpness ( uvc_device_handle_t devh,
uint16_t  sharpness 
)

◆ uvc_set_status_callback()

void uvc_set_status_callback ( uvc_device_handle_t devh,
uvc_status_callback_t  cb,
void *  user_ptr 
)

◆ uvc_set_white_balance_component()

uvc_error_t uvc_set_white_balance_component ( uvc_device_handle_t devh,
uint16_t  blue,
uint16_t  red 
)

◆ 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 
)

◆ uvc_set_white_balance_temperature()

uvc_error_t uvc_set_white_balance_temperature ( uvc_device_handle_t devh,
uint16_t  temperature 
)

◆ uvc_set_white_balance_temperature_auto()

uvc_error_t uvc_set_white_balance_temperature_auto ( uvc_device_handle_t devh,
uint8_t  temperature_auto 
)

◆ uvc_set_zoom_abs()

uvc_error_t uvc_set_zoom_abs ( uvc_device_handle_t devh,
uint16_t  focal_length 
)

◆ 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 
)

◆ 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 
)

◆ 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,
int  num_transfer_buffers 
)

◆ uvc_stop_streaming()

void uvc_stop_streaming ( uvc_device_handle_t devh)

◆ uvc_stream_close()

void uvc_stream_close ( uvc_stream_handle_t strmh)

◆ uvc_stream_ctrl()

◆ uvc_stream_get_frame()

uvc_error_t uvc_stream_get_frame ( uvc_stream_handle_t strmh,
uvc_frame_t **  frame,
int32_t  timeout_us 
)

◆ 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 
)

◆ 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,
int  num_transfer_buffers 
)

◆ uvc_stream_start_iso()

uvc_error_t uvc_stream_start_iso ( uvc_stream_handle_t strmh,
uvc_frame_callback_t cb,
void *  user_ptr 
)

◆ uvc_stream_stop()

uvc_error_t uvc_stream_stop ( uvc_stream_handle_t strmh)

◆ uvc_strerror()

const char* uvc_strerror ( uvc_error_t  err)

◆ uvc_unref_device()

void uvc_unref_device ( uvc_device_t dev)