]> git.sesse.net Git - nageru/blob - futatabi/flags.h
Persist quality settings in the database.
[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;  // Can be changed in the menus.
14         bool interpolation_quality_set = false;
15         uint16_t http_port = DEFAULT_HTTPD_PORT;
16         double output_framerate = 60000.0 / 1001.0;
17 };
18 extern Flags global_flags;
19
20 // The quality setting that VideoStream was initialized to. The quality cannot
21 // currently be changed, except turning interpolation completely off, so we compare
22 // against this to give a warning.
23 extern int flow_initialized_interpolation_quality;
24
25 void usage();
26 void parse_flags(int argc, char * const argv[]);
27
28 #endif  // !defined(_FLAGS_H)