diff options
| author | altimumdelta <48530820+altimumdelta@users.noreply.github.com> | 2019-03-18 05:50:53 +0100 |
|---|---|---|
| committer | altimumdelta <48530820+altimumdelta@users.noreply.github.com> | 2019-06-30 13:02:39 +0200 |
| commit | 1df655e376fe59291ee5c69755f2f2a70f82ee75 (patch) | |
| tree | 1b8028bd6b9df6e4a9992a0cba5b297c4274542b /Source/Core/VideoCommon/FrameDump.h | |
| parent | 4f6cdfe68675eba932bd2806d6aa1bea97c864be (diff) | |
VideoCommon: Rename AVIDump to FrameDump
Diffstat (limited to 'Source/Core/VideoCommon/FrameDump.h')
| -rw-r--r-- | Source/Core/VideoCommon/FrameDump.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/FrameDump.h b/Source/Core/VideoCommon/FrameDump.h new file mode 100644 index 0000000000..e61a9054eb --- /dev/null +++ b/Source/Core/VideoCommon/FrameDump.h @@ -0,0 +1,35 @@ +// Copyright 2008 Dolphin Emulator Project +// Licensed under GPLv2+ +// Refer to the license.txt file included. + +#pragma once + +#include "Common/CommonTypes.h" + +class FrameDump +{ +private: + static bool CreateVideoFile(); + static void CloseVideoFile(); + static void CheckResolution(int width, int height); + +public: + struct Frame + { + u64 ticks = 0; + u32 ticks_per_second = 0; + bool first_frame = false; + int savestate_index = 0; + }; + + static bool Start(int w, int h); + static void AddFrame(const u8* data, int width, int height, int stride, const Frame& state); + static void Stop(); + static void DoState(); + +#if defined(HAVE_FFMPEG) + static Frame FetchState(u64 ticks); +#else + static Frame FetchState(u64 ticks) { return {}; } +#endif +}; |
