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

◆ k4a_device_get_color_control()

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

Get the Azure Kinect color sensor control value.

Parameters
device_handleHandle obtained by k4a_device_open().
commandColor sensor control command.
modeLocation to store the color sensor's control mode. This mode represents whether the command is in automatic or manual mode.
valueLocation to store the color sensor's control value. This value is always written, but is only valid when the mode returned is K4A_COLOR_CONTROL_MODE_MANUAL for the current command.
Returns
K4A_RESULT_SUCCEEDED if the value was successfully returned, 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.