mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
On linux encode frame dumps in MPG format instead of writing raw frames. To enable this portion of the code you must have libavcodec-dev and libswscale-dev installed (package names for Ubuntu).
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6414 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -18,20 +18,30 @@
|
||||
#ifndef _AVIDUMP_H
|
||||
#define _AVIDUMP_H
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
class AVIDump
|
||||
{
|
||||
private:
|
||||
static bool CreateFile();
|
||||
static void CloseFile();
|
||||
static void SetBitmapFormat();
|
||||
static bool SetCompressionOptions();
|
||||
static bool SetVideoFormat();
|
||||
public:
|
||||
static bool Start(HWND hWnd, int w, int h);
|
||||
static void Stop();
|
||||
static void AddFrame(char *data);
|
||||
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);
|
||||
static void AddFrame(char *data);
|
||||
#else
|
||||
static bool Start(int w, int h);
|
||||
static void AddFrame(uint8_t *data);
|
||||
#endif
|
||||
static void Stop();
|
||||
};
|
||||
|
||||
#endif // _AVIDUMP_H
|
||||
|
Reference in New Issue
Block a user