forked from tTh/FloatImg
debug grabvidseq
This commit is contained in:
parent
0e6d2f8ad7
commit
18a5a5229f
@ -161,8 +161,10 @@ for (i = 0; i < n_buffers; ++i) {
|
||||
}
|
||||
|
||||
type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
|
||||
|
||||
xioctl(fd, VIDIOC_STREAMON, &type);
|
||||
|
||||
if (verbosity) fprintf(stderr,"pid %d grabbing...\n", getpid());
|
||||
|
||||
for (i = 0; i < nbre_capt; i++) {
|
||||
do {
|
||||
FD_ZERO(&fds);
|
||||
@ -186,7 +188,7 @@ for (i = 0; i < nbre_capt; i++) {
|
||||
xioctl(fd, VIDIOC_DQBUF, &buf);
|
||||
|
||||
sprintf(out_name, "%s/%05d.ppm", dest_dir, i);
|
||||
if (verbosity) fprintf(stderr, "--> %s\n", out_name);
|
||||
if (verbosity > 1) fprintf(stderr, "--> %s\n", out_name);
|
||||
|
||||
fout = fopen(out_name, "w");
|
||||
if (!fout) {
|
||||
|
Loading…
Reference in New Issue
Block a user