1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
pub use k4a_sys_temp as k4a_sys;
mod calibration;
mod capture;
mod device;
mod device_configuration;
mod image;
mod image_format;
mod transformation;
pub use {
calibration::Calibration,
capture::Capture,
device::Device,
device_configuration::DeviceConfiguration,
image::Image,
image_format::ImageFormat,
transformation::Transformation,
};
pub mod error;
#[derive(Debug)]
pub enum KinectError {
UnableToOpen { error_code: u32 },
UnableToGetSerialNumber,
UnableToStartCameras { error_code: u32 },
UnableToCreateImage { error_code: u32 },
UnableToGetSyncJackStatus { error_code: i32 },
}
#[derive(Debug,Copy,Clone)]
pub struct SynchronizationJackStatus {
pub sync_in_jack_connected: bool,
pub sync_out_jack_connected: bool,
}
#[derive(Clone,Debug)]
pub struct Resolution {
pub width: i32,
pub height: i32,
}