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