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/av1/encoder/bitstream.c b/av1/encoder/bitstream.c
index 04cb6e5..0798cfb 100644
--- a/av1/encoder/bitstream.c
+++ b/av1/encoder/bitstream.c
@@ -3658,6 +3658,11 @@
wb, seq_params->frame_id_length - seq_params->delta_frame_id_length - 1,
3);
}
+
+#if CONFIG_MONO_VIDEO
+ seq_params->monochrome = cm->monochrome;
+ aom_wb_write_bit(wb, seq_params->monochrome);
+#endif // CONFIG_MONO_VIDEO
}
#endif // CONFIG_REFERENCE_BUFFER || CONFIG_OBU