Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
minor fix
  • Loading branch information
borosko committed Dec 30, 2021
commit 6ed5a88ef7c2fd3c8c62f9ad80f77d927c7d3030
6 changes: 3 additions & 3 deletions tools/k4arecorder/recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ void set_color_param(k4a_device_t &device,
}

k4a_device_get_color_control(device, command, &read_mode, &read_value);
std::cout << "Current " << (read_mode == K4A_COLOR_CONTROL_MODE_AUTO ? "AUTO" : "MANUAL") << command_name << " value: " << read_value
<< std::endl;
std::cout << "Current " << command_name << " set to " << (read_mode == K4A_COLOR_CONTROL_MODE_AUTO ? "AUTO" : "MANUAL") << " mode and has value " << read_value
<< std::endl;
}

int do_recording(uint8_t device_index,
Expand Down Expand Up @@ -144,7 +144,7 @@ int do_recording(uint8_t device_index,
set_color_param(device, K4A_COLOR_CONTROL_BRIGHTNESS, "brightness", brightness, defaultBrightness, false);
set_color_param(device, K4A_COLOR_CONTROL_CONTRAST, "contrast", contrast, defaultContrast, false);
set_color_param(device, K4A_COLOR_CONTROL_SATURATION, "saturation", saturation, defaultSaturation, false);
set_color_param(device, K4A_COLOR_CONTROL_SHARPNESS, "brightness", sharpness, defaultSharpness, false);
set_color_param(device, K4A_COLOR_CONTROL_SHARPNESS, "sharpness", sharpness, defaultSharpness, false);
set_color_param(device, K4A_COLOR_CONTROL_GAIN, "gain", gain, defaultGainAuto, false);

CHECK(k4a_device_start_cameras(device, device_config), device);
Expand Down