1 Oct 2003 06:18
Re: Very Basic Capture Question, Please Help!!
Yurij Sysoev <winix <at> gmx.co.uk>
2003-10-01 04:18:27 GMT
2003-10-01 04:18:27 GMT
Hi, there is a really brain-dead one(Continue reading)8<------------------------ begin --------------------------------------------------- /* v4l single frame grabber sample */ #include <stdlib.h> #include <stdio.h> #include <fcntl.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <sys/stat.h> #include <errno.h> #include <linux/videodev.h> const int mywidth = 640; // !!!!!!! const int myheight = 480; // NTSC-J - pls, put your here static struct video_capability capability; static int fd = -1; static int ret_bytes,vfd; static char *map = NULL;
8<------------------------ begin
---------------------------------------------------
/*
v4l single frame grabber sample
*/
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <errno.h>
#include <linux/videodev.h>
const int mywidth = 640; // !!!!!!!
const int myheight = 480; // NTSC-J - pls, put your here
static struct video_capability capability;
static int fd = -1;
static int ret_bytes,vfd;
static char *map = NULL;
RSS Feed