28 #ifndef GOB_VIDEOPLAYER_H 29 #define GOB_VIDEOPLAYER_H 31 #include "common/array.h" 32 #include "common/list.h" 33 #include "common/rect.h" 34 #include "common/str.h" 36 #include "graphics/surface.h" 54 kFlagUseBackSurfaceContent = 0x000040,
55 kFlagFrontSurface = 0x000080,
56 kFlagNoVideo = 0x000100,
57 kFlagOtherSurface = 0x000800,
58 kFlagScreenSurface = 0x400000
116 bool closeVideo(
int slot = 0);
118 void closeLiveSound();
121 bool reopenVideo(
int slot = 0);
124 void pauseVideo(
int slot,
bool pause);
125 void pauseAll(
bool pause);
127 void finishVideoSound(
int slot);
128 void waitSoundEnd(
int slot);
131 void waitEndFrame(
int slot,
bool onlySound =
false);
132 int32 getExpectedFrameFromCurrentTime(
int slot);
134 bool isPlayingLive()
const;
135 bool isSoundPlaying()
const;
137 void updateLive(
bool force =
false);
139 bool slotIsOpen(
int slot = 0)
const;
143 uint32 getFrameCount (
int slot = 0)
const;
144 uint32 getCurrentFrame(
int slot = 0)
const;
145 uint16 getWidth (
int slot = 0)
const;
146 uint16 getHeight (
int slot = 0)
const;
147 uint16 getDefaultX (
int slot = 0)
const;
148 uint16 getDefaultY (
int slot = 0)
const;
149 uint32 getFlags (
int slot = 0)
const;
154 bool hasEmbeddedFile(
const Common::String &fileName,
int slot = 0)
const;
157 int32 getSubtitleIndex(
int slot = 0)
const;
159 void writeVideoInfo(
const Common::String &file, uint16 varX, uint16 varY,
160 uint16 varFrames, uint16 varWidth, uint16 varHeight);
162 bool copyFrame(
int slot,
Surface &dest,
163 uint16 left, uint16 top, uint16 width, uint16 height, uint16 x, uint16 y,
164 int32 transp = -1,
bool yAxisReflexion =
false)
const;
168 ::Video::CoktelDecoder *decoder;
179 bool isEmpty()
const;
185 static const int kVideoSlotCount = 32;
187 static const char *
const _extensions[];
192 Video _videoSlots[kVideoSlotCount];
196 bool _noCursorSwitch;
197 bool _woodruffCohCottWorkaround;
199 const Video *getVideoBySlot(
int slot)
const;
200 Video *getVideoBySlot(
int slot);
202 int getNextFreeSlot();
208 bool reopenVideo(
Video &video);
210 bool playFrame(
int slot,
Properties &properties);
213 void evalBgShading(
Video &video);
215 void copyPalette(
const Video &video, int16 palStart, int16 palEnd);
217 void updateLive(
int slot,
bool force =
false);
222 #endif // GOB_VIDEOPLAYER_H int32 x
X coordinate of the video.
Definition: videoplayer.h:75
bool noBlock
Non-blocking "live" video?
Definition: videoplayer.h:97
int32 y
Y coordinate of the video.
Definition: videoplayer.h:76
int32 lastFrame
Frame to stop playback at.
Definition: videoplayer.h:85
int16 breakKey
Keycode of the break/abort key.
Definition: videoplayer.h:90
int32 startFrame
Frame to start playback from.
Definition: videoplayer.h:84
Flags
Definition: videoplayer.h:52
Type type
Type of the video to open.
Definition: videoplayer.h:71
bool hasSound
Does the video have sound?
Definition: videoplayer.h:104
int32 width
Width of the video.
Definition: videoplayer.h:77
bool switchColorMode
Switch between paletted / true color modes?
Definition: videoplayer.h:82
bool canceled
Was the video canceled?
Definition: videoplayer.h:105
int16 palEnd
Palette entry to end at.
Definition: videoplayer.h:94
int16 palStart
Palette entry to start with.
Definition: videoplayer.h:93
bool waitEndFrame
Wait for the frame's time to run out?
Definition: videoplayer.h:102
int32 palFrame
Frame to apply the palette command at.
Definition: videoplayer.h:95
Type
Definition: videoplayer.h:62
Definition: surface.h:100
Definition: videoplayer.h:70
int sprite
The sprite onto which to draw the video.
Definition: videoplayer.h:73
uint16 palCmd
Palette command.
Definition: videoplayer.h:92
bool fade
Fade in?
Definition: videoplayer.h:100
uint32 flags
Video flags.
Definition: videoplayer.h:80
Definition: avi_frames.h:36
bool forceSeek
Force the seeking to the start frame.
Definition: videoplayer.h:88
int32 endFrame
Last frame of this playback cycle.
Definition: videoplayer.h:86
int32 height
Height of the video.
Definition: videoplayer.h:78
bool loop
Loop the video?
Definition: videoplayer.h:99
Definition: videoplayer.h:50