22 #ifndef KYRA_WSAMOVIE_H 23 #define KYRA_WSAMOVIE_H 25 #include "kyra/kyra_v1.h" 33 Movie(
KyraEngine_v1 *vm) : _vm(vm), _screen(vm->screen()), _opened(
false), _x(-1), _y(-1), _drawPage(-1) {}
36 virtual bool opened() {
return _opened; }
38 virtual int xAdd()
const {
return 0; }
39 virtual int yAdd()
const {
return 0; }
41 virtual int width()
const = 0;
42 virtual int height()
const = 0;
44 virtual int open(
const char *filename,
int offscreen,
Palette *palette) = 0;
45 virtual void close() = 0;
47 virtual int frames() = 0;
49 virtual void displayFrame(
int frameNum,
int pageNum,
int x,
int y, uint16 flags,
const uint8 *table1,
const uint8 *table2) = 0;
65 int width()
const override {
return _width; }
66 int height()
const override {
return _height; }
68 int open(
const char *filename,
int offscreen,
Palette *palette)
override;
69 void close()
override;
71 int frames()
override {
return _opened ? _numFrames : -1; }
73 void displayFrame(
int frameNum,
int pageNum,
int x,
int y, uint16 flags,
const uint8 *table1,
const uint8 *table2)
override;
76 WF_OFFSCREEN_DECODE = 0x10,
77 WF_NO_LAST_FRAME = 0x20,
78 WF_NO_FIRST_FRAME = 0x40,
80 WF_HAS_PALETTE = 0x100,
85 virtual void processFrame(
int frameNum, uint8 *dst);
93 uint32 _deltaBufferSize;
94 uint8 *_offscreenBuffer;
95 uint32 *_frameOffsTable;
102 int open(
const char *filename,
int offscreen,
Palette *palette)
override;
103 void close()
override;
105 void displayFrame(
int frameNum,
int pageNum,
int x,
int y, uint16 flags,
const uint8 *table1,
const uint8 *table2)
override;
107 void processFrame(
int frameNum, uint8 *dst)
override;
116 int open(
const char *filename,
int unk1,
Palette *palette)
override;
117 void displayFrame(
int frameNum,
int pageNum,
int x,
int y, uint16 flags,
const uint8 *table1,
const uint8 *table2)
override {
118 WSAMovie_v1::displayFrame(frameNum, pageNum, x + _xAdd, y + _yAdd, flags, table1, table2);
121 int xAdd()
const override {
return _xAdd; }
122 int yAdd()
const override {
return _yAdd; }
124 void setWidth(
int w) { _width = w; }
125 void setHeight(
int h) { _height = h; }
Definition: wsamovie.h:60
Definition: kyra_v1.h:126
Definition: wsamovie.h:99
Definition: wsamovie.h:31
Definition: detection.h:27
Definition: wsamovie.h:112
Definition: atari-screen.h:44