22#ifndef VIDEO_DXA_DECODER_H
23#define VIDEO_DXA_DECODER_H
25#include "common/rational.h"
26#include "graphics/palette.h"
27#include "graphics/pixelformat.h"
28#include "video/video_decoder.h"
31class SeekableReadStream;
66 uint16
getWidth()
const override {
return _width; }
67 uint16
getHeight()
const override {
return _height; }
69 int getCurFrame()
const override {
return _curFrame; }
72 const byte *
getPalette()
const override { _dirtyPalette =
false;
return _palette.data(); }
75 void setFrameStartPos();
81 void decodeZlib(
byte *data,
int size,
int totalSize);
82 void decode12(
int size);
83 void decode13(
int size);
100 uint32 _decompBufferSize;
103 ScaleMode _scaleMode;
104 uint16 _width, _height;
108 mutable bool _dirtyPalette;
110 uint32 _frameStartOffset;
Definition: rational.h:40
Simple class for handling a palette data.
Definition: palette.h:61
Definition: dxa_decoder.h:44
bool loadStream(Common::SeekableReadStream *stream) override
virtual void readSoundData(Common::SeekableReadStream *stream)
Definition: video_decoder.h:734
Definition: video_decoder.h:53
Graphics::PixelFormat getPixelFormat() const
bool hasDirtyPalette() const
Definition: video_decoder.h:337
virtual uint16 getHeight() const
const byte * getPalette()
virtual const Graphics::Surface * decodeNextFrame()
virtual bool isRewindable() const
uint32 getFrameCount() const
virtual uint16 getWidth() const
Definition: algorithm.h:29