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:
Glenn Rice committed 2010-11-14 21:14:26 +00:00
1 parent a4fe774528
commit 50882c8d30
5 files changed
+237 -36

No files matched your search

+20 -10
View File
@@ -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