dolphin/Source/Core/VideoCommon/AVIDump.h

29 lines
604 B
C
Raw Normal View History

// Copyright 2008 Dolphin Emulator Project
2015-05-17 23:08:10 +00:00
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
#include "Common/CommonTypes.h"
class AVIDump
{
2014-06-15 03:29:05 +00:00
private:
static bool CreateFile();
static void CloseFile();
2016-06-25 02:41:10 +00:00
static void CheckResolution(int width, int height);
static void StoreFrameData(const u8* data, int width, int height);
2014-10-04 07:28:01 +00:00
2014-06-15 03:29:05 +00:00
public:
enum class DumpFormat
{
FORMAT_BGR,
FORMAT_RGBA
};
static bool Start(int w, int h, DumpFormat format);
static void AddFrame(const u8* data, int width, int height);
static void Stop();
static void DoState();
};