]> git.sesse.net Git - nageru/blob - futatabi/flags.h
Only enable the queue button if we can actually queue something.
[nageru] / futatabi / flags.h
1 #ifndef _FLAGS_H
2 #define _FLAGS_H
3
4 #include "defs.h"
5
6 #include <string>
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         std::string tally_url;
18         double cue_point_padding_seconds = 0.0;  // Can be changed in the menus.
19         bool cue_point_padding_set = false;
20 };
21 extern Flags global_flags;
22
23 // The quality setting that VideoStream was initialized to. The quality cannot
24 // currently be changed, except turning interpolation completely off, so we compare
25 // against this to give a warning.
26 extern int flow_initialized_interpolation_quality;
27
28 void usage();
29 void parse_flags(int argc, char *const argv[]);
30
31 #endif  // !defined(_FLAGS_H)