dolphin/Source/Core/VideoCommon/AVIDump.h

36 lines
754 B
C
Raw Normal View History

// Copyright 2008 Dolphin Emulator Project
2015-05-17 17:08:10 -06:00
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
#include "Common/CommonTypes.h"
class AVIDump
{
2014-06-14 21:29:05 -06:00
private:
static bool CreateVideoFile();
static void CloseVideoFile();
2016-06-24 20:41:10 -06:00
static void CheckResolution(int width, int height);
2014-10-04 01:28:01 -06:00
2014-06-14 21:29:05 -06:00
public:
struct Frame
{
u64 ticks = 0;
u32 ticks_per_second = 0;
bool first_frame = false;
int savestate_index = 0;
};
2016-10-08 08:23:04 -06:00
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();
2017-05-22 13:27:10 -06:00
#if defined(HAVE_FFMPEG)
static Frame FetchState(u64 ticks);
#else
static Frame FetchState(u64 ticks) { return {}; }
#endif
};