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-18 05:09:55 +02:00
|
|
|
// Refer to the license.txt file included.
|
2009-03-28 22:27:48 +01:00
|
|
|
|
2014-02-10 19:54:46 +01:00
|
|
|
#pragma once
|
2009-03-28 22:27:48 +01:00
|
|
|
|
2014-02-17 11:18:15 +01:00
|
|
|
#include "Common/CommonTypes.h"
|
2013-02-27 02:47:48 +01:00
|
|
|
|
2009-03-28 22:27:48 +01: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();
|
2016-06-25 04:41:10 +02:00
|
|
|
static void CheckResolution(int width, int height);
|
2016-10-08 15:28:12 +02:00
|
|
|
static void StoreFrameData(const u8* data, int width, int height, int stride);
|
2014-10-04 09:28:01 +02:00
|
|
|
|
2014-06-15 05:29:05 +02:00
|
|
|
public:
|
2016-10-08 16:23:04 +02:00
|
|
|
static bool Start(int w, int h);
|
2016-10-08 15:28:12 +02:00
|
|
|
static void AddFrame(const u8* data, int width, int height, int stride);
|
2016-06-24 10:43:46 +02:00
|
|
|
static void Stop();
|
|
|
|
static void DoState();
|
2009-03-28 22:27:48 +01:00
|
|
|
};
|