dolphin/Source/Core/VideoCommon/AVIDump.h

37 lines
702 B
C
Raw Normal View History

// Copyright 2008 Dolphin Emulator Project
2015-05-17 17:08:10 -06:00
// 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
{
2014-06-14 21:29:05 -06:00
private:
static bool CreateFile();
static void CloseFile();
static void SetBitmapFormat();
static bool SetCompressionOptions();
static bool SetVideoFormat();
2014-10-04 01:28:01 -06:00
static void StoreFrame(const void* data);
static void* GetFrame();
2014-06-14 21:29:05 -06:00
public:
#ifdef _WIN32
static bool Start(HWND hWnd, int w, int h);
#else
2014-06-14 21:29:05 -06:00
static bool Start(int w, int h);
#endif
2014-06-14 21:29:05 -06:00
static void AddFrame(const u8* data, int width, int height);
static void Stop();
2014-10-04 01:28:01 -06:00
static void DoState();
};