Azure Kinect Sensor SDK  refs/heads/master
Documentation for https://github.com/Microsoft/Azure-Kinect-Sensor-SDK

◆ k4a_device_set_color_control()

k4a_result_t k4a_device_set_color_control ( k4a_device_t  device_handle,
k4a_color_control_command_t  command,
k4a_color_control_mode_t  mode,
int32_t  value 
)
related

Set the Azure Kinect color sensor control value.

Parameters
device_handleHandle obtained by k4a_device_open().
commandColor sensor control command.
modeColor sensor control mode to set. This mode represents whether the command is in automatic or manual mode.
valueValue to set the color sensor's control to. The value is only valid if mode is set to K4A_COLOR_CONTROL_MODE_MANUAL, and is otherwise ignored.
Returns
K4A_RESULT_SUCCEEDED if the value was successfully set, K4A_RESULT_FAILED if an error occurred
Remarks
Each control command may be set to manual or automatic. See the definition of k4a_color_control_command_t on how to interpret the value for each command.
Some control commands are only supported in manual mode. When a command is in automatic mode, the value for that command is not valid.
Control values set on a device are reset only when the device is power cycled. The device will retain the settings even if the k4a_device_t is closed or the application is restarted.