代码优雅化重构: CameraHandler拆9个函数+删serial死代码+常量统一+死亡参数清理+camera.h精简
This commit is contained in:
+2
-14
@@ -1,27 +1,15 @@
|
||||
#ifndef CAMERA_H_
|
||||
#define CAMERA_H_
|
||||
|
||||
#include <cstdint>
|
||||
#include <opencv2/opencv.hpp>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
#include <mutex>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <linux/fb.h>
|
||||
#include <algorithm>
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
|
||||
#include "image_cv.h"
|
||||
#include "global.h"
|
||||
#include "frame_buffer.h"
|
||||
#include "control.h"
|
||||
|
||||
int CameraInit(uint8_t camera_id, double dest_fps, int width, int height);
|
||||
int CameraInit(int camera_id, double dest_fps);
|
||||
int CameraHandler(void);
|
||||
void cameraDeInit(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user