StreamMetadata Class
Stage executor that fills in stream metadata defaults on passing samples. More...
Declaration
Included Headers
Base class
| class | StageExecutor |
|
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
| void | set_ports (const StagePorts &ports) override |
|
Bind the executor to its runtime ports. More... | |
| void | on_input (StageMsg &&msg, std::vector< StageOutMsg > &out) override |
|
Apply defaults to the incoming sample and forward downstream. More... | |
Private Member Attributes Index
| StreamMetadataDefaults | defaults_ |
| std::unordered_map< std::string, int64_t > | next_seq_ |
| PortId | out_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
- See Also
- See Also
Definition at line 32 of file StreamMetadata.h.
Public Constructors
StreamMetadata()
| explicit |
Construct with a StreamMetadataDefaults payload describing what to fill in.
Definition at line 35 of file StreamMetadata.h.
Public Member Functions
on_input()
| virtual |
Apply defaults to the incoming sample and forward downstream.
Definition at line 39 of file StreamMetadata.h.
set_ports()
| virtual |
Bind the executor to its runtime ports.
Definition at line 37 of file StreamMetadata.h.
Private Member Attributes
defaults_
|
Definition at line 42 of file StreamMetadata.h.
next_seq_
|
Definition at line 43 of file StreamMetadata.h.
out_port_
|
Definition at line 44 of file StreamMetadata.h.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.