Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qgstreamervideooverlay.cpp File Reference
#include "qgstreamervideooverlay_p.h"
#include <QtGui/qguiapplication.h>
#include "qgstutils_p.h"
#include "qgst_p.h"
#include "qgstreamermessage_p.h"
#include "qgstreamervideosink_p.h"
#include <gst/video/videooverlay.h>
#include <QtMultimedia/private/qtmultimediaglobal_p.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 QGraphicsItem::data(), elementMap, i, QGstObject::isNull(), item, 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:
=
{
{ "xcb", "xvimagesink" },
{ "xcb", "ximagesink" },
{ "wayland", "waylandsink" }
}

Definition at line 25 of file qgstreamervideooverlay.cpp.

Referenced by findBestVideoSink().