0
|
1 #pragma once
|
1802
|
2 #include "OSWindow.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;
|
1802
|
50 int target_width;
|
|
51 int target_height;
|
0
|
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
|
1458
|
107 void ShowIntroVideo_and_LoadingScreen();
|
0
|
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();
|
1802
|
126 void Initialize(OSWindow *window);
|
0
|
127 void Prepare();
|
|
128 void Unload();
|
|
129 void FastForwardToFrame(unsigned int uFrameNum);
|
1802
|
130 void BinkDrawFrame(int a3, int a4);
|
|
131 void BinkUpdatePalette() {}
|
|
132 void SmackDrawFrame(int a3, int a4);
|
|
133 void SmackUpdatePalette();
|
0
|
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
|
1802
|
141 _BINKBUF *CreateBinkBuffer(unsigned int uWidth, unsigned int uHeight, char a4);
|
|
142 void _inlined_in_463149();
|
0
|
143
|
1802
|
144 static void MovieLoop(const char *pMovieName, int a2, int a3, int a4);
|
0
|
145
|
|
146
|
|
147 RGBTexture pVideoFrame;
|
|
148 struct _SMACK *pSmackerMovie;
|
|
149 struct _SMACKBUF *pSmackerBuffer;
|
|
150 char *pSomeSmackerBuffer;
|
|
151 int field_34;
|
|
152 MovieHeader *pMightVideoHeaders;
|
|
153 MovieHeader *pMagicVideoHeaders;
|
165
|
154 int pResetflag;
|
0
|
155 int field_44;
|
|
156 unsigned int uNumMightVideoHeaders;
|
|
157 unsigned int uNumMagicVideoHeaders;
|
|
158 int uBinkDirectDrawSurfaceType;
|
|
159 int field_54;
|
|
160 unsigned int bPlayingMovie;
|
|
161 unsigned int bFirstFrame;
|
|
162 unsigned int bUsingSmackerMMX;
|
|
163 unsigned int bLoopPlaying;
|
|
164 int field_68;
|
|
165 unsigned int bStopBeforeSchedule;
|
1802
|
166 //HWND hWindow;
|
|
167 OSWindow *window;
|
0
|
168 struct _SMACKBLIT *pSmackMovieBlit;
|
|
169 HANDLE hMightVid;
|
|
170 HANDLE hMagicVid;
|
|
171 _BINK *pBinkMovie;
|
|
172 _BINKBUF *pBinkBuffer;
|
|
173 char field_88[20];
|
|
174 unsigned int uMovieFormat;
|
|
175 int dword_0000A0;
|
|
176 char pCurrentMovieName[64];
|
|
177 char pVideoFrameTextureFilename[32];
|
323
|
178 int field_104;
|
0
|
179 };
|
|
180 #pragma pack(pop)
|
|
181
|
|
182
|
|
183
|
|
184
|
|
185
|
|
186 extern VideoPlayer *pVideoPlayer;
|