Add performance overlay for DXVA2 renderer

This commit is contained in:
Cameron Gutman 2019-01-19 23:05:56 -08:00
commit b19c4bfc5d
10 changed files with 233 additions and 68 deletions

View file

@ -4,6 +4,7 @@
#include "pacer/pacer.h"
#include <d3d9.h>
#include <d3dx9.h>
#include <dxva2api.h>
extern "C" {
@ -31,6 +32,7 @@ private:
bool initializeDecoder();
bool initializeRenderer();
bool initializeDevice(SDL_Window* window, bool enableVsync);
bool initializeOverlay();
bool isDecoderBlacklisted();
static
@ -67,4 +69,5 @@ private:
DXVA2_ValueRange m_SaturationRange;
DXVA2_VideoDesc m_Desc;
REFERENCE_TIME m_FrameIndex;
LPD3DXFONT m_OverlayFont;
};