Skip to main content

StreamMetadata Class

Stage executor that fills in stream metadata defaults on passing samples. More...

Declaration​

class simaai::neat::graph::nodes::StreamMetadata { ... }

Included Headers​

#include <StreamMetadata.h>

Base class​

classStageExecutor

Actor-style executor base class — implement to add a new runtime-graph stage. More...

Public Constructors Index​

StreamMetadata (StreamMetadataDefaults defaults={})

Construct with a StreamMetadataDefaults payload describing what to fill in. More...

Public Member Functions Index​

voidset_ports (const StagePorts &ports) override

Bind the executor to its runtime ports. More...

voidon_input (StageMsg &&msg, std::vector< StageOutMsg > &out) override

Apply defaults to the incoming sample and forward downstream. More...

Private Member Attributes Index​

StreamMetadataDefaultsdefaults_
std::unordered_map< std::string, int64_t >next_seq_
PortIdout_port_ = kInvalidPort

Description​

Stage executor that fills in stream metadata defaults on passing samples.

Applies StreamMetadataDefaults to incoming samples (stream id, caps, label, port name, media type, format, payload tag, sequence numbers) and forwards them downstream. Used to attach a stable identity to a stream of samples that originate without one.

See Also

StreamMetadataNode

See Also

StreamMetadataDefaults

See Also

StageExecutor

Definition at line 32 of file StreamMetadata.h.

Public Constructors​

StreamMetadata()​

simaai::neat::graph::nodes::StreamMetadata::StreamMetadata (StreamMetadataDefaults defaults={})
explicit

Construct with a StreamMetadataDefaults payload describing what to fill in.

Definition at line 35 of file StreamMetadata.h.

Public Member Functions​

on_input()​

void simaai::neat::graph::nodes::StreamMetadata::on_input (StageMsg && msg, std::vector< StageOutMsg > & out)
virtual

Apply defaults to the incoming sample and forward downstream.

Definition at line 39 of file StreamMetadata.h.

set_ports()​

void simaai::neat::graph::nodes::StreamMetadata::set_ports (const StagePorts & ports)
virtual

Bind the executor to its runtime ports.

Definition at line 37 of file StreamMetadata.h.

Private Member Attributes​

defaults_​

StreamMetadataDefaults simaai::neat::graph::nodes::StreamMetadata::defaults_

Definition at line 42 of file StreamMetadata.h.

next_seq_​

std::unordered_map<std::string, int64_t> simaai::neat::graph::nodes::StreamMetadata::next_seq_

Definition at line 43 of file StreamMetadata.h.

43 std::unordered_map<std::string, int64_t> next_seq_;

out_port_​

PortId simaai::neat::graph::nodes::StreamMetadata::out_port_ = kInvalidPort

Definition at line 44 of file StreamMetadata.h.

44 PortId out_port_ = kInvalidPort;

The documentation for this class was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.