We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent66eb038 commit941ba22Copy full SHA for 941ba22
main.cpp
@@ -12,14 +12,10 @@
12
#include<unistd.h>
13
#include<string.h>
14
#include<errno.h>
15
-#include<stdlib.h>
16
#include<signal.h>
17
18
#include"logger.h"
19
-
20
-#include"V4l2Device.h"
21
#include"V4l2Capture.h"
22
-#include"V4l2Output.h"
23
24
int stop=0;
25
@@ -37,7 +33,7 @@ void sighandler(int)
37
33
** -------------------------------------------------------------------------*/
38
34
intmain(int argc,char* argv[])
39
35
{
40
-int verbose=0;
36
+int verbose =0;
41
constchar *in_devname ="/dev/video0";
42
V4l2IoType ioTypeIn = IOTYPE_MMAP;
43
int format =0;
@@ -52,7 +48,7 @@ int main(int argc, char* argv[])
52
48
53
49
case'v':verbose =1;if (optarg && *optarg=='v') verbose++;break;
54
50
case'r':ioTypeIn = IOTYPE_READWRITE ;break;
55
-case'G':sscanf(optarg,"%dx%dx%d", &width, &height, &fps) ;break;
51
+case'G':sscanf(optarg,"%dx%dx%d", &width, &height, &fps) ;break;
56
case'f':format =V4l2Device::fourcc(optarg) ;break;
57
case'h':
58