6#include <QtCore/QLoggingCategory>
7#include <QtCore/QMetaObject>
8#include <QtCore/QString>
15class GstVideoReceiverTestBase;
21Q_DECLARE_LOGGING_CATEGORY(GstVideoReceiverLog)
57 void setHeartbeatInterval(std::chrono::milliseconds interval);
60 void onConfigChanged()
override;
61 void onActiveChanged()
override;
62 void onRestartRequested()
override;
63 void onReconnectRequested()
override;
64 void onVideoOutputChanged()
override;
65 void onStartRecording(
const QString& file, FileFormat format)
override;
66 void onStopRecording()
override;
79 void _onWorkerTaskDone();
81 void _applyStuckStatus(
bool frameShown);
83 bool _buildDisplaySink(QVideoSink*
videoSink);
84 void _releaseDisplaySink();
86 void _bindVideoSink(QVideoSink*
videoSink);
88 QThread* _workerThread =
nullptr;
94 QMetaObject::Connection _videoSizeConnection;
97 QTimer*
const _heartbeatTimer;
98 quint64 _tasksPosted = 0;
99 quint64 _tasksDone = 0;
101 quint64 _tasksDoneAtCheck = 0;
103 int _stalledChecks = 0;
104 bool _workerStuck =
false;
108 bool _frameShown =
false;
Also logs the receiver's worker, its PipelineSession with the branches, and PipelineDotDumper.
QString decoderName() const
GstVideoReceiver(QObject *parent=nullptr)
static constexpr std::chrono::seconds kHeartbeatInterval
friend class GstVideoReceiverTestBase
VideoReceiver(QObject *parent=nullptr)
QVideoSink * videoSink() const
The VideoOutput's QVideoSink, or nullptr.
std::unique_ptr< GstElement, GstObjectDeleter > GstElementPtr
Everything the receiver asks for, as it stands after each of its requests.
What the worker reports, as it stands after each change.