diff options
| author | Chris Burgener <christhecoolist@gmail.com> | 2016-01-02 13:07:08 -0500 |
|---|---|---|
| committer | Chris Burgener <christhecoolist@gmail.com> | 2016-01-07 18:37:58 -0500 |
| commit | c34fb3edf033197e6469b0b7892389402be1c9a2 (patch) | |
| tree | f5528294c88628e6515c05ff5b4d9584bd72f0a1 /Source/Core/VideoCommon/RenderBase.cpp | |
| parent | 079be1db9a93c1e39bb37f0ca9fd91bf1990aa38 (diff) | |
Use ffmpeg for Windows Video Dumping instead of VFW
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/RenderBase.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp index 8b8d0aa8f7..cb13fba427 100644 --- a/Source/Core/VideoCommon/RenderBase.cpp +++ b/Source/Core/VideoCommon/RenderBase.cpp @@ -102,13 +102,9 @@ Renderer::~Renderer() prev_efb_format = PEControl::INVALID_FMT; efb_scale_numeratorX = efb_scale_numeratorY = efb_scale_denominatorX = efb_scale_denominatorY = 1; - #if defined _WIN32 || defined HAVE_LIBAV if (SConfig::GetInstance().m_DumpFrames && bLastFrameDumped && bAVIDumping) AVIDump::Stop(); -#else - if (pFrameDump.IsOpen()) - pFrameDump.Close(); #endif } @@ -615,3 +611,15 @@ void Renderer::Swap(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, const XFBWrited = false; } +void Renderer::FlipImageData(u8* data, int w, int h, int pixel_width) +{ + for (int y = 0; y < h / 2; ++y) + { + for (int x = 0; x < w; ++x) + { + for (int delta = 0; delta < pixel_width; ++delta) + std::swap(data[(y * w + x) * pixel_width + delta], data[((h - 1 - y) * w + x) * pixel_width + delta]); + } + } +} + |
