From d9453057abff91a30ff4fb427cadc21b5666c350 Mon Sep 17 00:00:00 2001 From: Thomas Fach-Pedersen Date: Thu, 5 Jun 2014 23:16:50 +0200 Subject: BLADERUNNER: Add View matrix loading --- engines/bladerunner/vqa_decoder.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines/bladerunner/vqa_decoder.h') diff --git a/engines/bladerunner/vqa_decoder.h b/engines/bladerunner/vqa_decoder.h index ca7e067305..132c18ace2 100644 --- a/engines/bladerunner/vqa_decoder.h +++ b/engines/bladerunner/vqa_decoder.h @@ -24,6 +24,7 @@ #define BLADERUNNER_VQA_DECODER_H #include "bladerunner/aud_decoder.h" +#include "bladerunner/view.h" #include "audio/audiostream.h" @@ -51,6 +52,8 @@ public: const Graphics::Surface *decodeVideoFrame(); Audio::SeekableAudioStream *decodeAudioFrame(); + const View &getView() { return _videoTrack->getView(); } + uint16 numFrames() const { return _header.numFrames; } uint8 frameRate() const { return _header.frameRate; } @@ -158,6 +161,7 @@ private: int getCurFrame() const; int getFrameCount() const; const Graphics::Surface *decodeVideoFrame(); + const View &getView() { return _view; } bool readVQFR(Common::SeekableReadStream *s, uint32 size); bool readVPTR(Common::SeekableReadStream *s, uint32 size); @@ -198,6 +202,8 @@ private: int _curFrame; + View _view; + void VPTRWriteBlock(uint16 *frame, unsigned int dstBlock, unsigned int srcBlock, int count, bool alpha = false); bool decodeFrame(uint16 *frame); }; -- cgit v1.2.3