mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
28 lines
535 B
C++
28 lines
535 B
C++
// Copyright 2008 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
class AVIDump
|
|
{
|
|
private:
|
|
static bool CreateFile();
|
|
static void CloseFile();
|
|
static void CheckResolution(int width, int height);
|
|
|
|
public:
|
|
enum class DumpFormat
|
|
{
|
|
FORMAT_BGR,
|
|
FORMAT_RGBA
|
|
};
|
|
|
|
static bool Start(int w, int h, DumpFormat format);
|
|
static void AddFrame(const u8* data, int width, int height);
|
|
static void Stop();
|
|
static void DoState();
|
|
};
|