QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GStreamer Namespace Reference

Enumerations

enum  VideoDecoderOptions {
  ForceVideoDecoderDefault = 0 , ForceVideoDecoderSoftware , ForceVideoDecoderNVIDIA , ForceVideoDecoderVAAPI ,
  ForceVideoDecoderDirectX3D , ForceVideoDecoderVideoToolbox , ForceVideoDecoderIntel , ForceVideoDecoderVulkan ,
  ForceVideoDecoderHardware
}
 

Functions

void setDebugLevel (int level)
 
void prepareEnvironment ()
 
bool completeInit ()
 
bool initialize ()
 
void * createVideoSink (QQuickItem *, QObject *)
 
void releaseVideoSink (void *sink)
 
VideoReceivercreateVideoReceiver (QObject *parent)
 
bool setupAppSinkAdapter (void *sinkBin, QVideoSink *videoSink, QObject *adapterParent)
 Connect the appsink inside sinkBin to videoSink. Returns true on success.
 
void setAppSinkAdaptersActive (QObject *adapterParent, bool active)
 
gboolean isValidRtspUri (const gchar *uri_str)
 
bool isHardwareDecoderFactory (GstElementFactory *factory)
 
void setCodecPriorities (VideoDecoderOptions option)
 
void resetExternalPluginLoaderFailure ()
 
bool didExternalPluginLoaderFail ()
 
void redirectGLibLogging ()
 
void qtGstLog (GstDebugCategory *category, GstDebugLevel level, const gchar *file, const gchar *function, gint line, GObject *object, GstDebugMessage *message, gpointer data)
 

Enumeration Type Documentation

◆ VideoDecoderOptions

Enumerator
ForceVideoDecoderDefault 
ForceVideoDecoderSoftware 
ForceVideoDecoderNVIDIA 
ForceVideoDecoderVAAPI 
ForceVideoDecoderDirectX3D 
ForceVideoDecoderVideoToolbox 
ForceVideoDecoderIntel 
ForceVideoDecoderVulkan 
ForceVideoDecoderHardware 

Definition at line 10 of file GStreamer.h.

Function Documentation

◆ completeInit()

bool GStreamer::completeInit ( )

Definition at line 789 of file GStreamer.cc.

References didExternalPluginLoaderFail().

Referenced by initialize().

◆ createVideoReceiver()

VideoReceiver * GStreamer::createVideoReceiver ( QObject *  parent)

Definition at line 904 of file GStreamer.cc.

Referenced by QGCCorePlugin::createVideoReceiver().

◆ createVideoSink()

void * GStreamer::createVideoSink ( QQuickItem *  ,
QObject *   
)

◆ didExternalPluginLoaderFail()

bool GStreamer::didExternalPluginLoaderFail ( )

Definition at line 72 of file GStreamerLogging.cc.

Referenced by completeInit().

◆ initialize()

bool GStreamer::initialize ( )

◆ isHardwareDecoderFactory()

bool GStreamer::isHardwareDecoderFactory ( GstElementFactory *  factory)

Definition at line 40 of file GStreamerHelpers.cc.

References isHardwareDecoderFactory().

Referenced by isHardwareDecoderFactory().

◆ isValidRtspUri()

gboolean GStreamer::isValidRtspUri ( const gchar *  uri_str)

Definition at line 14 of file GStreamerHelpers.cc.

References isValidRtspUri().

Referenced by isValidRtspUri().

◆ prepareEnvironment()

void GStreamer::prepareEnvironment ( )

Definition at line 736 of file GStreamer.cc.

Referenced by VideoManager::startGStreamerInit().

◆ qtGstLog()

void GStreamer::qtGstLog ( GstDebugCategory *  category,
GstDebugLevel  level,
const gchar *  file,
const gchar *  function,
gint  line,
GObject *  object,
GstDebugMessage *  message,
gpointer  data 
)

Definition at line 84 of file GStreamerLogging.cc.

◆ redirectGLibLogging()

void GStreamer::redirectGLibLogging ( )

Definition at line 77 of file GStreamerLogging.cc.

Referenced by initialize().

◆ releaseVideoSink()

void GStreamer::releaseVideoSink ( void *  sink)

Definition at line 897 of file GStreamer.cc.

Referenced by QGCCorePlugin::releaseVideoSink().

◆ resetExternalPluginLoaderFailure()

void GStreamer::resetExternalPluginLoaderFailure ( )

Definition at line 67 of file GStreamerLogging.cc.

Referenced by initialize().

◆ setAppSinkAdaptersActive()

void GStreamer::setAppSinkAdaptersActive ( QObject *  adapterParent,
bool  active 
)

Toggle every appsink adapter parented under adapterParent. Used to drop frames at the appsink while the host window is hidden/minimized — saves CPU vs. running the full decode→render path against a non-visible sink. Safe to call repeatedly; no-op when no adapters exist.

Definition at line 971 of file GStreamer.cc.

References GstAppSinkAdapter::setActive().

◆ setCodecPriorities()

◆ setDebugLevel()

void GStreamer::setDebugLevel ( int  level)

Definition at line 726 of file GStreamer.cc.

Referenced by VideoManager::init().

◆ setupAppSinkAdapter()

bool GStreamer::setupAppSinkAdapter ( void *  sinkBin,
QVideoSink *  videoSink,
QObject *  adapterParent 
)

Connect the appsink inside sinkBin to videoSink. Returns true on success.

Definition at line 909 of file GStreamer.cc.

References SettingsManager::instance(), GstVideoReceiver::latencyChanged(), GstAppSinkAdapter::requestLatencyRefresh(), and GstAppSinkAdapter::setActive().