Plumb in a "monochrome" flag

This bit appears in the sequence header. At the moment, it does
nothing, but it will mean that we don't encode (or read) chroma
planes.

This patch adds the flag to the sequence header, and also adds an
encoder option (--monochrome) which enables it. At the moment, this
doesn't do anything except cause the bit to be set correctly in the
header.

Change-Id: If5598412c1c75101553d7f8f9098f9ed1163514e
diff --git a/aomenc.c b/aomenc.c
index 0ed4714..0128490 100644
--- a/aomenc.c
+++ b/aomenc.c
@@ -260,6 +260,10 @@
     ARG_DEF(NULL, "large-scale-tile", 1,
             "Large scale tile coding (0: off (default), 1: on)");
 #endif  // CONFIG_EXT_TILE
+#if CONFIG_MONO_VIDEO
+static const arg_def_t monochrome =
+    ARG_DEF(NULL, "monochrome", 0, "Monochrome video (no chroma planes)");
+#endif  // MONOCHROME
 
 static const arg_def_t *global_args[] = { &use_yv12,
                                           &use_i420,
@@ -284,6 +288,9 @@
 #if CONFIG_EXT_TILE
                                           &large_scale_tile,
 #endif  // CONFIG_EXT_TILE
+#if CONFIG_MONO_VIDEO
+                                          &monochrome,
+#endif  // CONFIG_MONO_VIDEO
                                           NULL };
 
 static const arg_def_t dropframe_thresh =
@@ -1065,6 +1072,10 @@
     } else if (arg_match(&arg, &large_scale_tile, argi)) {
       config->cfg.large_scale_tile = arg_parse_uint(&arg);
 #endif  // CONFIG_EXT_TILE
+#if CONFIG_MONO_VIDEO
+    } else if (arg_match(&arg, &monochrome, argi)) {
+      config->cfg.monochrome = 1;
+#endif  // CONFIG_MONO_VIDEO
     } else if (arg_match(&arg, &dropframe_thresh, argi)) {
       config->cfg.rc_dropframe_thresh = arg_parse_uint(&arg);
     } else if (arg_match(&arg, &resize_mode, argi)) {