QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GstQgcPathSession.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QtTypes>
4
6
7struct MappedFrame;
8
9namespace GstQgc {
10
11class SinkCounters;
12
20{
21public:
23 static constexpr quint64 kMaxConsecutiveMapFailures = 120;
24
25 enum class Verdict
26 {
29 };
30
32 void startEpoch();
34 void stop();
35
37 HwResolvedPathCache* pathCache() { return &_pathCache; }
38
41 Verdict onMapFailed(const MappedFrame& mapped, SinkCounters& counters);
42
44 void onMapped() { _consecutiveMapFailures = 0; }
45
46 quint64 consecutiveMapFailures() const { return _consecutiveMapFailures; }
47
50 void onDelivered(const MappedFrame& mapped, SinkCounters& counters);
51
52private:
53 HwResolvedPathCache _pathCache = {};
54 bool _demotionRecorded = false;
55 bool _tiledDropLogged = false;
56 quint64 _consecutiveMapFailures = 0;
57};
58
59} // namespace GstQgc
What qgcqvideosink keeps about the path its frames take through one caps epoch, from set_caps to the ...
@ Drop
Drop the frame and go on.
void stop()
The sink stopped: as startEpoch(), and a run of map failures ends.
Verdict onMapFailed(const MappedFrame &mapped, SinkCounters &counters)
void onMapped()
The frame mapped: a run of failures ends.
static constexpr quint64 kMaxConsecutiveMapFailures
A run of map failures this long is a broken import, not a hiccup: the stream fails so it is set up an...
void onDelivered(const MappedFrame &mapped, SinkCounters &counters)
HwResolvedPathCache * pathCache()
For mapSampleToFrame(), which caches the path it resolves in the epoch.
quint64 consecutiveMapFailures() const
void startEpoch()
New caps: the path is resolved anew, and the once-per-epoch bookkeeping starts over.
qgcqvideosink's frame accounting: what its frames-input, frames-dropped and frames-delivered properti...
GstVideoSink that pushes decoded frames into a Qt QVideoSink; sole sink in qgcvideosinkbin....