Skip to main content

graph Namespace

Definition

namespace simaai::neat::graph { ... }

Namespaces Index

namespacedsl
namespacehelpers
namespacenodes
namespaceruntime
namespacestrict_sync

Classes Index

structEdgeSpec
structCompiledPipelineSegment
structCompiledStageNode
structCompiledGraph
classCompiler
classGraph

Directed acyclic graph of hybrid nodes with named ports. More...

structStreamMetadataDefaults
classGraphPrinter
structGraphRunOptions
structGraphRunStats
structGraphRunPullOptions
classGraphRun
classGraphSession
structPortDesc
structEdge
classNode

Base class for hybrid graph nodes. More...

structStageMsg
structStageOutMsg
structStagePorts
classStageExecutor

Typedefs Index

usingNodeId = std::size_t
usingPortId = std::uint32_t

Enumerations Index

enum classBackend { ... }

Functions Index

voidensure_stream_metadata (Sample &sample, const StreamMetadataDefaults &defaults, std::unordered_map< std::string, int64_t > *next_seq=nullptr)

Variables Index

static constexpr NodeIdkInvalidNode = static_cast<NodeId>(-1)
static constexpr PortIdkInvalidPort = static_cast<PortId>(-1)

Typedefs

NodeId

using simaai::neat::graph::NodeId = typedef std::size_t

Definition at line 21 of file GraphTypes.h.

21using NodeId = std::size_t;

PortId

using simaai::neat::graph::PortId = typedef std::uint32_t

Definition at line 22 of file GraphTypes.h.

22using PortId = std::uint32_t;

Enumerations

Backend

enum class Backend
strong
Enumeration values
Pipeline
Stage

Definition at line 16 of file GraphTypes.h.

16enum class Backend {
18 Stage,
19};

Functions

ensure_stream_metadata()

void simaai::neat::graph::ensure_stream_metadata (Sample & sample, const StreamMetadataDefaults & defaults, std::unordered_map< std::string, int64_t > * next_seq=nullptr)
inline

Definition at line 29 of file GraphMetadata.h.

29inline void ensure_stream_metadata(Sample& sample, const StreamMetadataDefaults& defaults,
30 std::unordered_map<std::string, int64_t>* next_seq = nullptr) {
31 if (sample.stream_id.empty() && defaults.fill_stream_id) {
32 if (!defaults.stream_id.empty()) {
33 sample.stream_id = defaults.stream_id;
34 } else {
35 sample.stream_id = "stream0";
36 }
37 }
38
39 if (defaults.fill_input_seq && sample.input_seq < 0) {
40 if (sample.orig_input_seq >= 0) {
41 sample.input_seq = sample.orig_input_seq;
42 } else if (next_seq) {
43 auto& next = (*next_seq)[sample.stream_id];
44 sample.input_seq = next++;
45 } else {
46 sample.input_seq = 0;
47 }
48 }
49
50 if (defaults.fill_orig_input_seq && sample.orig_input_seq < 0) {
51 sample.orig_input_seq = sample.input_seq;
52 }
53
54 if (sample.caps_string.empty() && !defaults.caps_string.empty()) {
55 sample.caps_string = defaults.caps_string;
56 }
57 if (sample.port_name.empty() && !defaults.port_name.empty()) {
58 sample.port_name = defaults.port_name;
59 }
60 if (sample.media_type.empty() && !defaults.media_type.empty()) {
61 sample.media_type = defaults.media_type;
62 }
63 if (sample.format.empty() && !defaults.format.empty()) {
64 sample.format = defaults.format;
65 }
66 if (sample.payload_tag.empty() && !defaults.payload_tag.empty()) {
67 sample.payload_tag = defaults.payload_tag;
68 }
69}

Variables

kInvalidNode

constexpr NodeId simaai::neat::graph::kInvalidNode = static_cast<NodeId>(-1)
constexpr static

Definition at line 24 of file GraphTypes.h.

24static constexpr NodeId kInvalidNode = static_cast<NodeId>(-1);

kInvalidPort

constexpr PortId simaai::neat::graph::kInvalidPort = static_cast<PortId>(-1)
constexpr static

Definition at line 25 of file GraphTypes.h.

25static constexpr PortId kInvalidPort = static_cast<PortId>(-1);

The documentation for this namespace was generated from the following files:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.