]> git.sesse.net Git - nageru/blob - futatabi/flags.h
Make Futatabi output frame rate adjustable.
[nageru] / futatabi / flags.h
1 #ifndef _FLAGS_H
2 #define _FLAGS_H
3
4 #include <string>
5
6 #include "defs.h"
7
8 struct Flags {
9         int width = 1280, height = 720;
10         std::string stream_source;
11         std::string working_directory = ".";
12         bool slow_down_input = false;
13         int interpolation_quality = 2;
14         uint16_t http_port = DEFAULT_HTTPD_PORT;
15         double output_framerate = 60000.0 / 1001.0;
16 };
17 extern Flags global_flags;
18
19 void usage();
20 void parse_flags(int argc, char * const argv[]);
21
22 #endif  // !defined(_FLAGS_H)