2013-04-18 03:09:55 +00:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
2015-05-17 23:08:10 +00:00
|
|
|
// Licensed under GPLv2+
|
2013-04-18 03:09:55 +00:00
|
|
|
// Refer to the license.txt file included.
|
2009-03-28 21:27:48 +00:00
|
|
|
|
2014-02-10 18:54:46 +00:00
|
|
|
#pragma once
|
2009-03-28 21:27:48 +00:00
|
|
|
|
2010-11-14 21:14:26 +00:00
|
|
|
#ifdef _WIN32
|
2009-03-28 21:27:48 +00:00
|
|
|
#include <windows.h>
|
2010-11-14 21:14:26 +00:00
|
|
|
#else
|
|
|
|
#include <stdint.h>
|
|
|
|
#endif
|
2009-03-28 21:27:48 +00:00
|
|
|
|
2014-02-17 10:18:15 +00:00
|
|
|
#include "Common/CommonTypes.h"
|
2013-02-27 01:47:48 +00:00
|
|
|
|
2009-03-28 21:27:48 +00:00
|
|
|
class AVIDump
|
|
|
|
{
|
2014-06-15 03:29:05 +00:00
|
|
|
private:
|
|
|
|
static bool CreateFile();
|
|
|
|
static void CloseFile();
|
|
|
|
static void SetBitmapFormat();
|
|
|
|
static bool SetCompressionOptions();
|
|
|
|
static bool SetVideoFormat();
|
2010-11-14 21:14:26 +00:00
|
|
|
|
2014-10-04 07:28:01 +00:00
|
|
|
static void StoreFrame(const void* data);
|
|
|
|
static void* GetFrame();
|
|
|
|
|
2014-06-15 03:29:05 +00:00
|
|
|
public:
|
2015-01-26 01:35:29 +00:00
|
|
|
#ifdef _WIN32
|
|
|
|
static bool Start(HWND hWnd, int w, int h);
|
|
|
|
#else
|
2014-06-15 03:29:05 +00:00
|
|
|
static bool Start(int w, int h);
|
2015-01-26 01:35:29 +00:00
|
|
|
#endif
|
2014-06-15 03:29:05 +00:00
|
|
|
static void AddFrame(const u8* data, int width, int height);
|
|
|
|
static void Stop();
|
2014-10-04 07:28:01 +00:00
|
|
|
static void DoState();
|
2009-03-28 21:27:48 +00:00
|
|
|
};
|