Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qgstreamervideooverlay.cpp File Reference

(cce20d24bd00f3f6c486d0a3291596fe52426af4)

#include "qgstreamervideooverlay_p.h"
#include <QtGui/qguiapplication.h>
#include <QtMultimedia/private/qtmultimediaglobal_p.h>
#include <common/qglist_helper_p.h>
#include <common/qgst_p.h>
#include <common/qgstreamermessage_p.h>
#include <common/qgstreamervideosink_p.h>
#include <common/qgstutils_p.h>
#include <gst/video/videooverlay.h>
#include "moc_qgstreamervideooverlay_p.cpp"
+ Include dependency graph for qgstreamervideooverlay.cpp:

Go to the source code of this file.

Classes

struct  ElementMap
 

Functions

static bool qt_gst_element_is_functioning (QGstElement element)
 
static QGstElement findBestVideoSink ()
 

Variables

static constexpr ElementMap elementMap []
 

Function Documentation

◆ findBestVideoSink()

static QGstElement findBestVideoSink ( )
static

Definition at line 45 of file qgstreamervideooverlay.cpp.

References QGstElement::createFromFactory(), elementMap, i, list, platform(), QGuiApplication::platformName, qt_gst_element_is_functioning(), qt_gst_video_sinks(), and qWarning.

Referenced by QGstreamerVideoOverlay::QGstreamerVideoOverlay().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qt_gst_element_is_functioning()

static bool qt_gst_element_is_functioning ( QGstElement element)
static

Definition at line 34 of file qgstreamervideooverlay.cpp.

References ret, and QGstElement::setState().

Referenced by findBestVideoSink().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ elementMap

constexpr ElementMap elementMap[]
staticconstexpr
Initial value:
= {
{ u"xcb", "xvimagesink" },
{ u"xcb", "ximagesink" },
{ u"wayland", "waylandsink" },
}

Definition at line 26 of file qgstreamervideooverlay.cpp.

Referenced by findBestVideoSink().