22 #ifndef MOHAWK_VIDEO_H 23 #define MOHAWK_VIDEO_H 25 #include "audio/mixer.h" 26 #include "audio/timestamp.h" 27 #include "common/array.h" 28 #include "common/list.h" 29 #include "common/noncopyable.h" 30 #include "common/ptr.h" 31 #include "common/rational.h" 32 #include "graphics/pixelformat.h" 33 #include "video/subtitles.h" 63 operator bool()
const {
return isOpen(); }
68 bool isOpen()
const {
return _video != 0; }
78 bool endOfVideo()
const;
83 uint16
getX()
const {
return _x; }
88 uint16
getY()
const {
return _y; }
118 int getCurFrame()
const;
123 uint32 getFrameCount()
const;
128 uint32 getTime()
const;
143 void setX(uint16 x) { _x = x; }
148 void setY(uint16 y) { _y = y; }
153 void moveTo(uint16 x, uint16 y) { setX(x); setY(y); }
195 void pause(
bool isPaused);
210 bool isPlaying()
const;
215 int getVolume()
const;
220 void setVolume(
int volume);
251 VideoEntryPtr playMovie(uint16
id);
256 bool isVideoPlaying();
259 VideoEntryPtr findVideo(uint16
id);
261 void drawVideoFrame(
const VideoEntryPtr &video,
const Audio::Timestamp &time);
262 void removeEntry(
const VideoEntryPtr &video);
272 VideoEntryPtr open(uint16
id);
277 bool drawNextFrame(VideoEntryPtr videoEntry);
281 void checkEnableDither(VideoEntryPtr &entry);
void moveTo(uint16 x, uint16 y)
Definition: video.h:153
bool isOpen() const
Definition: video.h:68
void setStart(const Audio::Timestamp &time)
Definition: video.h:163
int getID() const
Definition: video.h:113
bool isEnabled() const
Definition: video.h:98
Definition: timestamp.h:83
uint16 getX() const
Definition: video.h:83
Definition: rational.h:40
void setEnabled(bool enabled)
Definition: video.h:173
uint16 getY() const
Definition: video.h:88
Definition: noncopyable.h:39
Definition: subtitles.h:61
SoundType
Definition: mixer.h:62
Definition: video_decoder.h:53
void setY(uint16 y)
Definition: video.h:148
bool isLooping() const
Definition: video.h:93
void setLooping(bool loop)
Definition: video.h:168
void loadSubtitles(const Common::Path &fname)
Definition: video.h:225
void setX(uint16 x)
Definition: video.h:143
Definition: list_intern.h:51
Definition: avi_frames.h:36
const Audio::Timestamp & getStart() const
Definition: video.h:103
const Common::Path & getFileName() const
Definition: video.h:108