ScummVM API documentation
animation_he.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#if !defined(SCUMM_HE_ANIMATION_H) && defined(ENABLE_HE)
23#define SCUMM_HE_ANIMATION_H
24
25namespace Audio {
26class Mixer;
27}
28
29namespace Common {
30class Path;
31}
32
33namespace Video {
34class VideoDecoder;
35}
36
37namespace Scumm {
38
39class ScummEngine_v90he;
40
41class MoviePlayer {
42
43public:
44 enum VideoFlags {
45 vfBackground = 0x00000001,
46 vfImageSurface = 0x00000002,
47 vfForeground = 0x00000004,
48 vfLooping = 0x00000008,
49 vfAllowFrameSkip = 0x00000010,
50 vfDefault = (vfForeground),
51 };
52
53 MoviePlayer(ScummEngine_v90he *vm, Audio::Mixer *mixer);
54 ~MoviePlayer();
55
56 int getImageNum();
57 int load(const Common::Path &filename, int flags, int image = 0);
58
59 void copyFrameToBuffer(byte *dst, int dstType, uint x, uint y, uint pitch);
60 void handleNextFrame();
61
62 void close();
63 int getWidth() const;
64 int getHeight() const;
65 int getFrameCount() const;
66 int getCurFrame() const;
67
68private:
69 ScummEngine_v90he *_vm;
70
71 Video::VideoDecoder *_video;
72
73 uint32 _flags;
74 uint32 _wizResNum;
75};
76
77} // End of namespace Scumm
78
79#endif
Definition: mixer.h:70
Definition: path.h:52
Definition: video_decoder.h:53
Definition: system.h:39
Definition: algorithm.h:29
Path
Definition: game.h:76
Definition: actor.h:30