22 #ifndef SCI_VIDEO_SEQ_DECODER_H 23 #define SCI_VIDEO_SEQ_DECODER_H 25 #include "common/rational.h" 26 #include "graphics/pixelformat.h" 27 #include "video/video_decoder.h" 30 class SeekableReadStream;
53 ~SEQVideoTrack()
override;
55 uint16 getWidth()
const override {
return SEQ_SCREEN_WIDTH; }
56 uint16 getHeight()
const override {
return SEQ_SCREEN_HEIGHT; }
58 int getCurFrame()
const override {
return _curFrame; }
59 int getFrameCount()
const override {
return _frameCount; }
61 const byte *getPalette()
const override;
62 bool hasDirtyPalette()
const override {
return _dirtyPalette; }
69 SEQ_SCREEN_WIDTH = 320,
70 SEQ_SCREEN_HEIGHT = 200
73 void readPaletteChunk(uint16 chunkSize);
74 bool decodeFrame(byte *rleData,
int rleSize, byte *litData,
int litSize, byte *dest,
int left,
int width,
int height,
int colorKey);
77 int _curFrame, _frameCount;
78 byte _palette[256 * 3];
79 mutable bool _dirtyPalette;
89 #endif // SCI_VIDEO_SEQ_DECODER_H
Definition: video_decoder.h:686
Definition: seq_decoder.h:42
Definition: rational.h:40
Definition: video_decoder.h:53
Definition: algorithm.h:29
Definition: formatinfo.h:28