annotate MediaPlayer.h @ 2382:8c00bd4573a8

sub_407A1C - fixing wrongly identified structure variable
author zipi
date Sun, 22 Jun 2014 13:58:46 +0100
parents 63ad4e3606f4
children 5d866ee28376 c4d286e4bb80
rev   line source
2315
58be29479e75 add files
Ritor1
parents:
diff changeset
1 #pragma once
58be29479e75 add files
Ritor1
parents:
diff changeset
2
58be29479e75 add files
Ritor1
parents:
diff changeset
3 namespace Media
58be29479e75 add files
Ritor1
parents:
diff changeset
4 {
58be29479e75 add files
Ritor1
parents:
diff changeset
5 class ITrack
58be29479e75 add files
Ritor1
parents:
diff changeset
6 {
58be29479e75 add files
Ritor1
parents:
diff changeset
7 public: virtual void Play(bool loop = false) = 0;
58be29479e75 add files
Ritor1
parents:
diff changeset
8 };
58be29479e75 add files
Ritor1
parents:
diff changeset
9
58be29479e75 add files
Ritor1
parents:
diff changeset
10 class IMovie
58be29479e75 add files
Ritor1
parents:
diff changeset
11 {
58be29479e75 add files
Ritor1
parents:
diff changeset
12 public: virtual void Play() = 0;
58be29479e75 add files
Ritor1
parents:
diff changeset
13 virtual void GetNextFrame(double dt, void *target_surface) = 0;
58be29479e75 add files
Ritor1
parents:
diff changeset
14 };
58be29479e75 add files
Ritor1
parents:
diff changeset
15
2356
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
16 class MPlayer
2315
58be29479e75 add files
Ritor1
parents:
diff changeset
17 {
58be29479e75 add files
Ritor1
parents:
diff changeset
18 public:
2356
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
19 MPlayer();
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
20 virtual ~MPlayer();
2315
58be29479e75 add files
Ritor1
parents:
diff changeset
21
58be29479e75 add files
Ritor1
parents:
diff changeset
22 ITrack *LoadTrack(const wchar_t *name);
58be29479e75 add files
Ritor1
parents:
diff changeset
23 IMovie *LoadMovie(const wchar_t *name, int width, int height, int cache_ms);
2345
182effc4b0ee for MultimediaPlayer
Ritor1
parents: 2315
diff changeset
24 IMovie *LoadMovieFromLOD(HANDLE h, int readFunction(void*, uint8_t*, int), int64_t seekFunction(void*, int64_t, int), int width, int height);
2315
58be29479e75 add files
Ritor1
parents:
diff changeset
25 };
2345
182effc4b0ee for MultimediaPlayer
Ritor1
parents: 2315
diff changeset
26 };
182effc4b0ee for MultimediaPlayer
Ritor1
parents: 2315
diff changeset
27
2356
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
28 extern Media::MPlayer *pMediaPlayer;
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
29 extern Media::IMovie *pMovie;
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
30 extern Media::ITrack *pTrack;
2360
63ad4e3606f4 MovieRelease();
Ritor1
parents: 2359
diff changeset
31 extern class Movie *movie;
2356
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
32
2345
182effc4b0ee for MultimediaPlayer
Ritor1
parents: 2315
diff changeset
33 extern bool end_current_file;
182effc4b0ee for MultimediaPlayer
Ritor1
parents: 2315
diff changeset
34 extern bool loop_current_file;
182effc4b0ee for MultimediaPlayer
Ritor1
parents: 2315
diff changeset
35 extern DWORD time_video_begin;
182effc4b0ee for MultimediaPlayer
Ritor1
parents: 2315
diff changeset
36 extern int current_movie_width;
182effc4b0ee for MultimediaPlayer
Ritor1
parents: 2315
diff changeset
37 extern int current_movie_height;
2347
d57505d3c70c VideoPlayer cleaning
Ritor1
parents: 2345
diff changeset
38
2359
5b9fb75b6f54 alSourceStop(mSourceID);
Ritor1
parents: 2356
diff changeset
39 extern int mSourceID;
5b9fb75b6f54 alSourceStop(mSourceID);
Ritor1
parents: 2356
diff changeset
40
2360
63ad4e3606f4 MovieRelease();
Ritor1
parents: 2359
diff changeset
41 //int64_t seekFunction(void* opaque, int64_t offset, int whence);
2356
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
42 extern void PlayMovie(const wchar_t * pFilename);
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
43 extern void PlayAudio(const wchar_t * pFilename);
2360
63ad4e3606f4 MovieRelease();
Ritor1
parents: 2359
diff changeset
44 extern void MovieRelease();
2347
d57505d3c70c VideoPlayer cleaning
Ritor1
parents: 2345
diff changeset
45
2356
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
46 //////////////////////////////////////////////////////////////////////////
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
47 //Included from a VideoPlayer.h file/вставлено из файла VideoPlayer.h/
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
48 //////////////////////////////////////////////////////////////////////////
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
49
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
50 //used in void VideoPlayer::Initialize(OSWindow *target_window) for open .vid files
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
51 struct MovieHeader
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
52 {
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
53 char pVideoName[40];
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
54 unsigned int uFileOffset;
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
55 };
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
56
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
57 extern MovieHeader *pMightVideoHeaders;
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
58 extern MovieHeader *pMagicVideoHeaders;
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
59 extern HANDLE hMightVid;
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
60 extern HANDLE hMagicVid;
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
61 extern unsigned __int64 uBinkVersion;
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
62 extern unsigned int uNumMightVideoHeaders;
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
63 extern unsigned int uNumMagicVideoHeaders;
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
64 //