annotate MediaPlayer.h @ 2417:15440e9ae7b6

pIcons_LOD->uNumLoadedFiles = pIcons_LOD->pFacesLock;
author Ritor1
date Tue, 22 Jul 2014 17:43:28 +0600
parents 33659ef7fbac
children cb66a1082fcf
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 {
2391
5d866ee28376 delete stru176.h for MVS 2010 MMT project
Ritor1
parents: 2360
diff changeset
7 public:
5d866ee28376 delete stru176.h for MVS 2010 MMT project
Ritor1
parents: 2360
diff changeset
8 virtual void Play(bool loop = false) = 0;
2315
58be29479e75 add files
Ritor1
parents:
diff changeset
9 };
58be29479e75 add files
Ritor1
parents:
diff changeset
10
58be29479e75 add files
Ritor1
parents:
diff changeset
11 class IMovie
58be29479e75 add files
Ritor1
parents:
diff changeset
12 {
2391
5d866ee28376 delete stru176.h for MVS 2010 MMT project
Ritor1
parents: 2360
diff changeset
13 public:
5d866ee28376 delete stru176.h for MVS 2010 MMT project
Ritor1
parents: 2360
diff changeset
14 virtual void Play() = 0;
5d866ee28376 delete stru176.h for MVS 2010 MMT project
Ritor1
parents: 2360
diff changeset
15 virtual void GetNextFrame(double dt, void *target_surface) = 0;
2315
58be29479e75 add files
Ritor1
parents:
diff changeset
16 };
58be29479e75 add files
Ritor1
parents:
diff changeset
17
2356
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
18 class MPlayer
2315
58be29479e75 add files
Ritor1
parents:
diff changeset
19 {
58be29479e75 add files
Ritor1
parents:
diff changeset
20 public:
2356
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
21 MPlayer();
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
22 virtual ~MPlayer();
2315
58be29479e75 add files
Ritor1
parents:
diff changeset
23
58be29479e75 add files
Ritor1
parents:
diff changeset
24 ITrack *LoadTrack(const wchar_t *name);
58be29479e75 add files
Ritor1
parents:
diff changeset
25 IMovie *LoadMovie(const wchar_t *name, int width, int height, int cache_ms);
2345
182effc4b0ee for MultimediaPlayer
Ritor1
parents: 2315
diff changeset
26 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
27 };
2345
182effc4b0ee for MultimediaPlayer
Ritor1
parents: 2315
diff changeset
28 };
182effc4b0ee for MultimediaPlayer
Ritor1
parents: 2315
diff changeset
29
2356
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
30 extern Media::MPlayer *pMediaPlayer;
2394
2fe8feb3dcd1 pMovie renamed to pMovie_Track and other
Ritor1
parents: 2391
diff changeset
31 extern Media::IMovie *pMovie_Track;
2fe8feb3dcd1 pMovie renamed to pMovie_Track and other
Ritor1
parents: 2391
diff changeset
32 extern Media::ITrack *pAudio_Track;
2360
63ad4e3606f4 MovieRelease();
Ritor1
parents: 2359
diff changeset
33 extern class Movie *movie;
2356
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
34
2345
182effc4b0ee for MultimediaPlayer
Ritor1
parents: 2315
diff changeset
35 extern bool end_current_file;
182effc4b0ee for MultimediaPlayer
Ritor1
parents: 2315
diff changeset
36 extern bool loop_current_file;
182effc4b0ee for MultimediaPlayer
Ritor1
parents: 2315
diff changeset
37 extern DWORD time_video_begin;
182effc4b0ee for MultimediaPlayer
Ritor1
parents: 2315
diff changeset
38 extern int current_movie_width;
182effc4b0ee for MultimediaPlayer
Ritor1
parents: 2315
diff changeset
39 extern int current_movie_height;
2347
d57505d3c70c VideoPlayer cleaning
Ritor1
parents: 2345
diff changeset
40
2359
5b9fb75b6f54 alSourceStop(mSourceID);
Ritor1
parents: 2356
diff changeset
41 extern int mSourceID;
5b9fb75b6f54 alSourceStop(mSourceID);
Ritor1
parents: 2356
diff changeset
42
2360
63ad4e3606f4 MovieRelease();
Ritor1
parents: 2359
diff changeset
43 //int64_t seekFunction(void* opaque, int64_t offset, int whence);
2356
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
44 extern void PlayMovie(const wchar_t * pFilename);
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
45 extern void PlayAudio(const wchar_t * pFilename);
2360
63ad4e3606f4 MovieRelease();
Ritor1
parents: 2359
diff changeset
46 extern void MovieRelease();
2347
d57505d3c70c VideoPlayer cleaning
Ritor1
parents: 2345
diff changeset
47
2356
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
48 //////////////////////////////////////////////////////////////////////////
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
49 //Included from a VideoPlayer.h file/вставлено из файла VideoPlayer.h/
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
50 //////////////////////////////////////////////////////////////////////////
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
51
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
52 //used in void VideoPlayer::Initialize(OSWindow *target_window) for open .vid files
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
53 struct MovieHeader
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
54 {
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
55 char pVideoName[40];
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
56 unsigned int uFileOffset;
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
57 };
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
58
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
59 extern MovieHeader *pMightVideoHeaders;
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
60 extern MovieHeader *pMagicVideoHeaders;
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
61 extern HANDLE hMightVid;
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
62 extern HANDLE hMagicVid;
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
63 extern unsigned __int64 uBinkVersion;
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
64 extern unsigned int uNumMightVideoHeaders;
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
65 extern unsigned int uNumMagicVideoHeaders;
08c4f1799ca1 Elements of VideoPlayer structure moved
Ritor1
parents: 2347
diff changeset
66 //