]> git.sesse.net Git - nageru/blobdiff - flags.cpp
Add support for uncompressed video instead of H.264 (while still storing H.264 to...
[nageru] / flags.cpp
index e0c638b708469a854cedfd6f869bb7de5e181a1f..c06be70e4aed1b47cd28d46aedc0dccd0a18ad7c 100644 (file)
--- a/flags.cpp
+++ b/flags.cpp
@@ -1,9 +1,8 @@
-#include <stdio.h>
+#include "flags.h"
+
 #include <getopt.h>
+#include <stdio.h>
 #include <stdlib.h>
-#include <unistd.h>
-
-#include "flags.h"
 
 Flags global_flags;
 
@@ -11,6 +10,8 @@ void parse_flags(int argc, char * const argv[])
 {
        static const option long_options[] = {
                { "num-cards", required_argument, 0, 'c' },
+               { "va-display", required_argument, 0, 1000 },
+               { "http-uncompressed-video", no_argument, 0, 1001 },
                { 0, 0, 0, 0 }
        };
        for ( ;; ) {
@@ -24,6 +25,12 @@ void parse_flags(int argc, char * const argv[])
                case 'c':
                        global_flags.num_cards = atoi(optarg);
                        break;
+               case 1000:
+                       global_flags.va_display = optarg;
+                       break;
+               case 1001:
+                       global_flags.uncompressed_video_to_http = true;
+                       break;
                default:
                        fprintf(stderr, "Unknown option '%s'\n", argv[option_index]);
                        exit(1);