Mercurial > mm7
comparison VideoPlayer.h @ 2356:08c4f1799ca1
Elements of VideoPlayer structure moved
author | Ritor1 |
---|---|
date | Thu, 10 Apr 2014 17:34:50 +0600 |
parents | d57505d3c70c |
children | cb66a1082fcf |
comparison
equal
deleted
inserted
replaced
2347:d57505d3c70c | 2356:08c4f1799ca1 |
---|---|
6 #pragma pack(push, 1) | 6 #pragma pack(push, 1) |
7 | 7 |
8 #pragma pack(pop) | 8 #pragma pack(pop) |
9 | 9 |
10 #pragma pack(push, 1) | 10 #pragma pack(push, 1) |
11 struct MovieHeader | |
12 { | |
13 char pVideoName[40]; | |
14 unsigned int uFileOffset; | |
15 }; | |
16 #pragma pack(pop) | 11 #pragma pack(pop) |
17 | 12 |
18 void ShowMM7IntroVideo_and_LoadingScreen(); | 13 void ShowMM7IntroVideo_and_LoadingScreen(); |
19 | 14 |
20 extern "C" | 15 extern "C" |
47 bStopBeforeSchedule = false; | 42 bStopBeforeSchedule = false; |
48 pResetflag = 0; | 43 pResetflag = 0; |
49 pVideoFrame.Release(); | 44 pVideoFrame.Release(); |
50 } | 45 } |
51 | 46 |
52 void PlayDeathMovie(); | |
53 void Initialize(OSWindow *window); | 47 void Initialize(OSWindow *window); |
54 void Unload(); | 48 void Unload(); |
49 | |
55 void OpenHouseMovie(const char *pMovieName, unsigned int a3_1);//0x4BF28F | 50 void OpenHouseMovie(const char *pMovieName, unsigned int a3_1);//0x4BF28F |
51 void PlayDeathMovie(); | |
56 bool AnyMovieLoaded(); | 52 bool AnyMovieLoaded(); |
57 void OpenGlobalMovie(const char *pFilename, unsigned int bLoop, int a4); | 53 void OpenGlobalMovie(const char *pFilename, unsigned int bLoop, int a4); |
58 void _4BF5B2(); | 54 void _4BF5B2(); |
59 void SelectMovieType();//0x4BF73A | 55 void SelectMovieType();//0x4BF73A |
60 void _inlined_in_463149(); | 56 void _inlined_in_463149(); |
57 | |
61 void MovieLoop(const char *pMovieName, int a2, int a3, int a4); | 58 void MovieLoop(const char *pMovieName, int a2, int a3, int a4); |
59 void UpdatePalette(); | |
60 static int readFunction(void *, uint8_t *, int); | |
61 static int64_t seekFunction(void *, int64_t, int); | |
62 void LoadMovie(const char *); | |
62 | 63 |
63 RGBTexture pVideoFrame; | 64 RGBTexture pVideoFrame; |
64 int field_34; | 65 int field_34; |
65 MovieHeader *pMightVideoHeaders; | 66 |
66 MovieHeader *pMagicVideoHeaders; | |
67 int pResetflag; | 67 int pResetflag; |
68 int field_44; | 68 int field_44; |
69 unsigned int uNumMightVideoHeaders; | 69 |
70 unsigned int uNumMagicVideoHeaders; | |
71 int uBinkDirectDrawSurfaceType; | 70 int uBinkDirectDrawSurfaceType; |
72 int bBufferLoaded; | 71 int bBufferLoaded; |
73 unsigned int bPlayingMovie; | 72 unsigned int bPlayingMovie; |
74 unsigned int bFirstFrame; | 73 unsigned int bFirstFrame; |
75 unsigned int bUsingSmackerMMX; | 74 unsigned int bUsingSmackerMMX; |
76 unsigned int bLoopPlaying; | 75 unsigned int bLoopPlaying; |
77 int field_68; | 76 int field_68; |
78 unsigned int bStopBeforeSchedule; | 77 unsigned int bStopBeforeSchedule; |
79 OSWindow *window; | 78 OSWindow *window; |
80 struct _SMACKBLIT *pSmackMovieBlit; | 79 struct _SMACKBLIT *pSmackMovieBlit; |
81 HANDLE hMightVid; | 80 |
82 HANDLE hMagicVid; | |
83 char field_88[20]; | 81 char field_88[20]; |
84 unsigned int uMovieFormat; | 82 unsigned int uMovieFormat; |
85 int uMovieFormatSwapped; | 83 int uMovieFormatSwapped; |
86 char pCurrentMovieName[64]; | 84 char pCurrentMovieName[64]; |
87 char pVideoFrameTextureFilename[32]; | 85 char pVideoFrameTextureFilename[32]; |
88 int field_104; | 86 int field_104; |
89 Media::Player *pPlayer; | 87 |
90 Media::IMovie *pMovie; | |
91 HANDLE hVidFile; | 88 HANDLE hVidFile; |
92 int uSize; | 89 int uSize; |
93 int uOffset; | 90 int uOffset; |
94 | |
95 void UpdatePalette(); | |
96 static int readFunction(void *, uint8_t *, int); | |
97 static int64_t seekFunction(void *, int64_t, int); | |
98 void LoadMovie(const char *); | |
99 void PlayAudio(const wchar_t * pFilename); | |
100 void PlayMovie(const wchar_t * pFilename); | |
101 }; | 91 }; |
102 #pragma pack(pop) | 92 #pragma pack(pop) |
103 | 93 |
104 extern VideoPlayer *pVideoPlayer; | 94 extern VideoPlayer *pVideoPlayer; |
105 extern LRESULT __stdcall wWinProc(HWND hwnd, unsigned int msg, WPARAM wparam, LPARAM lparam); | 95 extern LRESULT __stdcall wWinProc(HWND hwnd, unsigned int msg, WPARAM wparam, LPARAM lparam); |