gstreamer
Loading...
Searching...
No Matches
gstreamer core streaming API

Core abstractions and helper functions used by all streamer plugins. More...

Collaboration diagram for gstreamer core streaming API:

Files

file  gstreamer.h
 Core streaming interface and helper utilities for the gstreamer module.
 
file  gstreamerConventions.h
 Shared constants and error codes for the gstreamer module.
 

Data Structures

class  GStreamer
 Abstract base class for all gstreamer output plugins. More...
 

Functions

std::shared_ptr< const gstreamersMapgstreamer::gstreamersMapPtr (const std::shared_ptr< GOptions > &gopts, int thread_id=-1)
 Create a per-thread map of configured streamer instances.
 

Detailed Description

Function Documentation

◆ gstreamersMapPtr()

std::shared_ptr< const gstreamersMap > gstreamer::gstreamersMapPtr ( const std::shared_ptr< GOptions > & gopts,
int thread_id = -1 )
inline

This helper parses all configured output definitions, specializes each one for the requested worker thread, dynamically loads the corresponding plugin, and stores the resulting streamer object in the returned map.

The helper intentionally does not open the backend connection. That step is left to the caller so applications can decide how to handle failures and when to start the output lifetime.

Parameters
goptsParsed options container supplying streamer definitions.
thread_idWorker thread id used to specialize output names. The default leaves names unchanged.
Returns
Shared pointer to a constant map from plugin object name to streamer instance.

Definition at line 581 of file gstreamer.h.