mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 06:01:12 +00:00
Add performance overlay for DXVA2 renderer
This commit is contained in:
+13
-1
@@ -4,11 +4,11 @@
|
||||
|
||||
#include <Limelight.h>
|
||||
#include <opus_multistream.h>
|
||||
#include "backend/computermanager.h"
|
||||
#include "settings/streamingpreferences.h"
|
||||
#include "input.h"
|
||||
#include "video/decoder.h"
|
||||
#include "audio/renderers/renderer.h"
|
||||
#include "video/overlaymanager.h"
|
||||
|
||||
class Session : public QObject
|
||||
{
|
||||
@@ -32,6 +32,16 @@ public:
|
||||
int getDecoderCapabilities(StreamingPreferences::VideoDecoderSelection vds,
|
||||
int videoFormat, int width, int height, int frameRate);
|
||||
|
||||
static Session* get()
|
||||
{
|
||||
return s_ActiveSession;
|
||||
}
|
||||
|
||||
OverlayManager& getOverlayManager()
|
||||
{
|
||||
return m_OverlayManager;
|
||||
}
|
||||
|
||||
signals:
|
||||
void stageStarting(QString stage);
|
||||
|
||||
@@ -134,6 +144,8 @@ private:
|
||||
OPUS_MULTISTREAM_CONFIGURATION m_AudioConfig;
|
||||
int m_AudioSampleCount;
|
||||
|
||||
OverlayManager m_OverlayManager;
|
||||
|
||||
static AUDIO_RENDERER_CALLBACKS k_AudioCallbacks;
|
||||
static CONNECTION_LISTENER_CALLBACKS k_ConnCallbacks;
|
||||
static Session* s_ActiveSession;
|
||||
|
||||
Reference in New Issue
Block a user