VideoCommon: Drop RepeatFrameDumpFrame helper.

This was needed with fixed framerate dumping. As we now synchronize the frames, the last one will just get padded.
This commit is contained in:
degasus
2016-10-07 22:59:39 +02:00
parent a9d8e3fe9b
commit ebc617882b
5 changed files with 0 additions and 18 deletions

View File

@ -578,7 +578,6 @@ void Renderer::DumpFrameData(const u8* data, int w, int h, AVIDump::DumpFormat f
m_last_framedump_format = format;
// TODO: Refactor this. Right now it's needed for the implace flipping of the image.
// It's also used to repeat the last frame.
m_frame_data.assign(data, data + image_size);
if (!m_last_frame_dumped)
@ -606,16 +605,6 @@ void Renderer::DumpFrameData(const u8* data, int w, int h, AVIDump::DumpFormat f
#endif
}
void Renderer::RepeatFrameDumpFrame()
{
#if defined(HAVE_LIBAV) || defined(_WIN32)
if (SConfig::GetInstance().m_DumpFrames && m_AVI_dumping && !m_frame_data.empty())
{
AVIDump::AddFrame(m_frame_data.data(), m_last_framedump_width, m_last_framedump_height);
}
#endif
}
void Renderer::FlipImageData(u8* data, int w, int h, int pixel_width)
{
for (int y = 0; y < h / 2; ++y)