ScummVM
Kyra::WSAMovie_v1 Class Reference

#include <wsamovie.h>

Inheritance diagram for Kyra::WSAMovie_v1:
Collaboration diagram for Kyra::WSAMovie_v1:

Public Types

enum  WSAFlags {
  WF_OFFSCREEN_DECODE = 0x10, WF_NO_LAST_FRAME = 0x20, WF_NO_FIRST_FRAME = 0x40, WF_FLIPPED = 0x80,
  WF_HAS_PALETTE = 0x100, WF_XOR = 0x200
}
 

Public Member Functions

 WSAMovie_v1 (KyraEngine_v1 *vm)
 
virtual ~WSAMovie_v1 ()
 
int width () const
 
int height () const
 
virtual int open (const char *filename, int offscreen, Palette *palette)
 
virtual void close ()
 
virtual int frames ()
 
virtual void displayFrame (int frameNum, int pageNum, int x, int y, uint16 flags, const uint8 *table1, const uint8 *table2)
 
- Public Member Functions inherited from Kyra::Movie
 Movie (KyraEngine_v1 *vm)
 
virtual ~Movie ()
 
virtual bool opened ()
 
virtual int xAdd () const
 
virtual int yAdd () const
 

Protected Member Functions

virtual void processFrame (int frameNum, uint8 *dst)
 

Protected Attributes

uint16 _currentFrame
 
uint16 _numFrames
 
uint16 _width
 
uint16 _height
 
uint16 _flags
 
uint8_deltaBuffer
 
uint32 _deltaBufferSize
 
uint8_offscreenBuffer
 
uint32_frameOffsTable
 
uint8_frameData
 
- Protected Attributes inherited from Kyra::Movie
KyraEngine_v1_vm
 
Screen_screen
 
bool _opened
 
int _x
 
int _y
 
int _drawPage
 

Detailed Description

Definition at line 61 of file wsamovie.h.

Member Enumeration Documentation

◆ WSAFlags

Enumerator
WF_OFFSCREEN_DECODE 
WF_NO_LAST_FRAME 
WF_NO_FIRST_FRAME 
WF_FLIPPED 
WF_HAS_PALETTE 
WF_XOR 

Definition at line 76 of file wsamovie.h.

Constructor & Destructor Documentation

◆ WSAMovie_v1()

Kyra::WSAMovie_v1::WSAMovie_v1 ( KyraEngine_v1 vm)

Definition at line 30 of file wsamovie.cpp.

◆ ~WSAMovie_v1()

Kyra::WSAMovie_v1::~WSAMovie_v1 ( )
virtual

Definition at line 34 of file wsamovie.cpp.

Member Function Documentation

◆ close()

void Kyra::WSAMovie_v1::close ( )
virtual

Implements Kyra::Movie.

Reimplemented in Kyra::WSAMovieAmiga.

Definition at line 126 of file wsamovie.cpp.

◆ displayFrame()

void Kyra::WSAMovie_v1::displayFrame ( int  frameNum,
int  pageNum,
int  x,
int  y,
uint16  flags,
const uint8 table1,
const uint8 table2 
)
virtual

Implements Kyra::Movie.

Reimplemented in Kyra::WSAMovie_v2, and Kyra::WSAMovieAmiga.

Definition at line 136 of file wsamovie.cpp.

◆ frames()

virtual int Kyra::WSAMovie_v1::frames ( )
inlinevirtual

Implements Kyra::Movie.

Definition at line 72 of file wsamovie.h.

◆ height()

int Kyra::WSAMovie_v1::height ( ) const
inlinevirtual

Implements Kyra::Movie.

Definition at line 67 of file wsamovie.h.

◆ open()

int Kyra::WSAMovie_v1::open ( const char *  filename,
int  offscreen,
Palette palette 
)
virtual

Implements Kyra::Movie.

Reimplemented in Kyra::WSAMovie_v2, and Kyra::WSAMovieAmiga.

Definition at line 38 of file wsamovie.cpp.

◆ processFrame()

void Kyra::WSAMovie_v1::processFrame ( int  frameNum,
uint8 dst 
)
protectedvirtual

Reimplemented in Kyra::WSAMovieAmiga.

Definition at line 211 of file wsamovie.cpp.

◆ width()

int Kyra::WSAMovie_v1::width ( ) const
inlinevirtual

Implements Kyra::Movie.

Definition at line 66 of file wsamovie.h.

Member Data Documentation

◆ _currentFrame

uint16 Kyra::WSAMovie_v1::_currentFrame
protected

Definition at line 88 of file wsamovie.h.

◆ _deltaBuffer

uint8* Kyra::WSAMovie_v1::_deltaBuffer
protected

Definition at line 93 of file wsamovie.h.

◆ _deltaBufferSize

uint32 Kyra::WSAMovie_v1::_deltaBufferSize
protected

Definition at line 94 of file wsamovie.h.

◆ _flags

uint16 Kyra::WSAMovie_v1::_flags
protected

Definition at line 92 of file wsamovie.h.

◆ _frameData

uint8* Kyra::WSAMovie_v1::_frameData
protected

Definition at line 97 of file wsamovie.h.

◆ _frameOffsTable

uint32* Kyra::WSAMovie_v1::_frameOffsTable
protected

Definition at line 96 of file wsamovie.h.

◆ _height

uint16 Kyra::WSAMovie_v1::_height
protected

Definition at line 91 of file wsamovie.h.

◆ _numFrames

uint16 Kyra::WSAMovie_v1::_numFrames
protected

Definition at line 89 of file wsamovie.h.

◆ _offscreenBuffer

uint8* Kyra::WSAMovie_v1::_offscreenBuffer
protected

Definition at line 95 of file wsamovie.h.

◆ _width

uint16 Kyra::WSAMovie_v1::_width
protected

Definition at line 90 of file wsamovie.h.


The documentation for this class was generated from the following files: