move the handwritten k4a wrappers out of the way

This commit is contained in:
Brandon Thomas committed 2020-04-11 02:41:21 -04:00
1 parent fce6e0f86f
commit 220763d47f
8 files changed
+6 -11

No files matched your search

-1
View File
@@ -30,7 +30,6 @@ use opencv::highgui;
use opencv::imgproc;
use opencv::prelude::*;
use handwritten_wrapper::*;
use k4a_sys_wrapper::Device;
use k4a_sys_wrapper::device_get_installed_count;
use k4a_sys_wrapper::Image;
+2 -3
View File
@@ -32,12 +32,11 @@ use opencv::imgproc;
use opencv::prelude::*;
use conversion::TextureData2d;
use handwritten_wrapper::*;
use handwritten_wrapper_test;
use k4a_sys_wrapper::Device;
use k4a_sys_wrapper::device_get_installed_count;
use k4a_sys_wrapper::Image;
use sensor_control::{capture_thread, grab_single_frame};
use old_k4a_wrapper;
pub struct TextureContainer {
pub texture: Texture2d
@@ -233,7 +232,7 @@ pub fn run() {
device.stop_cameras();
}
handwritten_wrapper_test::test_integration();
old_k4a_wrapper::handwritten_wrapper_test::test_integration();
}
/// Copied from k4a-sys
-2
View File
@@ -7,8 +7,6 @@ use std::ptr;
use k4a_sys;
use handwritten_wrapper::{k4a_device_close, K4A_DEVICE_DEFAULT};
pub fn device_get_installed_count() -> u32 {
unsafe {
k4a_sys::k4a_device_get_installed_count()
+1 -3
View File
@@ -46,7 +46,6 @@ use opencv::prelude::*;
use conversion::TextureData2d;
use graphics_glium::run_glium;
use handwritten_wrapper::*;
use k4a_sys_wrapper::Device;
use k4a_sys_wrapper::device_get_installed_count;
use k4a_sys_wrapper::Image;
@@ -55,8 +54,7 @@ use sensor_control::{capture_thread, grab_single_frame};
pub mod conversion;
pub mod graphics_glium;
pub mod graphics_grr;
pub mod handwritten_wrapper;
pub mod handwritten_wrapper_test;
pub mod old_k4a_wrapper;
pub mod k4a_sys_wrapper;
pub mod sensor_control;
File renamed without changes.
@@ -4,7 +4,7 @@ use std::os::raw::c_char;
use libc::size_t;
use handwritten_wrapper::*;
use old_k4a_wrapper::handwritten_wrapper::{k4a_device_close, K4A_DEVICE_DEFAULT, k4a_device_get_installed_count, k4a_device_get_serialnum, k4a_device_open, k4a_device_t};
pub fn test_integration() {
println!("hello world");
+2
View File
@@ -0,0 +1,2 @@
pub mod handwritten_wrapper;
pub mod handwritten_wrapper_test;
-1
View File
@@ -29,7 +29,6 @@ use opencv::highgui;
use opencv::imgproc;
use opencv::prelude::*;
use handwritten_wrapper::*;
use k4a_sys_wrapper::Device;
use k4a_sys_wrapper::device_get_installed_count;
use k4a_sys_wrapper::Image;