aboutsummaryrefslogtreecommitdiff
path: root/graphics/video
diff options
context:
space:
mode:
authorMatthew Hoops2010-05-18 17:36:34 +0000
committerMatthew Hoops2010-05-18 17:36:34 +0000
commit759e4923d07d2ac3eb23422aaa2a05671db4ce1c (patch)
treedd10fb528cea3f0480d2459e2c16b938f1516d3e /graphics/video
parent83f31e4e44596c865132f9d92b54b166484ea89d (diff)
downloadscummvm-rg350-759e4923d07d2ac3eb23422aaa2a05671db4ce1c.tar.gz
scummvm-rg350-759e4923d07d2ac3eb23422aaa2a05671db4ce1c.tar.bz2
scummvm-rg350-759e4923d07d2ac3eb23422aaa2a05671db4ce1c.zip
Add a new class 'RewindableVideoDecoder' that allows a video to be rewound and have QTPlayer inherit from that.
svn-id: r49084
Diffstat (limited to 'graphics/video')
-rw-r--r--graphics/video/video_decoder.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/graphics/video/video_decoder.h b/graphics/video/video_decoder.h
index 62aa496148..2ab8306d76 100644
--- a/graphics/video/video_decoder.h
+++ b/graphics/video/video_decoder.h
@@ -160,11 +160,8 @@ protected:
/**
* A VideoDecoder wrapper that implements getTimeToNextFrame() based on getFrameRate().
*/
-class FixedRateVideoDecoder : public VideoDecoder {
+class FixedRateVideoDecoder : public virtual VideoDecoder {
public:
- FixedRateVideoDecoder() {}
- virtual ~FixedRateVideoDecoder() {}
-
uint32 getTimeToNextFrame() const;
protected:
@@ -179,6 +176,17 @@ private:
uint32 getFrameBeginTime(uint32 frame) const;
};
+/**
+ * A VideoDecoder that can rewind back to the beginning.
+ */
+class RewindableVideoDecoder : public virtual VideoDecoder {
+public:
+ /**
+ * Rewind to the beginning of the video.
+ */
+ virtual void rewind() = 0;
+};
+
} // End of namespace Graphics
#endif