New upstream version 23.2.1+dfsg1
This commit is contained in:
parent
cdc9a9fc87
commit
b14f9eae6d
1017 changed files with 37232 additions and 11111 deletions
|
|
@ -17,6 +17,7 @@ class OBSBasicStats : public QWidget {
|
|||
QLabel *fps = nullptr;
|
||||
QLabel *cpuUsage = nullptr;
|
||||
QLabel *hddSpace = nullptr;
|
||||
QLabel *recordTimeLeft = nullptr;
|
||||
QLabel *memUsage = nullptr;
|
||||
|
||||
QLabel *renderTime = nullptr;
|
||||
|
|
@ -28,6 +29,9 @@ class OBSBasicStats : public QWidget {
|
|||
os_cpu_usage_info_t *cpu_info = nullptr;
|
||||
|
||||
QTimer timer;
|
||||
QTimer recTimeLeft;
|
||||
uint64_t num_bytes = 0;
|
||||
std::vector<long double> bitrates;
|
||||
|
||||
struct OutputLabels {
|
||||
QPointer<QLabel> name;
|
||||
|
|
@ -44,6 +48,8 @@ class OBSBasicStats : public QWidget {
|
|||
|
||||
void Update(obs_output_t *output, bool rec);
|
||||
void Reset(obs_output_t *output);
|
||||
|
||||
long double kbps = 0.0l;
|
||||
};
|
||||
|
||||
QList<OutputLabels> outputLabels;
|
||||
|
|
@ -54,9 +60,24 @@ class OBSBasicStats : public QWidget {
|
|||
|
||||
virtual void closeEvent(QCloseEvent *event) override;
|
||||
|
||||
static void OBSFrontendEvent(enum obs_frontend_event event, void *ptr);
|
||||
|
||||
public:
|
||||
OBSBasicStats(QWidget *parent = nullptr);
|
||||
OBSBasicStats(QWidget *parent = nullptr, bool closable = true);
|
||||
~OBSBasicStats();
|
||||
|
||||
static void InitializeValues();
|
||||
|
||||
void StartRecTimeLeft();
|
||||
void ResetRecTimeLeft();
|
||||
|
||||
private:
|
||||
QPointer<QObject> shortcutFilter;
|
||||
|
||||
private slots:
|
||||
void RecordingTimeLeft();
|
||||
|
||||
protected:
|
||||
virtual void showEvent(QShowEvent *event) override;
|
||||
virtual void hideEvent(QHideEvent *event) override;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue