mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 14:49:22 +00:00
AVIDump: Add a struct for the state.
So AddFrame use no global state and can be threaded well.
This commit is contained in:
parent
dad5041737
commit
be29090aae
9 changed files with 44 additions and 18 deletions
|
@ -667,7 +667,7 @@ bool Renderer::IsFrameDumping()
|
|||
return false;
|
||||
}
|
||||
|
||||
void Renderer::DumpFrameData(const u8* data, int w, int h, int stride, u64 ticks,
|
||||
void Renderer::DumpFrameData(const u8* data, int w, int h, int stride, const AVIDump::Frame& state,
|
||||
bool swap_upside_down)
|
||||
{
|
||||
if (w == 0 || h == 0)
|
||||
|
@ -701,7 +701,7 @@ void Renderer::DumpFrameData(const u8* data, int w, int h, int stride, u64 ticks
|
|||
}
|
||||
if (m_AVI_dumping)
|
||||
{
|
||||
AVIDump::AddFrame(m_frame_data.data(), w, h, stride, ticks);
|
||||
AVIDump::AddFrame(m_frame_data.data(), w, h, stride, state);
|
||||
}
|
||||
|
||||
m_last_frame_dumped = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue