forked from tTh/FloatImg
more harmony in display
This commit is contained in:
parent
3e0a2eb9d9
commit
706a4ed0c2
2
v4l2/t.c
2
v4l2/t.c
@ -38,7 +38,7 @@ 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 S_FMT");
|
||||
perror("ioctl G_FMT");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -245,8 +245,6 @@ switch(ptr->type) {
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
fputs(".\n", FP);
|
||||
return 0;
|
||||
}
|
||||
/* --------------------------------------------------------------------- */
|
||||
|
@ -174,7 +174,7 @@ int vfd, foo;
|
||||
char ligne[100];
|
||||
|
||||
struct v4l2_capability cap;
|
||||
// struct v4l2_format fmt;
|
||||
struct v4l2_format fmt;
|
||||
struct v4l2_input input;
|
||||
// int index;
|
||||
|
||||
@ -213,6 +213,16 @@ sprintf(ligne, "input %d", input.index);
|
||||
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_controls(vfd, "is that working ?", 0);
|
||||
|
Loading…
Reference in New Issue
Block a user