auto WriteCodestreamHeaders(CodecMetadata* metadata, BitWriter* writer, AuxOut* aux_out) -> Status