QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GStreamer.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QByteArray>
4#include <QtCore/qcontainerfwd.h>
5
7
8class Fact;
9class QObject;
10class QQuickItem;
11class QQuickWindow;
12class QVideoSink;
13class VideoReceiver;
14
15namespace GStreamer {
16
29
33{
36 bool gpuZeroCopy = false;
37};
38
39bool completeInit();
40void setDebugLevel(int level);
42void releaseVideoSink(void* sink);
43VideoReceiver* createVideoReceiver(QObject* parent = nullptr);
44
48bool setupQVideoSinkElement(void* sinkBin, QVideoSink* videoSink, QObject* controllerParent);
49
53QList<VideoDecoderOptions> availableDecoderFamilies();
54
55// Process/runtime lifecycle. Reached only through VideoBackend, which is the layer that
56// no-ops these for the QtMultimedia build; this header is included solely under QGC_GST_STREAMING.
58bool initialize(const QStringList& arguments, const Environment::ValidationResult& envResult);
59void attachAppSink(QObject* receiver, void* sink, QQuickItem* widget);
60void bindDebugLevelFact(Fact* fact, QObject* context);
61void onMainWindowReady(QQuickWindow* window);
62
63} // namespace GStreamer
Config config
A Fact is used to hold a single value within the system.
Definition Fact.h:17
void bindDebugLevelFact(Fact *fact, QObject *context)
Definition GStreamer.cc:387
void onMainWindowReady(QQuickWindow *window)
Definition GStreamer.cc:449
VideoReceiver * createVideoReceiver(QObject *parent)
Definition GStreamer.cc:312
void setDebugLevel(int level)
void releaseVideoSink(void *sink)
Definition GStreamer.cc:304
QList< VideoDecoderOptions > availableDecoderFamilies()
Definition GStreamer.cc:471
bool completeInit()
Definition GStreamer.cc:201
void * createVideoSink(const VideoSinkConfig &config)
Definition GStreamer.cc:276
bool initialize(const QStringList &arguments, const Environment::ValidationResult &envResult)
Definition GStreamer.cc:258
void attachAppSink(QObject *receiver, void *sink, QQuickItem *widget)
Definition GStreamer.cc:367
bool setupQVideoSinkElement(void *sinkBin, QVideoSink *videoSink, QObject *controllerParent)
Definition GStreamer.cc:317
VideoDecoderOptions
Definition GStreamer.h:18
@ ForceVideoDecoderDefault
Definition GStreamer.h:19
@ ForceVideoDecoderIntel
Definition GStreamer.h:25
@ ForceVideoDecoderVulkan
Definition GStreamer.h:26
@ ForceVideoDecoderSoftware
Definition GStreamer.h:20
@ ForceVideoDecoderNVIDIA
Definition GStreamer.h:21
@ ForceVideoDecoderVAAPI
Definition GStreamer.h:22
@ ForceVideoDecoderVideoToolbox
Definition GStreamer.h:24
@ ForceVideoDecoderHardware
Definition GStreamer.h:27
@ ForceVideoDecoderDirectX3D
Definition GStreamer.h:23
Environment::ValidationResult prepareEnvironment()
Definition GStreamer.cc:159