aboutsummaryrefslogtreecommitdiff
path: root/video/avi_decoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'video/avi_decoder.h')
-rw-r--r--video/avi_decoder.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/video/avi_decoder.h b/video/avi_decoder.h
index 4bba07e98f..cc5c2c4d42 100644
--- a/video/avi_decoder.h
+++ b/video/avi_decoder.h
@@ -210,6 +210,25 @@ protected:
bool isRewindable() const { return true; }
bool rewind();
+ /**
+ * Set the video track to play in reverse or forward.
+ *
+ * By default, a VideoTrack must decode forward.
+ *
+ * @param reverse true for reverse, false for forward
+ * @return true for success, false for failure
+ */
+ virtual bool setReverse(bool reverse);
+
+ /**
+ * Is the video track set to play in reverse?
+ */
+ virtual bool isReversed() const { return _reversed; }
+
+ /**
+ * Returns true if at the end of the video track
+ */
+ virtual bool endOfTrack() const;
protected:
Common::Rational getFrameRate() const { return Common::Rational(_vidsHeader.rate, _vidsHeader.scale); }
@@ -220,6 +239,7 @@ protected:
byte *_initialPalette;
mutable bool _dirtyPalette;
int _frameCount, _curFrame;
+ bool _reversed;
Image::Codec *_videoCodec;
const Graphics::Surface *_lastFrame;