more harmony in display

This commit is contained in:
Tonton Th 2019-08-02 03:33:59 +02:00
parent 3e0a2eb9d9
commit 706a4ed0c2
3 changed files with 19 additions and 11 deletions

View File

@ -38,7 +38,7 @@ fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
foo = ioctl(vfd, VIDIOC_G_FMT, &fmt); foo = ioctl(vfd, VIDIOC_G_FMT, &fmt);
fprintf(stderr, "ioctl -> %d\n", foo); fprintf(stderr, "ioctl -> %d\n", foo);
if (0 != foo) { if (0 != foo) {
perror("ioctl S_FMT"); perror("ioctl G_FMT");
exit(1); exit(1);
} }

View File

@ -245,8 +245,6 @@ switch(ptr->type) {
break; break;
} }
fputs(".\n", FP);
return 0; return 0;
} }
/* --------------------------------------------------------------------- */ /* --------------------------------------------------------------------- */

View File

@ -174,7 +174,7 @@ int vfd, foo;
char ligne[100]; char ligne[100];
struct v4l2_capability cap; struct v4l2_capability cap;
// struct v4l2_format fmt; struct v4l2_format fmt;
struct v4l2_input input; struct v4l2_input input;
// int index; // int index;
@ -213,6 +213,16 @@ sprintf(ligne, "input %d", input.index);
pr_v4l2_input(ligne, &input); pr_v4l2_input(ligne, &input);
***/ ***/
memset(&fmt, 0, sizeof(fmt));
fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
foo = ioctl(vfd, VIDIOC_G_FMT, &fmt);
fprintf(stderr, "ioctl -> %d\n", foo);
if (0 != foo) {
perror("ioctl G_FMT");
exit(1);
}
pr_v4l2_format("Experimental", &fmt);
foo = enum_image_formats(vfd, "Experimental", 0); foo = enum_image_formats(vfd, "Experimental", 0);
foo = enum_controls(vfd, "is that working ?", 0); foo = enum_controls(vfd, "is that working ?", 0);