diff options
author | Filippos Karapetis | 2009-05-20 10:43:18 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-05-20 10:43:18 +0000 |
commit | 6ec870303ff3532873f652fb1a565d72b0079645 (patch) | |
tree | 2acf20a4ae5d4deac4be47e3518c20409089f8bb /graphics/video/video_player.h | |
parent | caf9bf0941babc523be7c37bb10bfbb2213f5c0b (diff) | |
download | scummvm-rg350-6ec870303ff3532873f652fb1a565d72b0079645.tar.gz scummvm-rg350-6ec870303ff3532873f652fb1a565d72b0079645.tar.bz2 scummvm-rg350-6ec870303ff3532873f652fb1a565d72b0079645.zip |
- Reverted commit #40730, as it introduced rounding errors
- Properly fixed the FLIC player
- The sound chunk tag of DXA files is now read by the DXADecoder's loadFile() method
svn-id: r40736
Diffstat (limited to 'graphics/video/video_player.h')
-rw-r--r-- | graphics/video/video_player.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/graphics/video/video_player.h b/graphics/video/video_player.h index ef878aa61b..eb02032b50 100644 --- a/graphics/video/video_player.h +++ b/graphics/video/video_player.h @@ -75,16 +75,16 @@ public: virtual int32 getFrameRate(); /** - * Returns the time to wait for each frame in ms - * @return the time to wait for each frame in ms + * Returns the time to wait for each frame in 1/100 ms (to avoid rounding errors) + * @return the time to wait for each frame in 1/100 ms (to avoid rounding errors) */ virtual int32 getFrameDelay(); /** - * Returns the current A/V lag in ms + * Returns the current A/V lag in 1/100 ms (to avoid rounding errors) * If > 0, audio lags behind * If < 0, video lags behind - * @return the current A/V lag in ms + * @return the current A/V lag in 1/100 ms (to avoid rounding errors) */ virtual int32 getAudioLag(); @@ -158,20 +158,14 @@ public: */ virtual bool decodeNextFrame() = 0; - /** - * Used to read the sound header from DXA files. It's not pretty, - * but it's slightly better than exposing _fileStream - */ - uint32 readSoundHeader() { return _fileStream->readUint32BE(); } - protected: struct { uint32 width; uint32 height; uint32 frameCount; int32 frameRate; - int32 frameDelay; // ms - uint32 frameOffs; + int32 frameDelay; // 1/100 ms (to avoid rounding errors) + uint32 firstframeOffset; uint32 currentFrame; uint32 startTime; } _videoInfo; |