Add device layer

This commit is contained in:
John Zhao
2018-04-04 10:50:27 +08:00
parent 1f3ec9d621
commit 905bafd26d
14 changed files with 211 additions and 30 deletions

View File

@@ -10,13 +10,13 @@ include_directories(
${PRO_DIR}/src
)
## camera
## camera_u
add_executable(camera camera.cc)
target_link_libraries(camera mynteye ${OpenCV_LIBS})
add_executable(camera_u camera.cc)
target_link_libraries(camera_u mynteye ${OpenCV_LIBS})
if(OS_WIN)
target_compile_definitions(camera
target_compile_definitions(camera_u
PUBLIC GLOG_NO_ABBREVIATED_SEVERITIES
)
endif()

View File

@@ -1,5 +1,3 @@
#include <glog/logging.h>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
@@ -14,28 +12,7 @@
#include "internal/types.h"
#include "uvc/uvc.h"
struct glog_init {
glog_init(int /*argc*/, char *argv[]) {
// FLAGS_logtostderr = true;
FLAGS_alsologtostderr = true;
FLAGS_colorlogtostderr = true;
FLAGS_log_dir = ".";
FLAGS_max_log_size = 1024;
FLAGS_stop_logging_if_full_disk = true;
// FLAGS_v = 2;
google::InitGoogleLogging(argv[0]);
VLOG(2) << __func__;
}
~glog_init() {
VLOG(2) << __func__;
google::ShutdownGoogleLogging();
}
};
#include "glog_init.h" // NOLINT
struct frame {
const void *data = nullptr;