]> git.sesse.net Git - nageru/blob - futatabi/flags.h
Make width/height configurable in Futatabi.
[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 };
16 extern Flags global_flags;
17
18 void usage();
19 void parse_flags(int argc, char * const argv[]);
20
21 #endif  // !defined(_FLAGS_H)