]> git.sesse.net Git - nageru/blobdiff - nageru/flags.h
Add a --disable-audio option to Kaeru, to transcode streams with no audio.
[nageru] / nageru / flags.h
index 09337d13b9e12513d307e395dd9cd1bf8c4f42ae..a401dbf53a3e875572d48a9dbf1862935f60bc2f 100644 (file)
@@ -18,7 +18,7 @@ struct Flags {
        bool uncompressed_video_to_http = false;
        bool x264_video_to_http = false;
        bool x264_video_to_disk = false;  // Disables Quick Sync entirely. Implies x264_video_to_http == true.
-       std::vector<std::string> theme_dirs { ".", "/usr/local/share/nageru" };
+       std::vector<std::string> theme_dirs { ".", PREFIX "/share/nageru" };
        std::string recording_dir = ".";
        std::string theme_filename = "theme.lua";
        bool locut_enabled = true;
@@ -63,10 +63,12 @@ struct Flags {
        bool ten_bit_output = false;  // Implies x264_video_to_disk == true and x264_bit_depth == 10.
        YCbCrInterpretation ycbcr_interpretation[MAX_VIDEO_CARDS];
        bool transcode_audio = true;  // Kaeru only.
+       bool enable_audio = true;  // Kaeru only. If false, then transcode_audio is also false.
        int x264_bit_depth = 8;  // Not user-settable.
        bool use_zerocopy = false;  // Not user-settable.
        bool can_disable_srgb_decoder = false;  // Not user-settable.
        bool fullscreen = false;
+       std::map<unsigned, unsigned> card_to_mjpeg_stream_export;  // If a card is not in the map, it is not exported.
 };
 extern Flags global_flags;