diff options
Diffstat (limited to 'graphics/video')
-rw-r--r-- | graphics/video/video_decoder.h | 16 |
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 |