-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAviConvDlg.h
81 lines (60 loc) · 1.46 KB
/
AviConvDlg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
//
// AVI•ÏŠ·ƒ_ƒCƒAƒƒOƒNƒ‰ƒX
//
#ifndef __CAVICONVDLG_INCLUDED__
#define __CAVICONVDLG_INCLUDED__
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <string>
using namespace std;
#include "Wnd.h"
#include "AviWriter.h"
class NES;
class CAviConvDlg : public CWnd
{
public:
CAviConvDlg();
virtual ~CAviConvDlg();
// Override from CWnd
INT DoModal( HWND hWndParent );
protected:
// Message map
DLG_MESSAGE_MAP()
DLGMSG OnInitDialog( DLGMSGPARAM );
DLGMSG OnTimer( DLGMSGPARAM );
DLGCMD OnCancel( DLGCMDPARAM );
DLGCMD OnRomFileBrowse( DLGCMDPARAM );
DLGCMD OnMovieFileBrowse( DLGCMDPARAM );
DLGCMD OnAviFileBrowse( DLGCMDPARAM );
DLGCMD OnVideoCompressSelect( DLGCMDPARAM );
DLGCMD OnConvertStart( DLGCMDPARAM );
DLGMSG OnConvertDone( DLGMSGPARAM );
DLGMSG OnConvertError( DLGMSGPARAM );
void ControlEnable( BOOL bEnable );
//
CAVIWriter m_AviWriter;
NES* m_pNes;
INT m_FrameDivider;
INT m_FrameNo;
DWORD m_StartTime;
DWORD m_FinishTime;
DWORD m_RecordFrames;
BITMAPINFOHEADER m_BitmapHdr;
RGBQUAD m_Palette[256*8];
LPBYTE m_lpRender;
LPBYTE m_lpLinecolor;
LPBYTE m_lpScreen;
LPBYTE m_lpSound;
CHAR m_szTitle[256];
CHAR m_szRomFile[_MAX_PATH];
CHAR m_szMovieFile[_MAX_PATH];
CHAR m_szAviFile[_MAX_PATH];
// Thread
volatile BOOL m_bThreadExit;
HANDLE m_hThread;
DWORD m_dwThreadID;
static CHAR g_szErrorMessage[256];
static DWORD WINAPI ThreadProc( LPVOID lpVoid );
private:
};
#endif // !__CAVICONVDLG_INCLUDED__