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

📄 v4l.h

📁 arm的usb摄像头图片采集
💻 H
字号:
#ifndef _V4L_H_#define _V4L_H_#include <sys/types.h>#include <linux/videodev.h>#include <unistd.h>struct _v4l_struct {   int fd;   struct video_capability capability;   struct video_buffer buffer;   struct video_window window;   struct video_channel channel[8];   struct video_picture picture;   struct video_tuner tuner;   struct video_audio audio[8];   struct video_mmap mmap;   struct video_mbuf mbuf;   unsigned char *map;   int frame_current;   int frame_using[VIDEO_MAX_FRAME];};struct _v4l_attr {   long nr;   const char *name;};typedef struct _v4l_struct v4l_device;typedef struct _v4l_attr V4LATTR;extern int v4l_open(char *, v4l_device *);extern int v4l_close(v4l_device *);extern int v4l_get_capability(v4l_device *);extern int v4l_set_norm(v4l_device *, int);extern int v4l_get_channels(v4l_device *);extern int v4l_get_audios(v4l_device *);extern int v4l_get_picture(v4l_device *);extern int v4l_grab_init(v4l_device *, int, int);extern int v4l_grab_frame(v4l_device *, int);extern int v4l_grab_sync(v4l_device *);extern int v4l_mmap_init(v4l_device *);extern int v4l_get_mbuf(v4l_device *);extern int v4l_get_picture(v4l_device *);extern int v4l_set_picture(v4l_device *, int, int, int, int, int);extern int v4l_grab_picture(v4l_device *, unsigned int);extern int v4l_set_buffer(v4l_device *);extern int v4l_get_buffer(v4l_device *);extern int v4l_switch_channel(v4l_device *, int);extern int v4l_set_palette(v4l_device *, int, int);extern int capture_init(char *dev,v4l_device *vd,int width,int high);extern void capture_close(v4l_device *vd);extern unsigned char *get_picture(v4l_device *video);extern int save_picture(unsigned char *image,unsigned char *name);#endif

⌨️ 快捷键说明

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