2015-05-24 06:55:12 +02:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-18 01:08:10 +02:00
|
|
|
// Licensed under GPLv2+
|
2013-04-17 23:09:55 -04:00
|
|
|
// Refer to the license.txt file included.
|
2009-03-28 21:27:48 +00:00
|
|
|
|
2014-02-10 13:54:46 -05:00
|
|
|
#pragma once
|
2009-03-28 21:27:48 +00:00
|
|
|
|
2014-02-17 05:18:15 -05:00
|
|
|
#include "Common/CommonTypes.h"
|
2013-02-26 20:47:48 -05:00
|
|
|
|
2009-03-28 21:27:48 +00:00
|
|
|
class AVIDump
|
|
|
|
{
|
2014-06-15 05:29:05 +02:00
|
|
|
private:
|
2016-06-24 10:43:46 +02:00
|
|
|
static bool CreateFile();
|
|
|
|
static void CloseFile();
|
2014-10-04 03:28:01 -04:00
|
|
|
|
2014-06-15 05:29:05 +02:00
|
|
|
public:
|
2016-06-24 10:43:46 +02:00
|
|
|
enum class DumpFormat
|
|
|
|
{
|
|
|
|
FORMAT_BGR,
|
|
|
|
FORMAT_RGBA
|
|
|
|
};
|
2016-01-01 08:50:15 -06:00
|
|
|
|
2016-06-24 10:43:46 +02:00
|
|
|
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();
|
2009-03-28 21:27:48 +00:00
|
|
|
};
|