2019-01-27 14:25:26 +02:00
|
|
|
@extern "mynteye_types.yaml"
|
2019-01-15 09:10:59 +02:00
|
|
|
|
2019-01-27 14:25:26 +02:00
|
|
|
# Device class to communicate with MYNT® EYE device
|
2019-01-15 09:10:59 +02:00
|
|
|
device = interface +c {
|
2019-01-27 14:25:26 +02:00
|
|
|
# Create the device instance
|
2019-01-15 09:10:59 +02:00
|
|
|
static create(info: device_usb_info): device;
|
|
|
|
|
2019-02-27 10:33:13 +02:00
|
|
|
# Get the model
|
|
|
|
get_model(): model;
|
|
|
|
|
|
|
|
# Supports the stream or not
|
|
|
|
supports_stream(stream: stream): bool;
|
|
|
|
# Supports the capability or not
|
|
|
|
supports_capability(capabilities: capability): bool;
|
|
|
|
# Supports the option or not
|
|
|
|
supports_option(option: option): bool;
|
|
|
|
# Supports the addon or not
|
|
|
|
supports_addon(addon: addon): bool;
|
|
|
|
|
2019-01-27 14:25:26 +02:00
|
|
|
# Get all stream requests
|
2019-01-15 09:10:59 +02:00
|
|
|
get_stream_requests(): list<stream_request>;
|
2019-01-27 14:25:26 +02:00
|
|
|
# Config the stream request
|
2019-01-15 09:10:59 +02:00
|
|
|
config_stream_request(request: stream_request);
|
|
|
|
|
2019-02-27 10:33:13 +02:00
|
|
|
# Get the device info
|
|
|
|
get_info(info: info): string;
|
|
|
|
|
|
|
|
# Get the intrinsics of stream
|
|
|
|
get_intrinsics(stream: stream): intrinsics;
|
|
|
|
# Get the extrinsics of stream
|
|
|
|
get_extrinsics(from: stream, to: stream): extrinsics;
|
|
|
|
|
|
|
|
# Get the intrinsics of motion
|
|
|
|
get_motion_intrinsics(): motion_intrinsics;
|
|
|
|
# Get the extrinsics from one stream to motion
|
|
|
|
get_motion_extrinsics(from: stream): extrinsics;
|
|
|
|
|
|
|
|
# Get the option info
|
|
|
|
get_option_info(option: option): option_info;
|
|
|
|
|
|
|
|
# Get the option value
|
|
|
|
get_option_value(option: option): i32;
|
|
|
|
# Set the option value
|
|
|
|
set_option_value(option: option, value: i32);
|
|
|
|
|
|
|
|
# Run the option value
|
|
|
|
run_option_action(option: option): bool;
|
|
|
|
|
2019-01-27 14:25:26 +02:00
|
|
|
# Start capturing the source
|
|
|
|
start(source: source);
|
|
|
|
# Stop capturing the source
|
|
|
|
stop(source: source);
|
|
|
|
|
|
|
|
# Wait the streams are ready
|
|
|
|
wait_for_streams();
|
|
|
|
|
|
|
|
# Get the latest data of stream
|
|
|
|
get_stream_data(stream: stream): stream_data;
|
|
|
|
# Get the datas of stream
|
|
|
|
get_stream_datas(stream: stream): list<stream_data>;
|
|
|
|
|
2019-01-27 17:34:47 +02:00
|
|
|
# Enable cache motion datas until get them, otherwise using callback instead
|
|
|
|
enable_motion_datas(max_size: i32);
|
2019-01-27 14:25:26 +02:00
|
|
|
# Get the motion datas
|
|
|
|
get_motion_datas(): list<motion_data>;
|
2019-01-15 09:10:59 +02:00
|
|
|
}
|