37 lines
661 B
C++
37 lines
661 B
C++
// Copyright 2013 Dolphin Emulator Project
|
|
// Licensed under GPLv2
|
|
// Refer to the license.txt file included.
|
|
|
|
#ifndef _AVIDUMP_H
|
|
#define _AVIDUMP_H
|
|
|
|
#ifdef _WIN32
|
|
#include <windows.h>
|
|
#else
|
|
#include <stdint.h>
|
|
#endif
|
|
|
|
#include "CommonTypes.h"
|
|
|
|
class AVIDump
|
|
{
|
|
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
|
|
static void AddFrame(const u8* data, int width, int height);
|
|
|
|
static void Stop();
|
|
};
|
|
|
|
#endif // _AVIDUMP_H
|