?? common.h
字號(hào):
#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
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -