aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/vqa_decoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/bladerunner/vqa_decoder.h')
-rw-r--r--engines/bladerunner/vqa_decoder.h6
1 files changed, 6 insertions, 0 deletions
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);
};