libuvc
|
Functions for manipulating device settings and stream parameters. More...
Functions | |
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. More... | |
uvc_error_t | uvc_set_scanning_mode (uvc_device_handle_t *devh, uint8_t mode) |
Sets the SCANNING_MODE control. More... | |
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. More... | |
uvc_error_t | uvc_set_ae_mode (uvc_device_handle_t *devh, uint8_t mode) |
Sets camera's auto-exposure mode. More... | |
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. More... | |
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. More... | |
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. More... | |
uvc_error_t | uvc_set_exposure_abs (uvc_device_handle_t *devh, uint32_t time) |
Sets the absolute exposure time. More... | |
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. More... | |
uvc_error_t | uvc_set_exposure_rel (uvc_device_handle_t *devh, int8_t step) |
Sets the exposure time relative to the current setting. More... | |
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. More... | |
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. More... | |
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. More... | |
uvc_error_t | uvc_set_focus_rel (uvc_device_handle_t *devh, int8_t focus_rel, uint8_t speed) |
Sets the FOCUS_RELATIVE control. More... | |
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. More... | |
uvc_error_t | uvc_set_focus_simple_range (uvc_device_handle_t *devh, uint8_t focus) |
Sets the FOCUS_SIMPLE control. More... | |
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. More... | |
uvc_error_t | uvc_set_focus_auto (uvc_device_handle_t *devh, uint8_t state) |
Sets the FOCUS_AUTO control. More... | |
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. More... | |
uvc_error_t | uvc_set_iris_abs (uvc_device_handle_t *devh, uint16_t iris) |
Sets the IRIS_ABSOLUTE control. More... | |
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. More... | |
uvc_error_t | uvc_set_iris_rel (uvc_device_handle_t *devh, uint8_t iris_rel) |
Sets the IRIS_RELATIVE control. More... | |
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. More... | |
uvc_error_t | uvc_set_zoom_abs (uvc_device_handle_t *devh, uint16_t focal_length) |
Sets the ZOOM_ABSOLUTE control. More... | |
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. More... | |
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. More... | |
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. More... | |
uvc_error_t | uvc_set_pantilt_abs (uvc_device_handle_t *devh, int32_t pan, int32_t tilt) |
Sets the PANTILT_ABSOLUTE control. More... | |
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. More... | |
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. More... | |
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. More... | |
uvc_error_t | uvc_set_roll_abs (uvc_device_handle_t *devh, int16_t roll) |
Sets the ROLL_ABSOLUTE control. More... | |
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. More... | |
uvc_error_t | uvc_set_roll_rel (uvc_device_handle_t *devh, int8_t roll_rel, uint8_t speed) |
Sets the ROLL_RELATIVE control. More... | |
uvc_error_t | uvc_get_privacy (uvc_device_handle_t *devh, uint8_t *privacy, enum uvc_req_code req_code) |
Reads the PRIVACY control. More... | |
uvc_error_t | uvc_set_privacy (uvc_device_handle_t *devh, uint8_t privacy) |
Sets the PRIVACY control. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
uvc_error_t | uvc_set_backlight_compensation (uvc_device_handle_t *devh, uint16_t backlight_compensation) |
Sets the BACKLIGHT_COMPENSATION control. More... | |
uvc_error_t | uvc_get_brightness (uvc_device_handle_t *devh, int16_t *brightness, enum uvc_req_code req_code) |
Reads the BRIGHTNESS control. More... | |
uvc_error_t | uvc_set_brightness (uvc_device_handle_t *devh, int16_t brightness) |
Sets the BRIGHTNESS control. More... | |
uvc_error_t | uvc_get_contrast (uvc_device_handle_t *devh, uint16_t *contrast, enum uvc_req_code req_code) |
Reads the CONTRAST control. More... | |
uvc_error_t | uvc_set_contrast (uvc_device_handle_t *devh, uint16_t contrast) |
Sets the CONTRAST control. More... | |
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. More... | |
uvc_error_t | uvc_set_contrast_auto (uvc_device_handle_t *devh, uint8_t contrast_auto) |
Sets the CONTRAST_AUTO control. More... | |
uvc_error_t | uvc_get_gain (uvc_device_handle_t *devh, uint16_t *gain, enum uvc_req_code req_code) |
Reads the GAIN control. More... | |
uvc_error_t | uvc_set_gain (uvc_device_handle_t *devh, uint16_t gain) |
Sets the GAIN control. More... | |
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. More... | |
uvc_error_t | uvc_set_power_line_frequency (uvc_device_handle_t *devh, uint8_t power_line_frequency) |
Sets the POWER_LINE_FREQUENCY control. More... | |
uvc_error_t | uvc_get_hue (uvc_device_handle_t *devh, int16_t *hue, enum uvc_req_code req_code) |
Reads the HUE control. More... | |
uvc_error_t | uvc_set_hue (uvc_device_handle_t *devh, int16_t hue) |
Sets the HUE control. More... | |
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. More... | |
uvc_error_t | uvc_set_hue_auto (uvc_device_handle_t *devh, uint8_t hue_auto) |
Sets the HUE_AUTO control. More... | |
uvc_error_t | uvc_get_saturation (uvc_device_handle_t *devh, uint16_t *saturation, enum uvc_req_code req_code) |
Reads the SATURATION control. More... | |
uvc_error_t | uvc_set_saturation (uvc_device_handle_t *devh, uint16_t saturation) |
Sets the SATURATION control. More... | |
uvc_error_t | uvc_get_sharpness (uvc_device_handle_t *devh, uint16_t *sharpness, enum uvc_req_code req_code) |
Reads the SHARPNESS control. More... | |
uvc_error_t | uvc_set_sharpness (uvc_device_handle_t *devh, uint16_t sharpness) |
Sets the SHARPNESS control. More... | |
uvc_error_t | uvc_get_gamma (uvc_device_handle_t *devh, uint16_t *gamma, enum uvc_req_code req_code) |
Reads the GAMMA control. More... | |
uvc_error_t | uvc_set_gamma (uvc_device_handle_t *devh, uint16_t gamma) |
Sets the GAMMA control. More... | |
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. More... | |
uvc_error_t | uvc_set_white_balance_temperature (uvc_device_handle_t *devh, uint16_t temperature) |
Sets the WHITE_BALANCE_TEMPERATURE control. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
uvc_error_t | uvc_set_digital_multiplier (uvc_device_handle_t *devh, uint16_t multiplier_step) |
Sets the DIGITAL_MULTIPLIER control. More... | |
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. More... | |
uvc_error_t | uvc_set_digital_multiplier_limit (uvc_device_handle_t *devh, uint16_t multiplier_step) |
Sets the DIGITAL_MULTIPLIER_LIMIT control. More... | |
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. More... | |
uvc_error_t | uvc_set_analog_video_standard (uvc_device_handle_t *devh, uint8_t video_standard) |
Sets the ANALOG_VIDEO_STANDARD control. More... | |
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. More... | |
uvc_error_t | uvc_set_analog_video_lock_status (uvc_device_handle_t *devh, uint8_t status) |
Sets the ANALOG_LOCK_STATUS control. More... | |
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. More... | |
uvc_error_t | uvc_set_input_select (uvc_device_handle_t *devh, uint8_t selector) |
Sets the INPUT_SELECT control. More... | |
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. More... | |
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. More... | |
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. More... | |
Functions for manipulating device settings and stream parameters.
The uvc_get_*
and uvc_set_*
functions are used to read and write the settings associated with the device's input, processing and output units.
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.
devh | UVC device handle | |
[out] | mode | 0: interlaced, 1: progressive |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_scanning_mode | ( | uvc_device_handle_t * | devh, |
uint8_t | mode | ||
) |
Sets the SCANNING_MODE control.
devh | UVC device handle |
mode | 0: interlaced, 1: progressive |
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.
See uvc_set_ae_mode() for a description of the available modes.
devh | UVC device handle | |
[out] | mode | 1: manual mode; 2: auto mode; 4: shutter priority mode; 8: aperture priority mode |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_ae_mode | ( | uvc_device_handle_t * | devh, |
uint8_t | mode | ||
) |
Sets camera's auto-exposure mode.
Cameras may support any of the following AE modes:
Most cameras provide manual mode and aperture priority mode.
devh | UVC device handle |
mode | 1: manual mode; 2: auto mode; 4: shutter priority mode; 8: aperture priority mode |
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.
See uvc_set_ae_priority() for a description of the priority
field.
devh | UVC device handle | |
[out] | priority | 0: frame rate must remain constant; 1: frame rate may be varied for AE purposes |
req_code | UVC_GET_* request to execute |
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.
A priority
value of zero means the camera may not vary its frame rate. A value of 1 means the frame rate is variable. This setting has no effect outside of the auto
and shutter_priority
auto-exposure modes.
devh | UVC device handle |
priority | 0: frame rate must remain constant; 1: frame rate may be varied for AE purposes |
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.
See uvc_set_exposure_abs() for a description of the time
field.
devh | UVC device handle | |
[out] | time | |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_exposure_abs | ( | uvc_device_handle_t * | devh, |
uint32_t | time | ||
) |
Sets the absolute exposure time.
The time
parameter should be provided in units of 0.0001 seconds (e.g., use the value 100 for a 10ms exposure period). Auto exposure should be set to manual
or shutter_priority
before attempting to change this setting.
devh | UVC device handle |
time |
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.
devh | UVC device handle | |
[out] | step | number of steps by which to change the exposure time, or zero to set the default exposure time |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_exposure_rel | ( | uvc_device_handle_t * | devh, |
int8_t | step | ||
) |
Sets the exposure time relative to the current setting.
devh | UVC device handle |
step | number of steps by which to change the exposure time, or zero to set the default exposure time |
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.
devh | UVC device handle | |
[out] | focus | focal target distance in millimeters |
req_code | UVC_GET_* request to execute |
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.
devh | UVC device handle |
focus | focal target distance in millimeters |
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.
devh | UVC device handle | |
[out] | focus_rel | TODO |
[out] | speed | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_focus_rel | ( | uvc_device_handle_t * | devh, |
int8_t | focus_rel, | ||
uint8_t | speed | ||
) |
Sets the FOCUS_RELATIVE control.
devh | UVC device handle |
focus_rel | TODO |
speed | TODO |
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.
devh | UVC device handle | |
[out] | focus | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_focus_simple_range | ( | uvc_device_handle_t * | devh, |
uint8_t | focus | ||
) |
Sets the FOCUS_SIMPLE control.
devh | UVC device handle |
focus | TODO |
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.
devh | UVC device handle | |
[out] | state | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_focus_auto | ( | uvc_device_handle_t * | devh, |
uint8_t | state | ||
) |
Sets the FOCUS_AUTO control.
devh | UVC device handle |
state | TODO |
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.
devh | UVC device handle | |
[out] | iris | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_iris_abs | ( | uvc_device_handle_t * | devh, |
uint16_t | iris | ||
) |
Sets the IRIS_ABSOLUTE control.
devh | UVC device handle |
iris | TODO |
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.
devh | UVC device handle | |
[out] | iris_rel | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_iris_rel | ( | uvc_device_handle_t * | devh, |
uint8_t | iris_rel | ||
) |
Sets the IRIS_RELATIVE control.
devh | UVC device handle |
iris_rel | TODO |
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.
devh | UVC device handle | |
[out] | focal_length | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_zoom_abs | ( | uvc_device_handle_t * | devh, |
uint16_t | focal_length | ||
) |
Sets the ZOOM_ABSOLUTE control.
devh | UVC device handle |
focal_length | TODO |
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.
devh | UVC device handle | |
[out] | zoom_rel | TODO |
[out] | digital_zoom | TODO |
[out] | speed | TODO |
req_code | UVC_GET_* request to execute |
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.
devh | UVC device handle |
zoom_rel | TODO |
digital_zoom | TODO |
speed | TODO |
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.
devh | UVC device handle | |
[out] | pan | TODO |
[out] | tilt | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_pantilt_abs | ( | uvc_device_handle_t * | devh, |
int32_t | pan, | ||
int32_t | tilt | ||
) |
Sets the PANTILT_ABSOLUTE control.
devh | UVC device handle |
pan | TODO |
tilt | TODO |
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.
devh | UVC device handle | |
[out] | pan_rel | TODO |
[out] | pan_speed | TODO |
[out] | tilt_rel | TODO |
[out] | tilt_speed | TODO |
req_code | UVC_GET_* request to execute |
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.
devh | UVC device handle |
pan_rel | TODO |
pan_speed | TODO |
tilt_rel | TODO |
tilt_speed | TODO |
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.
devh | UVC device handle | |
[out] | roll | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_roll_abs | ( | uvc_device_handle_t * | devh, |
int16_t | roll | ||
) |
Sets the ROLL_ABSOLUTE control.
devh | UVC device handle |
roll | TODO |
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.
devh | UVC device handle | |
[out] | roll_rel | TODO |
[out] | speed | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_roll_rel | ( | uvc_device_handle_t * | devh, |
int8_t | roll_rel, | ||
uint8_t | speed | ||
) |
Sets the ROLL_RELATIVE control.
devh | UVC device handle |
roll_rel | TODO |
speed | TODO |
uvc_error_t uvc_get_privacy | ( | uvc_device_handle_t * | devh, |
uint8_t * | privacy, | ||
enum uvc_req_code | req_code | ||
) |
Reads the PRIVACY control.
devh | UVC device handle | |
[out] | privacy | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_privacy | ( | uvc_device_handle_t * | devh, |
uint8_t | privacy | ||
) |
Sets the PRIVACY control.
devh | UVC device handle |
privacy | TODO |
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.
devh | UVC device handle | |
[out] | window_top | TODO |
[out] | window_left | TODO |
[out] | window_bottom | TODO |
[out] | window_right | TODO |
[out] | num_steps | TODO |
[out] | num_steps_units | TODO |
req_code | UVC_GET_* request to execute |
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.
devh | UVC device handle |
window_top | TODO |
window_left | TODO |
window_bottom | TODO |
window_right | TODO |
num_steps | TODO |
num_steps_units | TODO |
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.
devh | UVC device handle | |
[out] | roi_top | TODO |
[out] | roi_left | TODO |
[out] | roi_bottom | TODO |
[out] | roi_right | TODO |
[out] | auto_controls | TODO |
req_code | UVC_GET_* request to execute |
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.
devh | UVC device handle |
roi_top | TODO |
roi_left | TODO |
roi_bottom | TODO |
roi_right | TODO |
auto_controls | TODO |
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.
devh | UVC device handle | |
[out] | backlight_compensation | device-dependent backlight compensation mode; zero means backlight compensation is disabled |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_backlight_compensation | ( | uvc_device_handle_t * | devh, |
uint16_t | backlight_compensation | ||
) |
Sets the BACKLIGHT_COMPENSATION control.
devh | UVC device handle |
backlight_compensation | device-dependent backlight compensation mode; zero means backlight compensation is disabled |
uvc_error_t uvc_get_brightness | ( | uvc_device_handle_t * | devh, |
int16_t * | brightness, | ||
enum uvc_req_code | req_code | ||
) |
Reads the BRIGHTNESS control.
devh | UVC device handle | |
[out] | brightness | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_brightness | ( | uvc_device_handle_t * | devh, |
int16_t | brightness | ||
) |
Sets the BRIGHTNESS control.
devh | UVC device handle |
brightness | TODO |
uvc_error_t uvc_get_contrast | ( | uvc_device_handle_t * | devh, |
uint16_t * | contrast, | ||
enum uvc_req_code | req_code | ||
) |
Reads the CONTRAST control.
devh | UVC device handle | |
[out] | contrast | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_contrast | ( | uvc_device_handle_t * | devh, |
uint16_t | contrast | ||
) |
Sets the CONTRAST control.
devh | UVC device handle |
contrast | TODO |
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.
devh | UVC device handle | |
[out] | contrast_auto | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_contrast_auto | ( | uvc_device_handle_t * | devh, |
uint8_t | contrast_auto | ||
) |
Sets the CONTRAST_AUTO control.
devh | UVC device handle |
contrast_auto | TODO |
uvc_error_t uvc_get_gain | ( | uvc_device_handle_t * | devh, |
uint16_t * | gain, | ||
enum uvc_req_code | req_code | ||
) |
Reads the GAIN control.
devh | UVC device handle | |
[out] | gain | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_gain | ( | uvc_device_handle_t * | devh, |
uint16_t | gain | ||
) |
Sets the GAIN control.
devh | UVC device handle |
gain | TODO |
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.
devh | UVC device handle | |
[out] | power_line_frequency | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_power_line_frequency | ( | uvc_device_handle_t * | devh, |
uint8_t | power_line_frequency | ||
) |
Sets the POWER_LINE_FREQUENCY control.
devh | UVC device handle |
power_line_frequency | TODO |
uvc_error_t uvc_get_hue | ( | uvc_device_handle_t * | devh, |
int16_t * | hue, | ||
enum uvc_req_code | req_code | ||
) |
Reads the HUE control.
devh | UVC device handle | |
[out] | hue | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_hue | ( | uvc_device_handle_t * | devh, |
int16_t | hue | ||
) |
Sets the HUE control.
devh | UVC device handle |
hue | TODO |
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.
devh | UVC device handle | |
[out] | hue_auto | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_hue_auto | ( | uvc_device_handle_t * | devh, |
uint8_t | hue_auto | ||
) |
Sets the HUE_AUTO control.
devh | UVC device handle |
hue_auto | TODO |
uvc_error_t uvc_get_saturation | ( | uvc_device_handle_t * | devh, |
uint16_t * | saturation, | ||
enum uvc_req_code | req_code | ||
) |
Reads the SATURATION control.
devh | UVC device handle | |
[out] | saturation | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_saturation | ( | uvc_device_handle_t * | devh, |
uint16_t | saturation | ||
) |
Sets the SATURATION control.
devh | UVC device handle |
saturation | TODO |
uvc_error_t uvc_get_sharpness | ( | uvc_device_handle_t * | devh, |
uint16_t * | sharpness, | ||
enum uvc_req_code | req_code | ||
) |
Reads the SHARPNESS control.
devh | UVC device handle | |
[out] | sharpness | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_sharpness | ( | uvc_device_handle_t * | devh, |
uint16_t | sharpness | ||
) |
Sets the SHARPNESS control.
devh | UVC device handle |
sharpness | TODO |
uvc_error_t uvc_get_gamma | ( | uvc_device_handle_t * | devh, |
uint16_t * | gamma, | ||
enum uvc_req_code | req_code | ||
) |
Reads the GAMMA control.
devh | UVC device handle | |
[out] | gamma | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_gamma | ( | uvc_device_handle_t * | devh, |
uint16_t | gamma | ||
) |
Sets the GAMMA control.
devh | UVC device handle |
gamma | TODO |
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.
devh | UVC device handle | |
[out] | temperature | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_white_balance_temperature | ( | uvc_device_handle_t * | devh, |
uint16_t | temperature | ||
) |
Sets the WHITE_BALANCE_TEMPERATURE control.
devh | UVC device handle |
temperature | TODO |
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.
devh | UVC device handle | |
[out] | temperature_auto | TODO |
req_code | UVC_GET_* request to execute |
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.
devh | UVC device handle |
temperature_auto | TODO |
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.
devh | UVC device handle | |
[out] | blue | TODO |
[out] | red | TODO |
req_code | UVC_GET_* request to execute |
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.
devh | UVC device handle |
blue | TODO |
red | TODO |
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.
devh | UVC device handle | |
[out] | white_balance_component_auto | TODO |
req_code | UVC_GET_* request to execute |
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.
devh | UVC device handle |
white_balance_component_auto | TODO |
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.
devh | UVC device handle | |
[out] | multiplier_step | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_digital_multiplier | ( | uvc_device_handle_t * | devh, |
uint16_t | multiplier_step | ||
) |
Sets the DIGITAL_MULTIPLIER control.
devh | UVC device handle |
multiplier_step | TODO |
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.
devh | UVC device handle | |
[out] | multiplier_step | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_digital_multiplier_limit | ( | uvc_device_handle_t * | devh, |
uint16_t | multiplier_step | ||
) |
Sets the DIGITAL_MULTIPLIER_LIMIT control.
devh | UVC device handle |
multiplier_step | TODO |
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.
devh | UVC device handle | |
[out] | video_standard | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_analog_video_standard | ( | uvc_device_handle_t * | devh, |
uint8_t | video_standard | ||
) |
Sets the ANALOG_VIDEO_STANDARD control.
devh | UVC device handle |
video_standard | TODO |
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.
devh | UVC device handle | |
[out] | status | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_analog_video_lock_status | ( | uvc_device_handle_t * | devh, |
uint8_t | status | ||
) |
Sets the ANALOG_LOCK_STATUS control.
devh | UVC device handle |
status | TODO |
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.
devh | UVC device handle | |
[out] | selector | TODO |
req_code | UVC_GET_* request to execute |
uvc_error_t uvc_set_input_select | ( | uvc_device_handle_t * | devh, |
uint8_t | selector | ||
) |
Sets the INPUT_SELECT control.
devh | UVC device handle |
selector | TODO |
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.
devh | UVC device handle |
unit | Unit or Terminal ID; obtain this from the uvc_extension_unit_t describing the extension unit |
ctrl | Vendor-specific control number to query |
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.
devh | UVC device handle |
unit | Unit ID; obtain this from the uvc_extension_unit_t describing the extension unit |
ctrl | Control number to query |
data | Data buffer to be filled by the device |
len | Size of data buffer |
req_code | GET_* request to execute |
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.
devh | UVC device handle |
unit | Unit or Terminal ID |
ctrl | Control number to set |
data | Data buffer to be sent to the device |
len | Size of data buffer |