ScummVM API documentation
video_player.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 /*
23  * This file is based on WME Lite.
24  * http://dead-code.org/redir.php?target=wmelite
25  * Copyright (c) 2011 Jan Nedoma
26  */
27 
28 #ifndef WINTERMUTE_VIDPLAYER_H
29 #define WINTERMUTE_VIDPLAYER_H
30 
31 #include "engines/wintermute/dctypes.h" // Added by ClassView
32 #include "engines/wintermute/base/base.h"
33 
34 #define MAX_AUDIO_STREAMS 5
35 #define MAX_VIDEO_STREAMS 5
36 
37 
38 namespace Wintermute {
39 
40 // AVI-Video-player, currently fully stubbed
41 class VideoPlayer : public BaseClass {
42 public:
43  bool _showSubtitle;
44  int32 _currentSubtitle;
45  bool loadSubtitles(const char *filename, const char *subtitleFile);
46  bool _slowRendering;
47  bool isPlaying();
48  char *_filename;
49  bool stop();
50  bool play(TVideoPlayback Type = VID_PLAY_CENTER, int x = 0, int y = 0, bool freezeMusic = true);
51  uint32 _totalVideoTime;
52  uint32 _startTime;
53  //CVidRenderer *_vidRenderer;
54  //BaseSoundAVI *_sound;
55  bool _soundAvailable;
56  bool setDefaults();
57  bool _playing;
58  bool display();
59  bool update();
60  bool initialize(const char *inFilename, const char *subtitleFile = nullptr);
61  bool cleanup();
62  VideoPlayer(BaseGame *inGame);
63  ~VideoPlayer() override;
64 
65  /*PAVIFILE _aviFile;
66 
67  LONG _lastSample;
68 
69  PAVISTREAM _audioStream;
70  PAVISTREAM _videoStream;
71 
72  LPWAVEFORMAT _audioFormat;
73 
74  LPBITMAPINFO _videoFormat;
75  PGETFRAME _videoPGF;*/
76  uint32 _videoEndTime;
77 
78  int32 _playPosX;
79  int32 _playPosY;
80  float _playZoom;
81 
82  /* LPBITMAPV4HEADER _targetFormat;
83 
84  BaseArray<CVidSubtitle *, CVidSubtitle *> _subtitles;*/
85 };
86 
87 } // End of namespace Wintermute
88 
89 #endif
Definition: base_game.h:76
Type
Definition: log.h:33
Definition: video_player.h:41
Definition: base.h:43
Definition: achievements_tables.h:27