minor tweaks...

This commit is contained in:
tth 2019-08-23 23:56:36 +02:00
parent 03bfeacad5
commit 5c2b306051
1 changed files with 1 additions and 9 deletions

View File

@ -33,7 +33,6 @@ if (verbosity) fprintf(stderr, "\topen %s -> %d\n", dev, vfd);
memset(&fmt, 0, sizeof(fmt)); memset(&fmt, 0, sizeof(fmt));
fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
// pr_v4l2_format("before ioctl", &fmt);
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);
@ -42,25 +41,18 @@ if (0 != foo) {
exit(1); exit(1);
} }
pr_v4l2_format("after ioctl", &fmt); pr_v4l2_format("after ioctl VIDIOC_G_FMT", &fmt);
return k; return k;
} }
/* --------------------------------------------------------------------- */ /* --------------------------------------------------------------------- */
int liste_des_devices(int K)
{
fprintf(stderr, "%s not implemented\n", __func__);
return -1;
}
/* --------------------------------------------------------------------- */
void help(int k) void help(int k)
{ {
puts("Options :"); puts("Options :");
puts("\t-d\tselect the video device"); puts("\t-d\tselect the video device");
puts("\t-K\tset the K parameter"); puts("\t-K\tset the K parameter");
puts("\t-l\tlist video devices");
puts("\t-v\tincrease verbosity"); puts("\t-v\tincrease verbosity");
if (verbosity) { puts(""); fimg_print_version(1); } if (verbosity) { puts(""); fimg_print_version(1); }