minor tweaks...
This commit is contained in:
parent
03bfeacad5
commit
5c2b306051
10
v4l2/t.c
10
v4l2/t.c
@ -33,7 +33,6 @@ if (verbosity) fprintf(stderr, "\topen %s -> %d\n", dev, vfd);
|
||||
|
||||
memset(&fmt, 0, sizeof(fmt));
|
||||
fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
|
||||
// pr_v4l2_format("before ioctl", &fmt);
|
||||
|
||||
foo = ioctl(vfd, VIDIOC_G_FMT, &fmt);
|
||||
fprintf(stderr, "ioctl -> %d\n", foo);
|
||||
@ -42,25 +41,18 @@ if (0 != foo) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
pr_v4l2_format("after ioctl", &fmt);
|
||||
pr_v4l2_format("after ioctl VIDIOC_G_FMT", &fmt);
|
||||
|
||||
|
||||
return k;
|
||||
}
|
||||
/* --------------------------------------------------------------------- */
|
||||
int liste_des_devices(int K)
|
||||
{
|
||||
fprintf(stderr, "%s not implemented\n", __func__);
|
||||
return -1;
|
||||
}
|
||||
/* --------------------------------------------------------------------- */
|
||||
|
||||
void help(int k)
|
||||
{
|
||||
puts("Options :");
|
||||
puts("\t-d\tselect the video device");
|
||||
puts("\t-K\tset the K parameter");
|
||||
puts("\t-l\tlist video devices");
|
||||
puts("\t-v\tincrease verbosity");
|
||||
|
||||
if (verbosity) { puts(""); fimg_print_version(1); }
|
||||
|
Loading…
Reference in New Issue
Block a user