summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/AVIDump.h
blob: 510f6a42243003b2ac354fa4791e7f09722cf00e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright 2008 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.

#pragma once

#ifdef _WIN32
#include <windows.h>
#else
#include <stdint.h>
#endif

#include "Common/CommonTypes.h"

class AVIDump
{
private:
	static bool CreateFile();
	static void CloseFile();
	static void SetBitmapFormat();
	static bool SetCompressionOptions();
	static bool SetVideoFormat();

	static void StoreFrame(const void* data);
	static void* GetFrame();

public:
#ifdef _WIN32
	static bool Start(HWND hWnd, int w, int h);
#else
	static bool Start(int w, int h);
#endif
	static void AddFrame(const u8* data, int width, int height);
	static void Stop();
	static void DoState();
};