aboutsummaryrefslogtreecommitdiff
path: root/args.c
diff options
context:
space:
mode:
Diffstat (limited to 'args.c')
-rw-r--r--args.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/args.c b/args.c
index 40c94cd..f6bb18c 100644
--- a/args.c
+++ b/args.c
@@ -21,6 +21,7 @@
*
*/
+#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
@@ -40,7 +41,8 @@ void print_usage(char *name)
printf("\t-w video width\n");
printf("\t-h video height\n");
printf("\t-f save encoded frames on disk\n");
-
+ printf("\t-g disable test pattern generator\n");
+ printf("\t-v verbose mode\n");
printf("\n");
}
@@ -75,7 +77,7 @@ int parse_args(struct instance *i, int argc, char **argv)
init_to_defaults(i);
- while ((c = getopt(argc, argv, "w:h:c:d:m:fn:")) != -1) {
+ while ((c = getopt(argc, argv, "w:h:c:d:m:f:n:gv")) != -1) {
switch (c) {
case 'c':
i->codec = get_codec(optarg);
@@ -100,6 +102,12 @@ int parse_args(struct instance *i, int argc, char **argv)
case 'n':
i->num_frames_to_save = atoi(optarg);
break;
+ case 'g':
+ i->disable_gentest = true;
+ break;
+ case 'v':
+ i->verbose = true;
+ break;
default:
err("Bad argument");
return -1;