-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.cpp
More file actions
40 lines (36 loc) · 727 Bytes
/
main.cpp
File metadata and controls
40 lines (36 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* @brief
*
* @file main.cpp
* @author your name
* @date 2018-09-07
*/
#include "state_machine.h"
#include "test_main.h"
#include "stdio.h"
void run()
{
to_state(INIT_CAMERA);
for (;;)
{
do_state();
}
}
int main(int argc, char **argv)
{
int test_min_level,test_max_level;
char capture_save_file[] = "./res/image.yuyv";
char yuv_save_file[] = "./res/image.yuv";
char save_264_file[] = "./res/image.264";
run();
if (argc > 1)
{
sscanf(argv[1], "%d,%d", &test_min_level,&test_max_level);
}
else
{
test_min_level = 0;
}
test_main(test_min_level,test_max_level,100,capture_save_file,yuv_save_file,save_264_file);
return 0;
}