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

📄 capture.h

📁 嵌入式LINUX下的摄像头采集及通过CDMA网络传输信息。
💻 H
字号:
#ifndef SPCAV4L_H#define SPCAV4L_H#include <stdio.h>#include <unistd.h>#include <stdlib.h>#include <string.h>#include <fcntl.h>#include <errno.h>#include <stdarg.h>#include <linux/types.h>#include <linux/videodev.h>#include <sys/mman.h>#include <sys/ioctl.h>#include <sys/file.h>#include <sys/types.h>#include <sys/stat.h>#define VIDEO_PALETTE_JPEG 21#define BRIDGE_ZC3XX 0#define MAX_BRIDGE 2#define JPEG 0#define UNOW 1#define SAVEPATH "/mnt/Nand1/1.jpg"struct bridge_list {	int num;	const char *name;};typedef struct videoIn {	int fd;	int jpegsize;	char *videodevice ;	struct video_mmap vmmap;	struct video_capability videocap;	int mmapsize;	struct video_mbuf videombuf;	struct video_picture videopict;	struct video_channel videochan;	int cameratype ;	char *cameraname;	char bridge[9];	int palette; // available palette	int grabMethod ;	unsigned char *pFramebuffer;	unsigned char *ptframe;	int framesizeIn ;	int bppIn;	int  hdrwidth;	int  hdrheight;	int  formatIn;	}VDIN;extern VDIN  *fnCaptureFromUsb();extern int  fnSaveFromCapture(VDIN *vd,char *jpegfile);#endif /* SPCAV4L_H */

⌨️ 快捷键说明

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