common.h

来自「在linux系统下」· C头文件 代码 · 共 53 行

H
53
字号
#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 + =
减小字号Ctrl + -
显示快捷键?