⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 common.h

📁 在linux系统下
💻 H
字号:
#ifndef _HIGHLIGHT_COMMON_H_
#define _HIGHLIGHT_COMMON_H_
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <errno.h>
#include <linux/videodev.h>
#include <memory.h>
#define MYDEBUGE
typedef struct _v4ldevice 
{
	int fd;//��
 	struct video_capability capability;//
 	struct video_channel channel[4]; 
 	struct video_picture picture;
 	struct video_window window; 
	struct video_capture capture; 
 	struct video_buffer buffer; 
 	struct video_mmap mmap; 
	struct video_mbuf mbuf;
	void *map;
	int frame;
	int framestat[2]; 
	_v4ldevice()
	{
		fd = 0;
		map = NULL;
		frame = 0;
		framestat[0] = framestat[1];
		memset(&picture,0,sizeof(video_picture));
		
	}
}v4ldevice;

class FileInfo
{
public:
	FileInfo();
	~FileInfo();
	void DoLog(const char* format,...);
	bool open();
	void close();
private:
	FILE* fp;
};
extern FileInfo Log;

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -