8#include <QtCore/QtTypes>
34 void start(std::chrono::seconds timeout,
35 std::optional<std::chrono::milliseconds> firstFrameGrace = std::chrono::milliseconds{0});
51 Result
check(qint64 nowMs,
bool displaying);
54 qint64 _timeoutMs = 0;
56 std::optional<qint64> _firstFrameGraceMs = 0;
57 std::atomic<quint64> _sourceFrames = 0;
58 std::atomic<qint64> _lastSourceFrameMs = 0;
59 std::atomic<qint64> _lastSinkFrameMs = 0;
60 std::atomic<bool> _sinkFrameSeen =
false;
bool noteSinkFrame(qint64 nowMs)
Returns true for the first sink frame since startSinkClock().
void start(std::chrono::seconds timeout, std::optional< std::chrono::milliseconds > firstFrameGrace=std::chrono::milliseconds{0})
Result check(qint64 nowMs, bool displaying)
void startSinkClock(qint64 nowMs)
A decoder starts displaying at nowMs: its silence counts from here until the first sink frame.
void noteFrameWithheld(qint64 nowMs)
quint64 noteSourceFrame(qint64 nowMs)
Returns the number of source frames since start().
@ Decoder
Displaying, but no frame reached the video sink within twice the timeout.
@ Source
No frame reached the tee within the timeout.
qint64 silentMs
How long the stalled side has gone without a frame.