![]() |
UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
|
#include <bandwidth_widget.hpp>


Classes | |
| struct | BandwidthReport |
Public Member Functions | |
| BandwidthWidget (QWidget *parent=nullptr) | |
| ~BandwidthWidget ()=default | |
| void | parseLine (std::string_view line) |
| void | reset () |
| void | updateVal () |
Private Slots | |
| void | timeout () |
Private Attributes | |
| QElapsedTimer | elapsedTimer |
| SSRC_container< BandwidthReport, decltype(elapsedTimer.elapsed())> | reports |
| const int | timeout_msec = 2500 |
| QTimer | timer |
Definition at line 13 of file bandwidth_widget.hpp.
| BandwidthWidget::BandwidthWidget | ( | QWidget * | parent = nullptr | ) |
Definition at line 21 of file bandwidth_widget.cpp.
References elapsedTimer, reset(), timeout(), timeout_msec, and timer.

|
default |
| void BandwidthWidget::parseLine | ( | std::string_view | line | ) |
Definition at line 56 of file bandwidth_widget.cpp.
References BandwidthWidget::BandwidthReport::bitsPerSecond, elapsedTimer, parse_num(), reports, sv_is_prefix(), tokenize(), BandwidthWidget::BandwidthReport::type, type, and updateVal().
Referenced by UltragridWindow::UltragridWindow().

| void BandwidthWidget::reset | ( | ) |
Definition at line 93 of file bandwidth_widget.cpp.
References reports, timer, and updateVal().
Referenced by BandwidthWidget(), and timeout().

|
privateslot |
Definition at line 99 of file bandwidth_widget.cpp.
References reset().
Referenced by BandwidthWidget().

| void BandwidthWidget::updateVal | ( | ) |
Definition at line 28 of file bandwidth_widget.cpp.
References elapsedTimer, reports, timeout_msec, and timer.
Referenced by parseLine(), and reset().
|
private |
Definition at line 28 of file bandwidth_widget.hpp.
Referenced by BandwidthWidget(), parseLine(), and updateVal().
|
private |
Definition at line 35 of file bandwidth_widget.hpp.
Referenced by parseLine(), reset(), and updateVal().
|
private |
Definition at line 37 of file bandwidth_widget.hpp.
Referenced by BandwidthWidget(), and updateVal().
|
private |
Definition at line 27 of file bandwidth_widget.hpp.
Referenced by BandwidthWidget(), reset(), and updateVal().