QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GstQgc::BinChain Class Reference

#include <GstQgcBinChain.h>

Public Member Functions

 BinChain (GstBin *bin)
 ~BinChain ()
 BinChain (const BinChain &)=delete
BinChain & operator= (const BinChain &)=delete
GstElement * adopt (GstElement *element)
bool linkChain (std::initializer_list< GstElement * > chain)
bool ghostSink (GstElement *head)
void commit ()

Static Public Attributes

static constexpr std::size_t kMaxElements = 5
 The longest chain qgcvideosinkbin builds: videoconvert ! videoscale ! glupload ! glcolorconvert ! qgcqvideosink.

Detailed Description

Linked element chain with automatic rollback: adopt() elements, linkChain() in flow order, ghostSink() the head, commit() on success; ~BinChain unwinds the rest.

Definition at line 12 of file GstQgcBinChain.h.

Constructor & Destructor Documentation

◆ BinChain() [1/2]

GstQgc::BinChain::BinChain ( GstBin * bin)
inlineexplicit

Definition at line 18 of file GstQgcBinChain.h.

Referenced by BinChain(), and operator=().

◆ ~BinChain()

GstQgc::BinChain::~BinChain ( )
inline

Definition at line 22 of file GstQgcBinChain.h.

◆ BinChain() [2/2]

GstQgc::BinChain::BinChain ( const BinChain & )
delete

References BinChain().

Member Function Documentation

◆ adopt()

GstElement * GstQgc::BinChain::adopt ( GstElement * element)
inline

Adds element to the bin and returns it (owned by the bin), or nullptr when the bin rejects it. Consumes the caller's ref, floating or not, either way.

Definition at line 40 of file GstQgcBinChain.h.

Referenced by add_converter(), and gst_qgc_video_sink_bin_setup().

◆ commit()

void GstQgc::BinChain::commit ( )
inline

Definition at line 92 of file GstQgcBinChain.h.

Referenced by gst_qgc_video_sink_bin_setup().

◆ ghostSink()

bool GstQgc::BinChain::ghostSink ( GstElement * head)
inline

Definition at line 73 of file GstQgcBinChain.h.

Referenced by gst_qgc_video_sink_bin_setup().

◆ linkChain()

bool GstQgc::BinChain::linkChain ( std::initializer_list< GstElement * > chain)
inline

Definition at line 58 of file GstQgcBinChain.h.

Referenced by add_converter(), and gst_qgc_video_sink_bin_setup().

◆ operator=()

BinChain & GstQgc::BinChain::operator= ( const BinChain & )
delete

References BinChain().

Member Data Documentation

◆ kMaxElements

std::size_t GstQgc::BinChain::kMaxElements = 5
staticconstexpr

The longest chain qgcvideosinkbin builds: videoconvert ! videoscale ! glupload ! glcolorconvert ! qgcqvideosink.

Definition at line 16 of file GstQgcBinChain.h.


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