aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/videoplayer.cpp
diff options
context:
space:
mode:
authorSven Hesse2010-08-08 00:55:27 +0000
committerSven Hesse2010-08-08 00:55:27 +0000
commitbab55f3a1d8f24e959fa98bda3a775452cc14198 (patch)
treea4f57b23f3992e6dfe38bc45bce5583d47c89a6b /engines/gob/videoplayer.cpp
parenta2847e853b9b87f53185b6e6dd0f9ab0d3aae587 (diff)
downloadscummvm-rg350-bab55f3a1d8f24e959fa98bda3a775452cc14198.tar.gz
scummvm-rg350-bab55f3a1d8f24e959fa98bda3a775452cc14198.tar.bz2
scummvm-rg350-bab55f3a1d8f24e959fa98bda3a775452cc14198.zip
GOB: Adapt the remaining bits to the new VideoPlayer interface
svn-id: r51895
Diffstat (limited to 'engines/gob/videoplayer.cpp')
-rw-r--r--engines/gob/videoplayer.cpp70
1 files changed, 3 insertions, 67 deletions
diff --git a/engines/gob/videoplayer.cpp b/engines/gob/videoplayer.cpp
index 1fe05dfbf0..427130935e 100644
--- a/engines/gob/videoplayer.cpp
+++ b/engines/gob/videoplayer.cpp
@@ -253,12 +253,13 @@ bool VideoPlayer::play(int slot, Properties &properties) {
return true;
}
-void VideoPlayer::waitEndFrame(int slot) {
+void VideoPlayer::waitEndFrame(int slot, bool onlySound) {
Video *video = getVideoBySlot(slot);
if (!video)
return;
- _vm->_util->delay(video->decoder->getTimeToNextFrame());
+ if (!onlySound || video->decoder->hasSound())
+ _vm->_util->delay(video->decoder->getTimeToNextFrame());
}
bool VideoPlayer::playFrame(int slot, Properties &properties) {
@@ -702,71 +703,6 @@ Graphics::CoktelDecoder *VideoPlayer::openVideo(const Common::String &file, Prop
return video;
}
-
-
-
-// Obsolete, to be deleted
-
-bool VideoPlayer::primaryOpen(const char *videoFile, int16 x, int16 y,
- int32 flags, Type which, int16 width, int16 height) {
-
- return false;
-}
-
-bool VideoPlayer::primaryPlay(int16 startFrame, int16 lastFrame, int16 breakKey,
- uint16 palCmd, int16 palStart, int16 palEnd,
- int16 palFrame, int16 endFrame, bool fade, int16 reverseTo, bool forceSeek) {
-
- return false;
-}
-
-void VideoPlayer::primaryClose() {
-}
-
-int VideoPlayer::slotOpen(const char *videoFile, Type which, int16 width, int16 height) {
- return -1;
-}
-
-void VideoPlayer::slotPlay(int slot, int16 frame) {
-}
-
-void VideoPlayer::slotClose(int slot) {
-}
-
-void VideoPlayer::slotCopyFrame(int slot, byte *dest,
- uint16 left, uint16 top, uint16 width, uint16 height,
- uint16 x, uint16 y, uint16 pitch, int16 transp) {
-
-#if 0
- if ((slot < 0) || (slot >= kVideoSlotCount) || !_videoSlots[slot])
- return;
-
- /*_videoSlots[slot]->getVideo()->copyCurrentFrame(dest,
- left, top, width, height, x, y, pitch, transp);*/
-#endif
-}
-
-void VideoPlayer::slotCopyPalette(int slot, int16 palStart, int16 palEnd) {
-}
-
-void VideoPlayer::slotWaitEndFrame(int slot, bool onlySound) {
-#if 0
- Graphics::CoktelDecoder *video = getVideoBySlot(slot);
-
- if (video) {
- /*
- Graphics::CoktelDecoder &cVideo = *video->getVideo();
-
- if (!onlySound || (cVideo.getFeatures() & Graphics::CoktelDecoder::kFeaturesSound))
- cVideo.waitEndFrame();
- */
- }
-#endif
-}
-
-void VideoPlayer::slotSetDoubleMode(int slot, bool doubleMode) {
-}
-
void VideoPlayer::copyPalette(const Video &video, int16 palStart, int16 palEnd) {
if (!video.decoder->hasPalette())
return;