X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=futatabi%2Fflags.h;h=1e0284bcd8c3ff9d08e545ec91b5348de4276ba3;hb=2b37c51ea17b77b88e2f7fda443109acc260aa8f;hp=395093640c9081c4e598603675139decfc02108d;hpb=52336c086b8bc355b55e2046e3a055b1b4c70ef7;p=nageru diff --git a/futatabi/flags.h b/futatabi/flags.h index 3950936..1e0284b 100644 --- a/futatabi/flags.h +++ b/futatabi/flags.h @@ -1,21 +1,31 @@ #ifndef _FLAGS_H #define _FLAGS_H -#include - #include "defs.h" +#include + struct Flags { int width = 1280, height = 720; std::string stream_source; std::string working_directory = "."; bool slow_down_input = false; - int interpolation_quality = 2; + int interpolation_quality = 2; // Can be changed in the menus. + bool interpolation_quality_set = false; uint16_t http_port = DEFAULT_HTTPD_PORT; + double output_framerate = 60000.0 / 1001.0; + std::string tally_url; + double cue_point_padding_seconds = 0.0; // Can be changed in the menus. + bool cue_point_padding_set = false; }; extern Flags global_flags; +// The quality setting that VideoStream was initialized to. The quality cannot +// currently be changed, except turning interpolation completely off, so we compare +// against this to give a warning. +extern int flow_initialized_interpolation_quality; + void usage(); -void parse_flags(int argc, char * const argv[]); +void parse_flags(int argc, char *const argv[]); #endif // !defined(_FLAGS_H)