aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/fmv/theora_decoder.h
diff options
context:
space:
mode:
authorMatthew Hoops2011-05-23 10:03:59 -0400
committerMatthew Hoops2011-05-23 10:03:59 -0400
commit45f9720f7c9f9b2b189ee74c2b167794a8a613f8 (patch)
treefc0239534aacae8693a8177c2684a1b2ea59e611 /engines/sword25/fmv/theora_decoder.h
parent252e7a1ec323fc6cccb91dbdcae92db7efd851a6 (diff)
downloadscummvm-rg350-45f9720f7c9f9b2b189ee74c2b167794a8a613f8.tar.gz
scummvm-rg350-45f9720f7c9f9b2b189ee74c2b167794a8a613f8.tar.bz2
scummvm-rg350-45f9720f7c9f9b2b189ee74c2b167794a8a613f8.zip
SWORD25: Properly use Theora picture offset/dimensions
Diffstat (limited to 'engines/sword25/fmv/theora_decoder.h')
-rw-r--r--engines/sword25/fmv/theora_decoder.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/sword25/fmv/theora_decoder.h b/engines/sword25/fmv/theora_decoder.h
index 10a05647c3..e8cc5ab8b9 100644
--- a/engines/sword25/fmv/theora_decoder.h
+++ b/engines/sword25/fmv/theora_decoder.h
@@ -70,8 +70,8 @@ public:
const Graphics::Surface *decodeNextFrame();
bool isVideoLoaded() const { return _fileStream != 0; }
- uint16 getWidth() const { return _surface->w; }
- uint16 getHeight() const { return _surface->h; }
+ uint16 getWidth() const { return _displaySurface.w; }
+ uint16 getHeight() const { return _displaySurface.h; }
uint32 getFrameCount() const {
// It is not possible to get frame count easily
@@ -80,7 +80,7 @@ public:
return 0;
}
- Graphics::PixelFormat getPixelFormat() const { return _surface->format; }
+ Graphics::PixelFormat getPixelFormat() const { return _displaySurface.format; }
uint32 getElapsedTime() const;
uint32 getTimeToNextFrame() const;
@@ -96,7 +96,8 @@ private:
void translateYUVtoRGBA(th_ycbcr_buffer &YUVBuffer);
Common::SeekableReadStream *_fileStream;
- Graphics::Surface *_surface;
+ Graphics::Surface _surface;
+ Graphics::Surface _displaySurface;
Common::Rational _frameRate;
double _nextFrameStartTime;
bool _endOfVideo;