QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
PipelineDotDumper.h
Go to the documentation of this file.
1#pragma once
2
3#include <gst/gstdebugutils.h>
4
5#include <QtCore/QByteArray>
6#include <QtCore/QString>
7
12{
13public:
15 static constexpr GstDebugGraphDetails kDiagnosticDotGraphDetails = static_cast<GstDebugGraphDetails>(
16 GST_DEBUG_GRAPH_SHOW_MEDIA_TYPE | GST_DEBUG_GRAPH_SHOW_CAPS_DETAILS | GST_DEBUG_GRAPH_SHOW_STATES);
17
20 static QString dotFileTag(QStringView tag);
21
24 static QString writePipelineDot(GstElement* pipeline, QStringView tag, const QString& directory);
25
28 void setReceiverName(const QString& receiverName);
29
30 const QByteArray& pipelineName() const { return _pipelineName; }
31
33 void dump(GstElement* pipeline, const char* tag) const;
36 void snapshot(GstElement* pipeline, const QString& tag) const;
37
38private:
39 QByteArray _pipelineName = QByteArrayLiteral("receiver");
40};
struct _GstElement GstElement
static QString dotFileTag(QStringView tag)
static QString writePipelineDot(GstElement *pipeline, QStringView tag, const QString &directory)
const QByteArray & pipelineName() const
static constexpr GstDebugGraphDetails kDiagnosticDotGraphDetails
Every pipeline graph QGC writes omits element properties, because source properties can contain crede...
void snapshot(GstElement *pipeline, const QString &tag) const
void dump(GstElement *pipeline, const char *tag) const
Into GST_DEBUG_DUMP_DOT_DIR as "<pipeline name>-<tag>.dot", when that is set. No-op without a pipelin...
void setReceiverName(const QString &receiverName)