6#include <QtCore/QString>
7#include <QtCore/QStringList>
8#include <QtCore/qcontainerfwd.h>
103 [[maybe_unused]]
void* classLoader)
VideoDecoderOption
The decoders VideoSettings' forceVideoDecoder can force. The values are persisted.
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 bool initialize(const InitParams ¶ms)
virtual void setAndroidJniState(void *javaVm, void *appContext, void *classLoader)
virtual void applyDecoderPriorities(VideoDecoderOption option)
static VideoBackend & instance()
virtual VideoReceiver * createReceiver(QObject *parent)=0
A receiver that can play: once initialize() has failed, one that needs no initialization.
virtual QList< VideoDecoderOption > availableDecoderFamilies()
The hardware decoder families present, as forceVideoDecoder values (never Default or Software).
virtual Capabilities capabilities() const =0
virtual EnvPrepResult prepareEnvironment()
GUI thread, before initialize().
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 neve...
virtual void onMainWindowReady(QQuickWindow *window)
VideoBackend(const VideoBackend &)=delete
virtual void setDebugLevel(int level)
virtual void configureQtGraphics(bool softwareRendering)
VideoBackend & operator=(const VideoBackend &)=delete
virtual ~VideoBackend()=default
bool gpuVideoPath
Shows decoded frames without copying them through the CPU.
bool asyncInit
initialize() must run, off the GUI thread, before receivers are created.
bool streaming
Plays network video streams; their settings are shown only then.
std::optional< int > debugLevel
The persisted debug threshold to start with (persistedDebugLevel()).
QStringList arguments
QCoreApplication::arguments(), snapshotted on the GUI thread.
EnvPrepResult environment
What prepareEnvironment() did.