typedef struct _v4ldevice {int fd;//设备号 struct video_capability capability; struct video_channel channel[10]; struct video_picture picture; struct video_clip clip; struct video_window window; struct video_capture capture; struct video_buffer buffer; struct video_mmap mmap; struct video_mbuf mbuf; struct video_unit unit; unsigned char *map;//mmap方式获取数据时,数据的首地址 pthread_mutex_t mutex; int frame; 太阳能小屋int framestat[2]; 无氨显影液>智能抄表int overlay; }v4ldevice; 牺牲阳极块 |
* struct video_capability name[32] Canonical name for this interface type Type of interface channels Number of radio/tv channels if appropriate audios Number of audio devices if appropriate maxwidth Maximum capture width in pixels maxheight Maximum capture height in pixels minwidth Minimum capture width in pixels minheight Minimum capture height in pixels |
int v4lgetcapability(v4ldevice *vd) { if(ioctl(vd->fd, VIDIOCGCAP, &(vd->capability)) < 0) { v4lperror("v4lopen:VIDIOCGCAP"); return -1; } return 0; } * struct video_picture brightness Picture brightness hue Picture hue (colour only) colour Picture colour (colour only) contrast Picture contrast whiteness The whiteness (greyscale only) depth The capture depth (may need to match the frame buffer depth) palette Reports the palette that should be used for this image |
* struct video_mbuf size The number of bytes to map frames The number of frames offsets The offset of each frame |
本文发布于:2023-07-18 12:04:21,感谢您对本站的认可!
本文链接:https://patent.en369.cn/patent/3/182685.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |