#include <VideoBackend.h>
Classes | |
| struct | EnvPrepResult |
| struct | Capabilities |
| What the backend offers. More... | |
| struct | InitParams |
Public Member Functions | |
| virtual | ~VideoBackend ()=default |
| VideoBackend (const VideoBackend &)=delete | |
| VideoBackend & | operator= (const VideoBackend &)=delete |
| virtual Capabilities | capabilities () const =0 |
| virtual VideoReceiver * | createReceiver (QObject *parent)=0 |
| A receiver that can play: once initialize() has failed, one that needs no initialization. | |
| virtual void | configureQtGraphics (bool softwareRendering) |
| virtual EnvPrepResult | prepareEnvironment () |
| GUI thread, before initialize(). | |
| virtual bool | initialize (const InitParams ¶ms) |
| virtual QString | initFailureMessage () const |
| What to tell the user once initialize() has failed: what failed, and what plays the streams instead. | |
| virtual bool | selfTest () |
| The boot test's check that the initialized backend decodes and records. | |
| virtual void | applyDecoderPriorities (VideoDecoderOption option) |
| virtual QList< VideoDecoderOption > | availableDecoderFamilies () |
| The hardware decoder families present, as forceVideoDecoder values (never Default or Software). | |
| virtual void | setDebugLevel (int level) |
| virtual void | onMainWindowReady (QQuickWindow *window) |
| virtual void | setAndroidJniState (void *javaVm, void *appContext, void *classLoader) |
Static Public Member Functions | |
| static VideoBackend & | instance () |
| static bool | disabledForUnitTests () |
| True when the backend is skipped under unit tests (opt back in with QGC_TEST_ENABLE_GSTREAMER). | |
| static std::optional< int > | persistedDebugLevel () |
| The persisted gstDebugLevel setting, read before the settings system exists; nullopt when it was never set. | |
Protected Member Functions | |
| VideoBackend ()=default | |
The network video backend this build has, behind which callers (VideoManager, VideoSettings, QGCCorePlugin, the platform startup code) never name a concrete one: GStreamer, or, without it, Qt Multimedia's player (QtMultimediaVideoReceiver), which a GStreamer build also offers through VideoSettings::videoBackend and falls back to when GStreamer fails to initialize.
Definition at line 20 of file VideoBackend.h.
|
virtualdefault |
|
delete |
References VideoBackend().
Referenced by instance(), operator=(), and VideoBackend().
|
protecteddefault |
|
inlinevirtual |
Reimplemented in GStreamerVideoBackend.
Definition at line 91 of file VideoBackend.h.
|
inlinevirtual |
The hardware decoder families present, as forceVideoDecoder values (never Default or Software).
Reimplemented in GStreamerVideoBackend.
Definition at line 94 of file VideoBackend.h.
Referenced by VideoSettings::pruneUnavailableDecoders().
|
pure virtual |
Implemented in GStreamerVideoBackend.
Referenced by VideoManager::startVideoBackendInit().
|
inlinevirtual |
Qt graphics setup the backend's GPU video paths need; call it before the QGuiApplication exists, as Qt reads it at startup. softwareRendering: the user asked for software rendering (–swrast), which it must keep.
Reimplemented in GStreamerVideoBackend.
Definition at line 78 of file VideoBackend.h.
Referenced by Platform::initialize().
|
pure virtual |
A receiver that can play: once initialize() has failed, one that needs no initialization.
Implemented in GStreamerVideoBackend.
Referenced by QGCCorePlugin::createVideoReceiver().
|
static |
True when the backend is skipped under unit tests (opt back in with QGC_TEST_ENABLE_GSTREAMER).
Definition at line 38 of file VideoBackend.cc.
References qgcApp, and QGC::runningUnitTests().
Referenced by VideoManager::startVideoBackendInit().
|
virtual |
What to tell the user once initialize() has failed: what failed, and what plays the streams instead.
Reimplemented in GStreamerVideoBackend.
Definition at line 43 of file VideoBackend.cc.
|
inlinevirtual |
Reimplemented in GStreamerVideoBackend.
Definition at line 83 of file VideoBackend.h.
Referenced by VideoManager::startVideoBackendInit().
|
static |
Definition at line 28 of file VideoBackend.cc.
References VideoBackend().
Referenced by QGCCorePlugin::createVideoReceiver(), QGCApplication::init(), VideoManager::init(), Platform::initialize(), JNI_OnLoad(), JNI_OnUnload(), jniInit(), VideoSettings::pruneUnavailableDecoders(), and VideoManager::startVideoBackendInit().
|
inlinevirtual |
Reimplemented in GStreamerVideoBackend.
Definition at line 98 of file VideoBackend.h.
Referenced by VideoManager::init().
|
delete |
References VideoBackend().
|
static |
The persisted gstDebugLevel setting, read before the settings system exists; nullopt when it was never set.
Definition at line 48 of file VideoBackend.cc.
References SettingsGroup::settingsGroup().
Referenced by VideoManager::startVideoBackendInit().
|
inlinevirtual |
GUI thread, before initialize().
Reimplemented in GStreamerVideoBackend.
Definition at line 81 of file VideoBackend.h.
Referenced by VideoManager::startVideoBackendInit().
|
inlinevirtual |
The boot test's check that the initialized backend decodes and records.
Reimplemented in GStreamerVideoBackend.
Definition at line 89 of file VideoBackend.h.
Referenced by QGCApplication::init().
|
inlinevirtual |
Android: hands the backend the JavaVM, application context and class loader (jobject, or null) its plugins look up through JNI.
Reimplemented in GStreamerVideoBackend.
Definition at line 102 of file VideoBackend.h.
Referenced by JNI_OnLoad(), JNI_OnUnload(), and jniInit().
|
inlinevirtual |
Reimplemented in GStreamerVideoBackend.
Definition at line 96 of file VideoBackend.h.
Referenced by VideoManager::init().