Use ffmpeg for Windows Video Dumping instead of VFW

This commit is contained in:
Chris Burgener
2016-01-02 13:07:08 -05:00
parent 079be1db9a
commit c34fb3edf0
13 changed files with 73 additions and 426 deletions

View File

@ -121,6 +121,8 @@ public:
virtual u16 BBoxRead(int index) = 0;
virtual void BBoxWrite(int index, u16 value) = 0;
static void FlipImageData(u8* data, int w, int h, int pixel_width = 3);
// Finish up the current frame, print some stats
static void Swap(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, const EFBRectangle& rc,float Gamma = 1.0f);
virtual void SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, const EFBRectangle& rc, float Gamma = 1.0f) = 0;
@ -148,11 +150,8 @@ protected:
static std::mutex s_criticalScreenshot;
static std::string s_sScreenshotName;
#if defined _WIN32 || defined HAVE_LIBAV
bool bAVIDumping;
#else
File::IOFile pFrameDump;
#endif
std::vector<u8> frame_data;
bool bLastFrameDumped;