mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-08 11:01:35 +00:00
small refactor, comment
This commit is contained in:
1 parent
0107483c82
commit
4fc0363a62
3 files changed
+4
-3
No files matched your search
@@ -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
@@ -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.
Reference in new issue
Block a user