QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GStreamerEnvironment.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QByteArrayView>
4#include <QtCore/QString>
5#include <QtCore/QStringList>
6
7#include "VideoBackend.h"
8
11namespace GStreamer::Environment {
12
15{
16 QStringList pluginDirs;
17 QString gioModuleDir;
18};
19
22{
23 QStringList pluginDirs;
24 QStringList gioModuleDirs;
25 QStringList scannerCandidates;
26 QStringList ptpCandidates;
27};
28
37
40BundleLayout bundleLayout(DesktopInstall install, const QString& appDir);
41
49VideoBackend::EnvPrepResult prepareEnvironment(const QString& appDir = QString());
50
58QString usePrivateRegistry(const QString& cacheDir, const QString& installPath);
59
63bool writeIfChanged(const QString& path, QByteArrayView content);
64
66BundledRuntime bundledRuntime();
67
71void logDiagnostics();
72
73} // namespace GStreamer::Environment
BundledRuntime bundledRuntime()
The bundled runtime the last prepareEnvironment() applied; empty before it ran.
VideoBackend::EnvPrepResult prepareEnvironment(const QString &appDir)
bool writeIfChanged(const QString &path, QByteArrayView content)
DesktopInstall
The desktop installs prepareEnvironment() knows how to point GStreamer into.
@ MacOSFlat
An app bundle with a flat SDK copied next to the app, whose paths win over the framework's.
@ Windows
bin/ beside lib/gstreamer-1.0 and libexec/gstreamer-1.0.
@ MacOSFramework
An app bundle with GStreamer.framework, whose paths win over the app's own lib.
@ Linux
An AppImage or other prefix: bin/ beside lib/ and libexec/.
QString usePrivateRegistry(const QString &cacheDir, const QString &installPath)
BundleLayout bundleLayout(DesktopInstall install, const QString &appDir)
Where a desktop install keeps its GStreamer runtime, as candidate paths in priority order.
QStringList scannerCandidates
The first existing entry wins.
QStringList ptpCandidates
The first existing entry wins.
QStringList gioModuleDirs
The first existing entry wins.
QStringList pluginDirs
Every existing entry is searched.
The desktop GStreamer runtime bundled with the app that prepareEnvironment() pointed GStreamer at.
QStringList pluginDirs
Empty when GStreamer uses the system's plugins, or Android's and iOS's static ones.
QString gioModuleDir
Empty when the bundle has no GIO modules.