capture.h
来自「嵌入式LINUX下的摄像头采集及通过CDMA网络传输信息。」· C头文件 代码 · 共 60 行
H
60 行
#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 + =
减小字号Ctrl + -
显示快捷键?