2013-04-18 03:09:55 +00:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// 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
|
|
|
|
2013-02-27 01:47:48 +00:00
|
|
|
#include "CommonTypes.h"
|
|
|
|
|
2009-03-28 21:27:48 +00:00
|
|
|
class AVIDump
|
|
|
|
{
|
2010-11-14 21:14:26 +00:00
|
|
|
private:
|
|
|
|
static bool CreateFile();
|
|
|
|
static void CloseFile();
|
|
|
|
static void SetBitmapFormat();
|
|
|
|
static bool SetCompressionOptions();
|
|
|
|
static bool SetVideoFormat();
|
|
|
|
|
|
|
|
public:
|
|
|
|
#ifdef _WIN32
|
|
|
|
static bool Start(HWND hWnd, int w, int h);
|
|
|
|
#else
|
|
|
|
static bool Start(int w, int h);
|
|
|
|
#endif
|
2013-02-27 01:47:48 +00:00
|
|
|
static void AddFrame(const u8* data, int width, int height);
|
2013-10-29 05:23:17 +00:00
|
|
|
|
2010-11-14 21:14:26 +00:00
|
|
|
static void Stop();
|
2009-03-28 21:27:48 +00:00
|
|
|
};
|