Mercurial > mm7
comparison MediaPlayer.h @ 2356:08c4f1799ca1
Elements of VideoPlayer structure moved
author | Ritor1 |
---|---|
date | Thu, 10 Apr 2014 17:34:50 +0600 |
parents | d57505d3c70c |
children | 5b9fb75b6f54 |
comparison
equal
deleted
inserted
replaced
2347:d57505d3c70c | 2356:08c4f1799ca1 |
---|---|
11 { | 11 { |
12 public: virtual void Play() = 0; | 12 public: virtual void Play() = 0; |
13 virtual void GetNextFrame(double dt, void *target_surface) = 0; | 13 virtual void GetNextFrame(double dt, void *target_surface) = 0; |
14 }; | 14 }; |
15 | 15 |
16 class Player | 16 class MPlayer |
17 { | 17 { |
18 public: | 18 public: |
19 Player(); | 19 MPlayer(); |
20 virtual ~Player(); | 20 virtual ~MPlayer(); |
21 | 21 |
22 ITrack *LoadTrack(const wchar_t *name); | 22 ITrack *LoadTrack(const wchar_t *name); |
23 IMovie *LoadMovie(const wchar_t *name, int width, int height, int cache_ms); | 23 IMovie *LoadMovie(const wchar_t *name, int width, int height, int cache_ms); |
24 IMovie *LoadMovieFromLOD(HANDLE h, int readFunction(void*, uint8_t*, int), int64_t seekFunction(void*, int64_t, int), int width, int height); | 24 IMovie *LoadMovieFromLOD(HANDLE h, int readFunction(void*, uint8_t*, int), int64_t seekFunction(void*, int64_t, int), int width, int height); |
25 }; | 25 }; |
26 }; | 26 }; |
27 | |
28 extern Media::MPlayer *pMediaPlayer; | |
29 extern Media::IMovie *pMovie; | |
30 extern Media::ITrack *pTrack; | |
27 | 31 |
28 extern bool end_current_file; | 32 extern bool end_current_file; |
29 extern bool loop_current_file; | 33 extern bool loop_current_file; |
30 extern DWORD time_video_begin; | 34 extern DWORD time_video_begin; |
31 extern int current_movie_width; | 35 extern int current_movie_width; |
32 extern int current_movie_height; | 36 extern int current_movie_height; |
33 | 37 |
34 int64_t seekFunction(void* opaque, int64_t offset, int whence); | 38 int64_t seekFunction(void* opaque, int64_t offset, int whence); |
39 extern void PlayMovie(const wchar_t * pFilename); | |
40 extern void PlayAudio(const wchar_t * pFilename); | |
35 | 41 |
42 ////////////////////////////////////////////////////////////////////////// | |
43 //Included from a VideoPlayer.h file/вставлено из файла VideoPlayer.h/ | |
44 ////////////////////////////////////////////////////////////////////////// | |
45 | |
46 //used in void VideoPlayer::Initialize(OSWindow *target_window) for open .vid files | |
47 struct MovieHeader | |
48 { | |
49 char pVideoName[40]; | |
50 unsigned int uFileOffset; | |
51 }; | |
52 | |
53 extern MovieHeader *pMightVideoHeaders; | |
54 extern MovieHeader *pMagicVideoHeaders; | |
55 extern HANDLE hMightVid; | |
56 extern HANDLE hMagicVid; | |
57 extern unsigned __int64 uBinkVersion; | |
58 extern unsigned int uNumMightVideoHeaders; | |
59 extern unsigned int uNumMagicVideoHeaders; | |
60 // |