]> git.sesse.net Git - nageru/blob - futatabi/flags.h
Add basic MIDI input support (jog, cue in/out, play, camera switch) to Futatabi....
[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         std::string midi_mapping_filename;  // Empty for none.
21 };
22 extern Flags global_flags;
23
24 // The quality setting that VideoStream was initialized to. The quality cannot
25 // currently be changed, except turning interpolation completely off, so we compare
26 // against this to give a warning.
27 extern int flow_initialized_interpolation_quality;
28
29 void usage();
30 void parse_flags(int argc, char *const argv[]);
31
32 #endif  // !defined(_FLAGS_H)