ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
video.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 //
24 // Video playback interface.
25 //
26 // TODO: good future changes:
27 // - do not render to the screen right inside the VideoPlayer class,
28 // instead write the frame into the bitmap or texture, and expose
29 // current frame in the interface to let the engine decide what to do
30 // with it.
31 //
32 //=============================================================================
33 
34 #ifndef AGS_ENGINE_MEDIA_VIDEO_VIDEO_H
35 #define AGS_ENGINE_MEDIA_VIDEO_VIDEO_H
36 
37 namespace AGS3 {
38 
39 enum VideoFlags {
40  kVideo_EnableVideo = 0x0001,
41  kVideo_Stretch = 0x0002,
42  kVideo_ClearScreen = 0x0004,
43  kVideo_LegacyFrameSize = 0x0008,
44  kVideo_EnableAudio = 0x0010,
45  kVideo_KeepGameAudio = 0x0020
46 };
47 
48 enum VideoSkipType {
49  VideoSkipNone = 0,
50  VideoSkipEscape = 1,
51  VideoSkipAnyKey = 2,
52  VideoSkipKeyOrMouse = 3
53 };
54 
55 extern bool play_avi_video(const char *name, int flags, VideoSkipType skip, bool showError);
56 extern bool play_mpeg_video(const char *name, int flags, VideoSkipType skip, bool showError);
57 extern bool play_theora_video(const char *name, int flags, VideoSkipType skip, bool showError);
58 extern bool play_flc_video(int numb, int flags, VideoSkipType skip);
59 
60 // Pause the active video
61 extern void video_pause();
62 // Resume the active video
63 extern void video_resume();
64 
65 } // namespace AGS3
66 
67 #endif
Definition: ags.h:40