small refactor, comment

This commit is contained in:
Brandon Thomas committed 2020-04-11 01:41:37 -04:00
1 parent 0107483c82
commit 4fc0363a62
3 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -92,7 +92,8 @@ impl Device {
/// Start the cameras.
pub fn start_cameras(&self) -> Result<(), KinectError> {
let mut device_config = DeviceConfiguration::new();
// device_config.0.color_format = k4a_sys::k4a_image_format_t_K4A_IMAGE_FORMAT_COLOR_MJPG; // TODO: Broken?
// NB: Although the Kinect docs say this format isn't natively supported by the color camera
// and that extra CPU is required, this is the only color mode supported by 'k4aviewer' 3D view.
device_config.0.color_format = k4a_sys::k4a_image_format_t_K4A_IMAGE_FORMAT_COLOR_BGRA32;
device_config.0.color_resolution = k4a_sys::k4a_color_resolution_t_K4A_COLOR_RESOLUTION_2160P;
device_config.0.depth_mode = k4a_sys::k4a_depth_mode_t_K4A_DEPTH_MODE_NFOV_UNBINNED;
+2 -2
View File
@@ -45,7 +45,7 @@ use handwritten_wrapper::*;
use k4a_sys_wrapper::Device;
use k4a_sys_wrapper::device_get_installed_count;
use k4a_sys_wrapper::Image;
use sensors::{capture_thread, grab_single_frame};
use sensor_control::{capture_thread, grab_single_frame};
use glium::texture::RawImage2d;
use conversion::TextureData2d;
@@ -53,7 +53,7 @@ pub mod conversion;
pub mod handwritten_wrapper;
pub mod handwritten_wrapper_test;
pub mod k4a_sys_wrapper;
pub mod sensors;
pub mod sensor_control;
pub struct TextureContainer {
pub texture: Texture2d
File renamed without changes.