Add video stats for performance overlay

This commit is contained in:
Cameron Gutman
2018-09-25 00:47:59 -07:00
parent d89982237d
commit a0249b4337
6 changed files with 168 additions and 6 deletions
+9
View File
@@ -32,6 +32,10 @@ private:
int videoFormat, int width, int height,
int maxFps, bool enableVsync, bool testOnly);
void logVideoStats(VIDEO_STATS& stats, const char* title);
void addVideoStats(VIDEO_STATS& src, VIDEO_STATS& dst);
IFFmpegRenderer* createAcceleratedRenderer(const AVCodecHWConfig* hwDecodeCfg);
void reset();
@@ -48,6 +52,11 @@ private:
SDL_atomic_t m_QueuedFrames;
int m_ConsecutiveFailedDecodes;
Pacer* m_Pacer;
VIDEO_STATS m_ActiveWndVideoStats;
VIDEO_STATS m_LastWndVideoStats;
VIDEO_STATS m_GlobalVideoStats;
int m_LastFrameNumber;
int m_StreamFps;
static const uint8_t k_H264TestFrame[];
static const uint8_t k_HEVCTestFrame[];