Mercurial > mm7
annotate VideoPlayer.h @ 2381:cb84b457527c
Feather fall check fixed
author | zipi |
---|---|
date | Sun, 22 Jun 2014 12:56:25 +0100 |
parents | 08c4f1799ca1 |
children | cb66a1082fcf |
rev | line source |
---|---|
0 | 1 #pragma once |
1802 | 2 #include "OSWindow.h" |
1262 | 3 #include "Texture.h" |
2345 | 4 #include "MediaPlayer.h" |
0 | 5 |
6 #pragma pack(push, 1) | |
7 | |
8 #pragma pack(pop) | |
9 | |
10 #pragma pack(push, 1) | |
11 #pragma pack(pop) | |
12 | |
2290 | 13 void ShowMM7IntroVideo_and_LoadingScreen(); |
0 | 14 |
2134 | 15 extern "C" |
16 { | |
17 #include "lib/libavcodec/avcodec.h" | |
18 #include "lib/libavformat/avformat.h" | |
19 #include "lib/libavutil/avutil.h" | |
20 #include "lib/libavutil/imgutils.h" | |
21 #include "lib/libswscale/swscale.h" | |
22 #include "lib/libswresample/swresample.h" | |
23 #include "lib/libavutil/opt.h" | |
24 } | |
25 #pragma comment(lib, "avcodec.lib") | |
26 #pragma comment(lib, "avformat.lib") | |
27 #pragma comment(lib, "avutil.lib") | |
28 #pragma comment(lib, "swscale.lib") | |
29 #pragma comment(lib, "swresample.lib") | |
30 | |
31 #include "lib/OpenAL/al.h" | |
32 #include "lib/OpenAL/alc.h" | |
33 #pragma comment(lib, "OpenAL32.lib") | |
34 | |
0 | 35 #pragma pack(push, 1) |
36 struct VideoPlayer | |
37 { | |
1262 | 38 VideoPlayer(); |
0 | 39 //----- (004BECBD) -------------------------------------------------------- |
40 virtual ~VideoPlayer() | |
41 { | |
42 bStopBeforeSchedule = false; | |
165 | 43 pResetflag = 0; |
0 | 44 pVideoFrame.Release(); |
45 } | |
46 | |
1802 | 47 void Initialize(OSWindow *window); |
0 | 48 void Unload(); |
2356 | 49 |
898 | 50 void OpenHouseMovie(const char *pMovieName, unsigned int a3_1);//0x4BF28F |
2356 | 51 void PlayDeathMovie(); |
0 | 52 bool AnyMovieLoaded(); |
898 | 53 void OpenGlobalMovie(const char *pFilename, unsigned int bLoop, int a4); |
0 | 54 void _4BF5B2(); |
898 | 55 void SelectMovieType();//0x4BF73A |
1802 | 56 void _inlined_in_463149(); |
2356 | 57 |
2142
ca548138d6aa
some code cleaning in video playing, loops play but there is a memory leak
zipi
parents:
2137
diff
changeset
|
58 void MovieLoop(const char *pMovieName, int a2, int a3, int a4); |
2356 | 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 *); | |
0 | 63 |
64 RGBTexture pVideoFrame; | |
65 int field_34; | |
2356 | 66 |
165 | 67 int pResetflag; |
0 | 68 int field_44; |
2356 | 69 |
0 | 70 int uBinkDirectDrawSurfaceType; |
2137
d24ee391fd1f
libavcodec playing movies and houses, loops not working yet
zipi
parents:
2134
diff
changeset
|
71 int bBufferLoaded; |
0 | 72 unsigned int bPlayingMovie; |
73 unsigned int bFirstFrame; | |
74 unsigned int bUsingSmackerMMX; | |
75 unsigned int bLoopPlaying; | |
76 int field_68; | |
77 unsigned int bStopBeforeSchedule; | |
1802 | 78 OSWindow *window; |
0 | 79 struct _SMACKBLIT *pSmackMovieBlit; |
2356 | 80 |
0 | 81 char field_88[20]; |
82 unsigned int uMovieFormat; | |
2137
d24ee391fd1f
libavcodec playing movies and houses, loops not working yet
zipi
parents:
2134
diff
changeset
|
83 int uMovieFormatSwapped; |
0 | 84 char pCurrentMovieName[64]; |
85 char pVideoFrameTextureFilename[32]; | |
323 | 86 int field_104; |
2356 | 87 |
2142
ca548138d6aa
some code cleaning in video playing, loops play but there is a memory leak
zipi
parents:
2137
diff
changeset
|
88 HANDLE hVidFile; |
2137
d24ee391fd1f
libavcodec playing movies and houses, loops not working yet
zipi
parents:
2134
diff
changeset
|
89 int uSize; |
d24ee391fd1f
libavcodec playing movies and houses, loops not working yet
zipi
parents:
2134
diff
changeset
|
90 int uOffset; |
0 | 91 }; |
92 #pragma pack(pop) | |
93 | |
94 extern VideoPlayer *pVideoPlayer; | |
2137
d24ee391fd1f
libavcodec playing movies and houses, loops not working yet
zipi
parents:
2134
diff
changeset
|
95 extern LRESULT __stdcall wWinProc(HWND hwnd, unsigned int msg, WPARAM wparam, LPARAM lparam); |