pub struct Funcs {Show 65 fields
pub k4a_device_get_installed_count: unsafe extern "C" fn() -> u32,
pub k4a_set_debug_message_handler: unsafe extern "C" fn(message_cb: k4a_logging_message_cb_t, message_cb_context: *mut c_void, min_level: k4a_log_level_t) -> k4a_result_t,
pub k4a_set_allocator: unsafe extern "C" fn(allocate: k4a_memory_allocate_cb_t, free: k4a_memory_destroy_cb_t) -> k4a_result_t,
pub k4a_device_open: unsafe extern "C" fn(index: u32, device_handle: *mut k4a_device_t) -> k4a_result_t,
pub k4a_device_close: unsafe extern "C" fn(device_handle: k4a_device_t),
pub k4a_device_get_capture: unsafe extern "C" fn(device_handle: k4a_device_t, capture_handle: *mut k4a_capture_t, timeout_in_ms: i32) -> k4a_wait_result_t,
pub k4a_device_get_imu_sample: unsafe extern "C" fn(device_handle: k4a_device_t, imu_sample: *mut k4a_imu_sample_t, timeout_in_ms: i32) -> k4a_wait_result_t,
pub k4a_capture_create: unsafe extern "C" fn(capture_handle: *mut k4a_capture_t) -> k4a_result_t,
pub k4a_capture_release: unsafe extern "C" fn(capture_handle: k4a_capture_t),
pub k4a_capture_reference: unsafe extern "C" fn(capture_handle: k4a_capture_t),
pub k4a_capture_get_color_image: unsafe extern "C" fn(capture_handle: k4a_capture_t) -> k4a_image_t,
pub k4a_capture_get_depth_image: unsafe extern "C" fn(capture_handle: k4a_capture_t) -> k4a_image_t,
pub k4a_capture_get_ir_image: unsafe extern "C" fn(capture_handle: k4a_capture_t) -> k4a_image_t,
pub k4a_capture_set_color_image: unsafe extern "C" fn(capture_handle: k4a_capture_t, image_handle: k4a_image_t),
pub k4a_capture_set_depth_image: unsafe extern "C" fn(capture_handle: k4a_capture_t, image_handle: k4a_image_t),
pub k4a_capture_set_ir_image: unsafe extern "C" fn(capture_handle: k4a_capture_t, image_handle: k4a_image_t),
pub k4a_capture_set_temperature_c: unsafe extern "C" fn(capture_handle: k4a_capture_t, temperature_c: f32),
pub k4a_capture_get_temperature_c: unsafe extern "C" fn(capture_handle: k4a_capture_t) -> f32,
pub k4a_image_create: unsafe extern "C" fn(format: k4a_image_format_t, width_pixels: c_int, height_pixels: c_int, stride_bytes: c_int, image_handle: *mut k4a_image_t) -> k4a_result_t,
pub k4a_image_create_from_buffer: unsafe extern "C" fn(format: k4a_image_format_t, width_pixels: c_int, height_pixels: c_int, stride_bytes: c_int, buffer: *mut u8, buffer_size: usize, buffer_release_cb: k4a_memory_destroy_cb_t, buffer_release_cb_context: *mut c_void, image_handle: *mut k4a_image_t) -> k4a_result_t,
pub k4a_image_get_buffer: unsafe extern "C" fn(image_handle: k4a_image_t) -> *mut u8,
pub k4a_image_get_size: unsafe extern "C" fn(image_handle: k4a_image_t) -> usize,
pub k4a_image_get_format: unsafe extern "C" fn(image_handle: k4a_image_t) -> k4a_image_format_t,
pub k4a_image_get_width_pixels: unsafe extern "C" fn(image_handle: k4a_image_t) -> c_int,
pub k4a_image_get_height_pixels: unsafe extern "C" fn(image_handle: k4a_image_t) -> c_int,
pub k4a_image_get_stride_bytes: unsafe extern "C" fn(image_handle: k4a_image_t) -> c_int,
pub k4a_image_get_timestamp_usec: unsafe extern "C" fn(image_handle: k4a_image_t) -> u64,
pub k4a_image_get_device_timestamp_usec: unsafe extern "C" fn(image_handle: k4a_image_t) -> u64,
pub k4a_image_get_system_timestamp_nsec: unsafe extern "C" fn(image_handle: k4a_image_t) -> u64,
pub k4a_image_get_exposure_usec: unsafe extern "C" fn(image_handle: k4a_image_t) -> u64,
pub k4a_image_get_white_balance: unsafe extern "C" fn(image_handle: k4a_image_t) -> u32,
pub k4a_image_get_iso_speed: unsafe extern "C" fn(image_handle: k4a_image_t) -> u32,
pub k4a_image_set_device_timestamp_usec: unsafe extern "C" fn(image_handle: k4a_image_t, timestamp_usec: u64),
pub k4a_image_set_timestamp_usec: unsafe extern "C" fn(image_handle: k4a_image_t, timestamp_usec: u64),
pub k4a_image_set_system_timestamp_nsec: unsafe extern "C" fn(image_handle: k4a_image_t, timestamp_nsec: u64),
pub k4a_image_set_exposure_usec: unsafe extern "C" fn(image_handle: k4a_image_t, exposure_usec: u64),
pub k4a_image_set_exposure_time_usec: unsafe extern "C" fn(image_handle: k4a_image_t, exposure_usec: u64),
pub k4a_image_set_white_balance: unsafe extern "C" fn(image_handle: k4a_image_t, white_balance: u32),
pub k4a_image_set_iso_speed: unsafe extern "C" fn(image_handle: k4a_image_t, iso_speed: u32),
pub k4a_image_reference: unsafe extern "C" fn(image_handle: k4a_image_t),
pub k4a_image_release: unsafe extern "C" fn(image_handle: k4a_image_t),
pub k4a_device_start_cameras: unsafe extern "C" fn(device_handle: k4a_device_t, config: *const k4a_device_configuration_t) -> k4a_result_t,
pub k4a_device_stop_cameras: unsafe extern "C" fn(device_handle: k4a_device_t),
pub k4a_device_start_imu: unsafe extern "C" fn(device_handle: k4a_device_t) -> k4a_result_t,
pub k4a_device_stop_imu: unsafe extern "C" fn(device_handle: k4a_device_t),
pub k4a_device_get_serialnum: unsafe extern "C" fn(device_handle: k4a_device_t, serial_number: *mut c_char, serial_number_size: *mut usize) -> k4a_buffer_result_t,
pub k4a_device_get_version: unsafe extern "C" fn(device_handle: k4a_device_t, version: *mut k4a_hardware_version_t) -> k4a_result_t,
pub k4a_device_get_color_control_capabilities: unsafe extern "C" fn(device_handle: k4a_device_t, command: k4a_color_control_command_t, supports_auto: *mut bool, min_value: *mut i32, max_value: *mut i32, step_value: *mut i32, default_value: *mut i32, default_mode: *mut k4a_color_control_mode_t) -> k4a_result_t,
pub k4a_device_get_color_control: unsafe extern "C" fn(device_handle: k4a_device_t, command: k4a_color_control_command_t, mode: *mut k4a_color_control_mode_t, value: *mut i32) -> k4a_result_t,
pub k4a_device_set_color_control: unsafe extern "C" fn(device_handle: k4a_device_t, command: k4a_color_control_command_t, mode: k4a_color_control_mode_t, value: i32) -> k4a_result_t,
pub k4a_device_get_raw_calibration: unsafe extern "C" fn(device_handle: k4a_device_t, data: *mut u8, data_size: *mut usize) -> k4a_buffer_result_t,
pub k4a_device_get_calibration: unsafe extern "C" fn(device_handle: k4a_device_t, depth_mode: k4a_depth_mode_t, color_resolution: k4a_color_resolution_t, calibration: *mut k4a_calibration_t) -> k4a_result_t,
pub k4a_device_get_sync_jack: unsafe extern "C" fn(device_handle: k4a_device_t, sync_in_jack_connected: *mut bool, sync_out_jack_connected: *mut bool) -> k4a_result_t,
pub k4a_calibration_get_from_raw: unsafe extern "C" fn(raw_calibration: *mut c_char, raw_calibration_size: usize, depth_mode: k4a_depth_mode_t, color_resolution: k4a_color_resolution_t, calibration: *mut k4a_calibration_t) -> k4a_result_t,
pub k4a_calibration_3d_to_3d: unsafe extern "C" fn(calibration: *const k4a_calibration_t, source_point3d_mm: *const k4a_float3_t, source_camera: k4a_calibration_type_t, target_camera: k4a_calibration_type_t, target_point3d_mm: *mut k4a_float3_t) -> k4a_result_t,
pub k4a_calibration_2d_to_3d: unsafe extern "C" fn(calibration: *const k4a_calibration_t, source_point2d: *const k4a_float2_t, source_depth_mm: f32, source_camera: k4a_calibration_type_t, target_camera: k4a_calibration_type_t, target_point3d_mm: *mut k4a_float3_t, valid: *mut c_int) -> k4a_result_t,
pub k4a_calibration_3d_to_2d: unsafe extern "C" fn(calibration: *const k4a_calibration_t, source_point3d_mm: *const k4a_float3_t, source_camera: k4a_calibration_type_t, target_camera: k4a_calibration_type_t, target_point2d: *mut k4a_float2_t, valid: *mut c_int) -> k4a_result_t,
pub k4a_calibration_2d_to_2d: unsafe extern "C" fn(calibration: *const k4a_calibration_t, source_point2d: *const k4a_float2_t, source_depth_mm: f32, source_camera: k4a_calibration_type_t, target_camera: k4a_calibration_type_t, target_point2d: *mut k4a_float2_t, valid: *mut c_int) -> k4a_result_t,
pub k4a_calibration_color_2d_to_depth_2d: unsafe extern "C" fn(calibration: *const k4a_calibration_t, source_point2d: *const k4a_float2_t, depth_image: k4a_image_t, target_point2d: *mut k4a_float2_t, valid: *mut c_int) -> k4a_result_t,
pub k4a_transformation_create: unsafe extern "C" fn(calibration: *const k4a_calibration_t) -> k4a_transformation_t,
pub k4a_transformation_destroy: unsafe extern "C" fn(transformation_handle: k4a_transformation_t),
pub k4a_transformation_depth_image_to_color_camera: unsafe extern "C" fn(transformation_handle: k4a_transformation_t, depth_image: k4a_image_t, transformed_depth_image: k4a_image_t) -> k4a_result_t,
pub k4a_transformation_depth_image_to_color_camera_custom: unsafe extern "C" fn(transformation_handle: k4a_transformation_t, depth_image: k4a_image_t, custom_image: k4a_image_t, transformed_depth_image: k4a_image_t, transformed_custom_image: k4a_image_t, interpolation_type: k4a_transformation_interpolation_type_t, invalid_custom_value: u32) -> k4a_result_t,
pub k4a_transformation_color_image_to_depth_camera: unsafe extern "C" fn(transformation_handle: k4a_transformation_t, depth_image: k4a_image_t, color_image: k4a_image_t, transformed_color_image: k4a_image_t) -> k4a_result_t,
pub k4a_transformation_depth_image_to_point_cloud: unsafe extern "C" fn(transformation_handle: k4a_transformation_t, depth_image: k4a_image_t, camera: k4a_calibration_type_t, xyz_image: k4a_image_t) -> k4a_result_t,
}Fields§
§k4a_device_get_installed_count: unsafe extern "C" fn() -> u32§k4a_set_debug_message_handler: unsafe extern "C" fn(message_cb: k4a_logging_message_cb_t, message_cb_context: *mut c_void, min_level: k4a_log_level_t) -> k4a_result_t§k4a_set_allocator: unsafe extern "C" fn(allocate: k4a_memory_allocate_cb_t, free: k4a_memory_destroy_cb_t) -> k4a_result_t§k4a_device_open: unsafe extern "C" fn(index: u32, device_handle: *mut k4a_device_t) -> k4a_result_t§k4a_device_close: unsafe extern "C" fn(device_handle: k4a_device_t)§k4a_device_get_capture: unsafe extern "C" fn(device_handle: k4a_device_t, capture_handle: *mut k4a_capture_t, timeout_in_ms: i32) -> k4a_wait_result_t§k4a_device_get_imu_sample: unsafe extern "C" fn(device_handle: k4a_device_t, imu_sample: *mut k4a_imu_sample_t, timeout_in_ms: i32) -> k4a_wait_result_t§k4a_capture_create: unsafe extern "C" fn(capture_handle: *mut k4a_capture_t) -> k4a_result_t§k4a_capture_release: unsafe extern "C" fn(capture_handle: k4a_capture_t)§k4a_capture_reference: unsafe extern "C" fn(capture_handle: k4a_capture_t)§k4a_capture_get_color_image: unsafe extern "C" fn(capture_handle: k4a_capture_t) -> k4a_image_t§k4a_capture_get_depth_image: unsafe extern "C" fn(capture_handle: k4a_capture_t) -> k4a_image_t§k4a_capture_get_ir_image: unsafe extern "C" fn(capture_handle: k4a_capture_t) -> k4a_image_t§k4a_capture_set_color_image: unsafe extern "C" fn(capture_handle: k4a_capture_t, image_handle: k4a_image_t)§k4a_capture_set_depth_image: unsafe extern "C" fn(capture_handle: k4a_capture_t, image_handle: k4a_image_t)§k4a_capture_set_ir_image: unsafe extern "C" fn(capture_handle: k4a_capture_t, image_handle: k4a_image_t)§k4a_capture_set_temperature_c: unsafe extern "C" fn(capture_handle: k4a_capture_t, temperature_c: f32)§k4a_capture_get_temperature_c: unsafe extern "C" fn(capture_handle: k4a_capture_t) -> f32§k4a_image_create: unsafe extern "C" fn(format: k4a_image_format_t, width_pixels: c_int, height_pixels: c_int, stride_bytes: c_int, image_handle: *mut k4a_image_t) -> k4a_result_t§k4a_image_create_from_buffer: unsafe extern "C" fn(format: k4a_image_format_t, width_pixels: c_int, height_pixels: c_int, stride_bytes: c_int, buffer: *mut u8, buffer_size: usize, buffer_release_cb: k4a_memory_destroy_cb_t, buffer_release_cb_context: *mut c_void, image_handle: *mut k4a_image_t) -> k4a_result_t§k4a_image_get_buffer: unsafe extern "C" fn(image_handle: k4a_image_t) -> *mut u8§k4a_image_get_size: unsafe extern "C" fn(image_handle: k4a_image_t) -> usize§k4a_image_get_format: unsafe extern "C" fn(image_handle: k4a_image_t) -> k4a_image_format_t§k4a_image_get_width_pixels: unsafe extern "C" fn(image_handle: k4a_image_t) -> c_int§k4a_image_get_height_pixels: unsafe extern "C" fn(image_handle: k4a_image_t) -> c_int§k4a_image_get_stride_bytes: unsafe extern "C" fn(image_handle: k4a_image_t) -> c_int§k4a_image_get_timestamp_usec: unsafe extern "C" fn(image_handle: k4a_image_t) -> u64§k4a_image_get_device_timestamp_usec: unsafe extern "C" fn(image_handle: k4a_image_t) -> u64§k4a_image_get_system_timestamp_nsec: unsafe extern "C" fn(image_handle: k4a_image_t) -> u64§k4a_image_get_exposure_usec: unsafe extern "C" fn(image_handle: k4a_image_t) -> u64§k4a_image_get_white_balance: unsafe extern "C" fn(image_handle: k4a_image_t) -> u32§k4a_image_get_iso_speed: unsafe extern "C" fn(image_handle: k4a_image_t) -> u32§k4a_image_set_device_timestamp_usec: unsafe extern "C" fn(image_handle: k4a_image_t, timestamp_usec: u64)§k4a_image_set_timestamp_usec: unsafe extern "C" fn(image_handle: k4a_image_t, timestamp_usec: u64)§k4a_image_set_system_timestamp_nsec: unsafe extern "C" fn(image_handle: k4a_image_t, timestamp_nsec: u64)§k4a_image_set_exposure_usec: unsafe extern "C" fn(image_handle: k4a_image_t, exposure_usec: u64)§k4a_image_set_exposure_time_usec: unsafe extern "C" fn(image_handle: k4a_image_t, exposure_usec: u64)§k4a_image_set_white_balance: unsafe extern "C" fn(image_handle: k4a_image_t, white_balance: u32)§k4a_image_set_iso_speed: unsafe extern "C" fn(image_handle: k4a_image_t, iso_speed: u32)§k4a_image_reference: unsafe extern "C" fn(image_handle: k4a_image_t)§k4a_image_release: unsafe extern "C" fn(image_handle: k4a_image_t)§k4a_device_start_cameras: unsafe extern "C" fn(device_handle: k4a_device_t, config: *const k4a_device_configuration_t) -> k4a_result_t§k4a_device_stop_cameras: unsafe extern "C" fn(device_handle: k4a_device_t)§k4a_device_start_imu: unsafe extern "C" fn(device_handle: k4a_device_t) -> k4a_result_t§k4a_device_stop_imu: unsafe extern "C" fn(device_handle: k4a_device_t)§k4a_device_get_serialnum: unsafe extern "C" fn(device_handle: k4a_device_t, serial_number: *mut c_char, serial_number_size: *mut usize) -> k4a_buffer_result_t§k4a_device_get_version: unsafe extern "C" fn(device_handle: k4a_device_t, version: *mut k4a_hardware_version_t) -> k4a_result_t§k4a_device_get_color_control_capabilities: unsafe extern "C" fn(device_handle: k4a_device_t, command: k4a_color_control_command_t, supports_auto: *mut bool, min_value: *mut i32, max_value: *mut i32, step_value: *mut i32, default_value: *mut i32, default_mode: *mut k4a_color_control_mode_t) -> k4a_result_t§k4a_device_get_color_control: unsafe extern "C" fn(device_handle: k4a_device_t, command: k4a_color_control_command_t, mode: *mut k4a_color_control_mode_t, value: *mut i32) -> k4a_result_t§k4a_device_set_color_control: unsafe extern "C" fn(device_handle: k4a_device_t, command: k4a_color_control_command_t, mode: k4a_color_control_mode_t, value: i32) -> k4a_result_t§k4a_device_get_raw_calibration: unsafe extern "C" fn(device_handle: k4a_device_t, data: *mut u8, data_size: *mut usize) -> k4a_buffer_result_t§k4a_device_get_calibration: unsafe extern "C" fn(device_handle: k4a_device_t, depth_mode: k4a_depth_mode_t, color_resolution: k4a_color_resolution_t, calibration: *mut k4a_calibration_t) -> k4a_result_t§k4a_device_get_sync_jack: unsafe extern "C" fn(device_handle: k4a_device_t, sync_in_jack_connected: *mut bool, sync_out_jack_connected: *mut bool) -> k4a_result_t§k4a_calibration_get_from_raw: unsafe extern "C" fn(raw_calibration: *mut c_char, raw_calibration_size: usize, depth_mode: k4a_depth_mode_t, color_resolution: k4a_color_resolution_t, calibration: *mut k4a_calibration_t) -> k4a_result_t§k4a_calibration_3d_to_3d: unsafe extern "C" fn(calibration: *const k4a_calibration_t, source_point3d_mm: *const k4a_float3_t, source_camera: k4a_calibration_type_t, target_camera: k4a_calibration_type_t, target_point3d_mm: *mut k4a_float3_t) -> k4a_result_t§k4a_calibration_2d_to_3d: unsafe extern "C" fn(calibration: *const k4a_calibration_t, source_point2d: *const k4a_float2_t, source_depth_mm: f32, source_camera: k4a_calibration_type_t, target_camera: k4a_calibration_type_t, target_point3d_mm: *mut k4a_float3_t, valid: *mut c_int) -> k4a_result_t§k4a_calibration_3d_to_2d: unsafe extern "C" fn(calibration: *const k4a_calibration_t, source_point3d_mm: *const k4a_float3_t, source_camera: k4a_calibration_type_t, target_camera: k4a_calibration_type_t, target_point2d: *mut k4a_float2_t, valid: *mut c_int) -> k4a_result_t§k4a_calibration_2d_to_2d: unsafe extern "C" fn(calibration: *const k4a_calibration_t, source_point2d: *const k4a_float2_t, source_depth_mm: f32, source_camera: k4a_calibration_type_t, target_camera: k4a_calibration_type_t, target_point2d: *mut k4a_float2_t, valid: *mut c_int) -> k4a_result_t§k4a_calibration_color_2d_to_depth_2d: unsafe extern "C" fn(calibration: *const k4a_calibration_t, source_point2d: *const k4a_float2_t, depth_image: k4a_image_t, target_point2d: *mut k4a_float2_t, valid: *mut c_int) -> k4a_result_t§k4a_transformation_create: unsafe extern "C" fn(calibration: *const k4a_calibration_t) -> k4a_transformation_t§k4a_transformation_destroy: unsafe extern "C" fn(transformation_handle: k4a_transformation_t)§k4a_transformation_depth_image_to_color_camera: unsafe extern "C" fn(transformation_handle: k4a_transformation_t, depth_image: k4a_image_t, transformed_depth_image: k4a_image_t) -> k4a_result_t§k4a_transformation_depth_image_to_color_camera_custom: unsafe extern "C" fn(transformation_handle: k4a_transformation_t, depth_image: k4a_image_t, custom_image: k4a_image_t, transformed_depth_image: k4a_image_t, transformed_custom_image: k4a_image_t, interpolation_type: k4a_transformation_interpolation_type_t, invalid_custom_value: u32) -> k4a_result_t§k4a_transformation_color_image_to_depth_camera: unsafe extern "C" fn(transformation_handle: k4a_transformation_t, depth_image: k4a_image_t, color_image: k4a_image_t, transformed_color_image: k4a_image_t) -> k4a_result_t§k4a_transformation_depth_image_to_point_cloud: unsafe extern "C" fn(transformation_handle: k4a_transformation_t, depth_image: k4a_image_t, camera: k4a_calibration_type_t, xyz_image: k4a_image_t) -> k4a_result_tAuto Trait Implementations§
impl Freeze for Funcs
impl RefUnwindSafe for Funcs
impl Send for Funcs
impl Sync for Funcs
impl Unpin for Funcs
impl UnwindSafe for Funcs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more