0
|
1 #pragma once
|
|
2 #include "OSAPI.h"
|
1262
|
3 #include "Texture.h"
|
0
|
4
|
|
5
|
|
6
|
|
7
|
|
8 #pragma pack(push, 1)
|
|
9
|
|
10
|
|
11
|
|
12 struct _BINK
|
|
13 {
|
|
14 int uWidth;
|
|
15 int uHeight;
|
|
16 };
|
|
17
|
|
18 struct _BINK_1_5_21_0: public _BINK
|
|
19 {
|
|
20 int uNumFrames;
|
|
21 int uCurrentFrame;
|
|
22 int Data1;
|
|
23 int uFrameRate;
|
|
24 int field_18[3];
|
|
25 int uFlags;
|
|
26 };
|
|
27
|
|
28 struct _BINK_3_0_0_0: public _BINK
|
|
29 {
|
|
30 int unk_0;
|
|
31 int unk_1;
|
|
32 int uNumFrames;
|
|
33 int uCurrentFrame;
|
|
34 int _unk2;
|
|
35 int _unk_[10];
|
|
36 };
|
|
37
|
|
38
|
|
39 struct _BINKBUF
|
|
40 {
|
|
41 int uWidth;
|
|
42 int uHeight;
|
|
43 int field_8;
|
|
44 int field_C;
|
|
45 int uBinkDDSurfaceType;
|
|
46 void *pDDrawSurfaceData;
|
|
47 int uDDrawSurfacePitch;
|
|
48 int field_1C;
|
|
49 int field_20;
|
|
50 int field_24;
|
|
51 int field_28;
|
|
52 int field_2C;
|
|
53 int field_30;
|
|
54 int field_34;
|
|
55 int field_38;
|
|
56 int field_3C;
|
|
57 int field_40;
|
|
58 int field_44;
|
|
59 struct IDirectDrawSurface *pTargetDDrawSurface;
|
|
60 int field_4C;
|
|
61 int uRectX;
|
|
62 int uRectY;
|
|
63 HWND hWnd;
|
|
64 int field_5C;
|
|
65 float field_60;
|
|
66 float field_64;
|
|
67 int field_68;
|
|
68 int field_6C;
|
|
69 void *pDDrawSurfaceData_;
|
|
70 int field_74;
|
|
71 int field_78;
|
|
72 };
|
|
73 struct _BINKBUF_1_5_21_0: public _BINKBUF
|
|
74 {
|
|
75 int field_7C;
|
|
76 int field_80;
|
|
77 int field_84;
|
|
78 int field_88;
|
|
79 int field_8C;
|
|
80 int field_90;
|
|
81 int field_94;
|
|
82 int field_98;
|
|
83 int field_9C;
|
|
84 int field_A0;
|
|
85 };
|
|
86
|
|
87 struct _BINKBUF_3_0_0_0: public _BINKBUF
|
|
88 {
|
|
89 };
|
|
90 #pragma pack(pop)
|
|
91
|
|
92
|
|
93
|
|
94
|
|
95 #pragma pack(push, 1)
|
|
96 struct MovieHeader
|
|
97 {
|
|
98 char pVideoName[40];
|
|
99 unsigned int uFileOffset;
|
|
100 };
|
|
101 #pragma pack(pop)
|
|
102
|
|
103
|
|
104
|
|
105
|
|
106
|
|
107 void __cdecl ShowIntroVideo_and_LoadingScreen();
|
|
108
|
|
109
|
|
110
|
|
111
|
|
112 #pragma pack(push, 1)
|
|
113 struct VideoPlayer
|
|
114 {
|
1262
|
115 VideoPlayer();
|
0
|
116 //----- (004BECBD) --------------------------------------------------------
|
|
117 virtual ~VideoPlayer()
|
|
118 {
|
|
119 bStopBeforeSchedule = false;
|
165
|
120 pResetflag = 0;
|
0
|
121 pVideoFrame.Release();
|
|
122 }
|
|
123
|
|
124 void PlayDeathMovie();
|
|
125 unsigned int SmackCheckSurfaceFromat();
|
|
126 void Initialize();
|
|
127 void Prepare();
|
|
128 void Unload();
|
|
129 void FastForwardToFrame(unsigned int uFrameNum);
|
|
130 void BinkDrawFrame(HWND hWnd, int a3, int a4);
|
|
131 void BinkUpdatePalette(HWND hWnd) {}
|
|
132 void SmackDrawFrame(HWND hWnd, int a3, int a4);
|
|
133 void SmackUpdatePalette(HWND hWnd);
|
|
134 _BINK *OpenBink(const char *pName);
|
|
135 struct _SMACK *OpenSmack(const char *pFilename);
|
898
|
136 void OpenHouseMovie(const char *pMovieName, unsigned int a3_1);//0x4BF28F
|
0
|
137 bool AnyMovieLoaded();
|
898
|
138 void OpenGlobalMovie(const char *pFilename, unsigned int bLoop, int a4);
|
0
|
139 void _4BF5B2();
|
898
|
140 void SelectMovieType();//0x4BF73A
|
0
|
141 _BINKBUF *CreateBinkBuffer(HWND a1, unsigned int uWidth, unsigned int uHeight, char a4);
|
|
142
|
|
143 static void __fastcall MovieLoop(const char *pMovieName, int a2, int a3, int a4);
|
|
144
|
|
145
|
|
146 RGBTexture pVideoFrame;
|
|
147 struct _SMACK *pSmackerMovie;
|
|
148 struct _SMACKBUF *pSmackerBuffer;
|
|
149 char *pSomeSmackerBuffer;
|
|
150 int field_34;
|
|
151 MovieHeader *pMightVideoHeaders;
|
|
152 MovieHeader *pMagicVideoHeaders;
|
165
|
153 int pResetflag;
|
0
|
154 int field_44;
|
|
155 unsigned int uNumMightVideoHeaders;
|
|
156 unsigned int uNumMagicVideoHeaders;
|
|
157 int uBinkDirectDrawSurfaceType;
|
|
158 int field_54;
|
|
159 unsigned int bPlayingMovie;
|
|
160 unsigned int bFirstFrame;
|
|
161 unsigned int bUsingSmackerMMX;
|
|
162 unsigned int bLoopPlaying;
|
|
163 int field_68;
|
|
164 unsigned int bStopBeforeSchedule;
|
|
165 HWND hWindow;
|
|
166 struct _SMACKBLIT *pSmackMovieBlit;
|
|
167 HANDLE hMightVid;
|
|
168 HANDLE hMagicVid;
|
|
169 _BINK *pBinkMovie;
|
|
170 _BINKBUF *pBinkBuffer;
|
|
171 char field_88[20];
|
|
172 unsigned int uMovieFormat;
|
|
173 int dword_0000A0;
|
|
174 char pCurrentMovieName[64];
|
|
175 char pVideoFrameTextureFilename[32];
|
323
|
176 int field_104;
|
0
|
177 };
|
|
178 #pragma pack(pop)
|
|
179
|
|
180
|
|
181
|
|
182
|
|
183
|
|
184 extern VideoPlayer *pVideoPlayer;
|