]> git.sesse.net Git - nageru/blob - futatabi/flags.h
Set CEF autoplay policy to be more lenient.
[nageru] / futatabi / flags.h
1 #ifndef _FLAGS_H
2 #define _FLAGS_H
3
4 #include "defs.h"
5
6 #include <stdint.h>
7 #include <string>
8 #include <unordered_map>
9
10 struct Flags {
11         int width = 1280, height = 720;
12         std::string stream_source;
13         std::string working_directory = ".";
14         bool slow_down_input = false;
15         int interpolation_quality = 2;  // Can be changed in the menus.
16         bool interpolation_quality_set = false;
17         uint16_t http_port = DEFAULT_HTTPD_PORT;
18         double output_framerate = 60000.0 / 1001.0;
19         std::string tally_url;
20         double cue_in_point_padding_seconds = 0.0;  // Can be changed in the menus.
21         bool cue_in_point_padding_set = false;
22         double cue_out_point_padding_seconds = 0.0;  // Can be changed in the menus.
23         bool cue_out_point_padding_set = false;
24         std::string midi_mapping_filename;  // Empty for none.
25         std::unordered_map<unsigned, std::string> source_labels;
26 };
27 extern Flags global_flags;
28
29 // The quality setting that VideoStream was initialized to. The quality cannot
30 // currently be changed, except turning interpolation completely off, so we compare
31 // against this to give a warning.
32 extern int flow_initialized_interpolation_quality;
33
34 void usage();
35 void parse_flags(int argc, char *const argv[]);
36
37 #endif  // !defined(_FLAGS_H)