on verra demain

This commit is contained in:
2020-12-29 00:54:15 +01:00
parent e7ad5188ca
commit b8e5bbf3cc
8 changed files with 53 additions and 9 deletions

View File

@@ -191,7 +191,7 @@ if ((fmt.fmt.pix.width != width) || (fmt.fmt.pix.height != height)) {
fmt.fmt.pix.width, fmt.fmt.pix.height);
}
fprintf(stderr,"--- Ok 1\n");
// fprintf(stderr,"--- Ok 1\n");
CLEAR(req);
req.count = NBR_BUFFERS;
@@ -241,7 +241,6 @@ else {
fmt.fmt.pix.width, fmt.fmt.pix.height,
FIMG_TYPE_RGB);
}
fimg_clear(&cumul);
cumul.fval = 255.0; /* must be read from camera XXX */
cumul.count = 0;
@@ -282,12 +281,10 @@ for (i = 0; i < nbre_capt; i++) {
fimg_timer_get(0));
fflush(stderr);
}
CLEAR(buf);
buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
buf.memory = V4L2_MEMORY_MMAP;
xioctl(fd, VIDIOC_DQBUF, &buf);
if(verbosity > 2) {
fprintf(stderr, "xioctl VIDIOC_DQBUF done\n");
fflush(stderr);