New upstream version 19.0.3+dfsg1
This commit is contained in:
parent
3708b8e092
commit
1f1bbb3518
534 changed files with 13862 additions and 2459 deletions
62
UI/window-basic-stats.hpp
Normal file
62
UI/window-basic-stats.hpp
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
#pragma once
|
||||
|
||||
#include <obs.hpp>
|
||||
#include <util/platform.h>
|
||||
#include <QPointer>
|
||||
#include <QWidget>
|
||||
#include <QTimer>
|
||||
#include <QLabel>
|
||||
#include <QList>
|
||||
|
||||
class QGridLayout;
|
||||
class QCloseEvent;
|
||||
|
||||
class OBSBasicStats : public QWidget {
|
||||
Q_OBJECT
|
||||
|
||||
QLabel *fps = nullptr;
|
||||
QLabel *cpuUsage = nullptr;
|
||||
QLabel *hddSpace = nullptr;
|
||||
QLabel *memUsage = nullptr;
|
||||
|
||||
QLabel *renderTime = nullptr;
|
||||
QLabel *skippedFrames = nullptr;
|
||||
QLabel *missedFrames = nullptr;
|
||||
|
||||
QGridLayout *outputLayout = nullptr;
|
||||
|
||||
os_cpu_usage_info_t *cpu_info = nullptr;
|
||||
|
||||
QTimer timer;
|
||||
|
||||
struct OutputLabels {
|
||||
QPointer<QLabel> name;
|
||||
QPointer<QLabel> status;
|
||||
QPointer<QLabel> droppedFrames;
|
||||
QPointer<QLabel> megabytesSent;
|
||||
QPointer<QLabel> bitrate;
|
||||
|
||||
uint64_t lastBytesSent = 0;
|
||||
uint64_t lastBytesSentTime = 0;
|
||||
|
||||
int first_total = 0;
|
||||
int first_dropped = 0;
|
||||
|
||||
void Update(obs_output_t *output);
|
||||
void Reset(obs_output_t *output);
|
||||
};
|
||||
|
||||
QList<OutputLabels> outputLabels;
|
||||
|
||||
void AddOutputLabels(QString name);
|
||||
void Update();
|
||||
void Reset();
|
||||
|
||||
virtual void closeEvent(QCloseEvent *event) override;
|
||||
|
||||
public:
|
||||
OBSBasicStats(QWidget *parent = nullptr);
|
||||
~OBSBasicStats();
|
||||
|
||||
static void InitializeValues();
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue