|
QGroundControl
Ground Control Station for MAVLink Drones
|
Classes | |
| struct | EnvPrepResult |
Functions | |
| VideoReceiver * | createReceiver (QObject *parent) |
| void * | createSink (QQuickItem *widget, QObject *parent) |
| void | releaseSink (void *sink) |
| bool | gpuZeroCopyAllowedForCurrentGraphicsApi (bool forceCpuVideoPath, bool forceSoftwareDecoder) |
| Applies backend-wide sink policy before constructing the GStreamer sink. | |
| constexpr bool | needsAsyncInit () noexcept |
| bool | disabledForUnitTests () |
| True when the backend should be skipped under unit tests (opt back in with QGC_TEST_ENABLE_GSTREAMER). | |
| EnvPrepResult | prepareEnvironment () |
| bool | initialize (const QStringList &arguments, const EnvPrepResult &envResult) |
| void | applyDecoderPriorities (int rawOption) |
| void | onMainWindowReady (QQuickWindow *window) |
| void | bindDebugLevelFact (Fact *fact, QObject *context) |
| void | attachSink (QObject *receiver, void *sink, QQuickItem *widget) |
Backend-neutral video backend facade: object creation plus process/runtime lifecycle. Selects GStreamer or QtMultimedia at compile time via QGC_GST_STREAMING so callers (VideoManager, QGCCorePlugin) never name a concrete backend.
| void VideoBackend::applyDecoderPriorities | ( | int | rawOption | ) |
Definition at line 110 of file VideoBackend.cc.
References GStreamer::setCodecPriorities().
| void VideoBackend::attachSink | ( | QObject * | receiver, |
| void * | sink, | ||
| QQuickItem * | widget | ||
| ) |
Definition at line 138 of file VideoBackend.cc.
References GStreamer::attachAppSink().
| void VideoBackend::bindDebugLevelFact | ( | Fact * | fact, |
| QObject * | context | ||
| ) |
Definition at line 128 of file VideoBackend.cc.
References GStreamer::bindDebugLevelFact().
Referenced by VideoManager::init().
| VideoReceiver * VideoBackend::createReceiver | ( | QObject * | parent | ) |
Definition at line 46 of file VideoBackend.cc.
References GStreamer::createVideoReceiver(), and QtMultimediaReceiver::createVideoReceiver().
Referenced by QGCCorePlugin::createVideoReceiver().
| void * VideoBackend::createSink | ( | QQuickItem * | widget, |
| QObject * | parent | ||
| ) |
Definition at line 55 of file VideoBackend.cc.
References config, GStreamer::VideoSinkConfig::conversionElement, GStreamer::createVideoSink(), QtMultimediaReceiver::createVideoSink(), GStreamer::ForceVideoDecoderSoftware, gpuZeroCopyAllowedForCurrentGraphicsApi(), SettingsManager::instance(), qApp, and SettingsManager::videoSettings().
Referenced by QGCCorePlugin::createVideoSink().
| bool VideoBackend::disabledForUnitTests | ( | ) |
True when the backend should be skipped under unit tests (opt back in with QGC_TEST_ENABLE_GSTREAMER).
Definition at line 84 of file VideoBackend.cc.
References qgcApp, and QGC::runningUnitTests().
Referenced by VideoManager::VideoManager().
| bool VideoBackend::gpuZeroCopyAllowedForCurrentGraphicsApi | ( | bool | forceCpuVideoPath, |
| bool | forceSoftwareDecoder | ||
| ) |
Applies backend-wide sink policy before constructing the GStreamer sink.
Definition at line 35 of file VideoBackend.cc.
Referenced by createSink().
| bool VideoBackend::initialize | ( | const QStringList & | arguments, |
| const EnvPrepResult & | envResult | ||
| ) |
Definition at line 99 of file VideoBackend.cc.
References VideoBackend::EnvPrepResult::error, GStreamer::initialize(), and VideoBackend::EnvPrepResult::ok.
Referenced by VideoManager::startVideoBackendInit().
|
constexprnoexcept |
True when a streaming backend that requires asynchronous global init is compiled in (GStreamer). QtMultimedia needs no global init, so callers treat it as ready immediately.
Definition at line 27 of file VideoBackend.h.
Referenced by VideoManager::init(), VideoManager::startVideoBackendInit(), VideoManager::VideoManager(), and VideoManager::waitForVideoBackendReady().
| void VideoBackend::onMainWindowReady | ( | QQuickWindow * | window | ) |
Definition at line 119 of file VideoBackend.cc.
References GStreamer::onMainWindowReady().
Referenced by VideoManager::init().
| VideoBackend::EnvPrepResult VideoBackend::prepareEnvironment | ( | ) |
Definition at line 89 of file VideoBackend.cc.
References GStreamer::Environment::ValidationResult::error, GStreamer::Environment::ValidationResult::ok, and GStreamer::prepareEnvironment().
Referenced by VideoManager::startVideoBackendInit().
| void VideoBackend::releaseSink | ( | void * | sink | ) |
Definition at line 75 of file VideoBackend.cc.
References GStreamer::releaseVideoSink(), and QtMultimediaReceiver::releaseVideoSink().
Referenced by QGCCorePlugin::releaseVideoSink().