summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderBase.h
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2016-10-07 20:31:51 +0200
committerdegasus <wickmarkus@web.de>2016-10-07 23:07:40 +0200
commitf45ddddf1cf5ec7904a83924614161e00bc10d21 (patch)
tree21a6a3227d329eb7812c769d46a3a4b13634962f /Source/Core/VideoCommon/RenderBase.h
parent34d733d376e8140048a9fbb96fd25155965434a6 (diff)
VideoCommon: Add shared framedumping code.
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.h')
-rw-r--r--Source/Core/VideoCommon/RenderBase.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.h b/Source/Core/VideoCommon/RenderBase.h
index 584c8dbec6..27a8dfa089 100644
--- a/Source/Core/VideoCommon/RenderBase.h
+++ b/Source/Core/VideoCommon/RenderBase.h
@@ -23,6 +23,7 @@
#include "Common/Event.h"
#include "Common/Flag.h"
#include "Common/MathUtil.h"
+#include "VideoCommon/AVIDump.h"
#include "VideoCommon/BPMemory.h"
#include "VideoCommon/FPSCounter.h"
#include "VideoCommon/VideoBackendBase.h"
@@ -146,14 +147,21 @@ protected:
static void CheckFifoRecording();
static void RecordVideoMemory();
+ bool IsFrameDumping();
+ void DumpFrameData(const u8* data, int w, int h, AVIDump::DumpFormat format,
+ bool swap_upside_down = false);
+ void RepeatFrameDumpFrame();
+
static volatile bool s_bScreenshot;
static std::mutex s_criticalScreenshot;
static std::string s_sScreenshotName;
- bool bAVIDumping;
-
std::vector<u8> frame_data;
- bool bLastFrameDumped;
+ bool bAVIDumping = false;
+ bool bLastFrameDumped = false;
+ int m_last_framedump_width = 0;
+ int m_last_framedump_height = 0;
+ AVIDump::DumpFormat m_last_framedump_format;
// The framebuffer size
static int s_target_width;