QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
VideoStreamStatsSampler.h
Go to the documentation of this file.
1#pragma once
2
3#include "VideoStreamStats.h"
5
6class RecordingPlan;
8
16{
17public:
18 explicit VideoStreamStatsSampler(const StreamSupervisor& supervisor, VideoStreamStatsMeter::Clock clock = {});
19
21 const VideoStreamStats& stats() const { return _stats; }
22
24 bool reset();
25
30 const RecordingPlan* recording);
31
32private:
33 bool _publish(const VideoStreamStats& stats);
34
35 const StreamSupervisor& _supervisor;
37 VideoStreamStats _stats;
38};
What a receiver was asked to record, across the sessions reconnects start and the hours it runs for.
The reconnect policy both receivers share: the phase a stream is in, when a failed one connects again...
std::function< qint64()> Clock
Monotonic milliseconds.
bool reset()
A session ended: the rates start over and the stats go invalid. True when that changed them.
bool sample(const VideoStreamStatsMeter::Counters &counters, VideoStreamStats stats, const RecordingPlan *recording)
const VideoStreamStats & stats() const
The stats the last sample() or reset() produced.
VideoStreamStatsSampler(const StreamSupervisor &supervisor, VideoStreamStatsMeter::Clock clock={})