/* * tests pour capturer les webcams */ #include #include #include #include #include #include #include #include #include #include "../floatimg.h" #include "v4l2_pr_structs.h" #include "funcs.h" int verbosity; /* --------------------------------------------------------------------- */ void help(int n) { puts("camera controls"); puts("\t-d bla\t\tselect video device"); exit(0); } /* --------------------------------------------------------------------- */ int main(int argc, char *argv[]) { int foo, opt; int etype = 0; char *device = "/dev/video0"; char *title = NULL; int K = 0; while ((opt = getopt(argc, argv, "d:e:hK:lT:v")) != -1) { switch(opt) { case 'd': device = optarg; break; case 'e': etype = atol(optarg); break; case 'h': help(0); break; case 'K': K = atol(optarg); break; // case 'l': liste_des_devices(0); break; case 'v': verbosity++; break; } } return 0; } /* --------------------------------------------------------------------- */