mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 20:58:54 +00:00
Framedumps: Add finish() function to limit memory lifetime.
This commit is contained in:
parent
ebc617882b
commit
b5a91e1dfa
6 changed files with 9 additions and 0 deletions
|
@ -605,6 +605,10 @@ void Renderer::DumpFrameData(const u8* data, int w, int h, AVIDump::DumpFormat f
|
|||
#endif
|
||||
}
|
||||
|
||||
void Renderer::FinishFrameData()
|
||||
{
|
||||
}
|
||||
|
||||
void Renderer::FlipImageData(u8* data, int w, int h, int pixel_width)
|
||||
{
|
||||
for (int y = 0; y < h / 2; ++y)
|
||||
|
|
|
@ -150,6 +150,7 @@ protected:
|
|||
bool IsFrameDumping();
|
||||
void DumpFrameData(const u8* data, int w, int h, AVIDump::DumpFormat format,
|
||||
bool swap_upside_down = false);
|
||||
void FinishFrameData();
|
||||
|
||||
static volatile bool s_bScreenshot;
|
||||
static std::mutex s_criticalScreenshot;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue