ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <smush.h>

Inheritance diagram for Grim::SmushPlayer:
Collaboration diagram for Grim::SmushPlayer:

List of all members.

Public Member Functions

 SmushPlayer (bool demo)
void restore (SaveGame *state) override
 Restores subclass related state of the video to a savegame The base implementation of this does nothing, but it can be overridden by subclasses.

Private Member Functions

bool loadFile (const Common::String &filename) override
 Loads a file for playback, any additional setup is not done here, but in the play-function.
void handleFrame () override
 Frame-handling function.
void postHandleFrame () override
 Frame-handling function.
void init () override
 Initialization of buffers This function is called by the default-implementation of play, and is expected to get the necessary datastructures set up for playback, as well as initializing the callback.

Private Attributes

bool _demo
SmushDecoder_smushDecoder

Detailed Description

Definition at line 32 of file smush.h.


Constructor & Destructor Documentation

Grim::SmushPlayer::SmushPlayer ( bool  demo  ) 

Definition at line 35 of file smush.cpp.


Member Function Documentation

void Grim::SmushPlayer::handleFrame (  )  [override, private, virtual]

Frame-handling function.

Perform any codec-specific per-frame operations before the decoder decodes the next frame.

See also:
prepareFrame
clearUpdateNeeded
isUpdateNeeded

Reimplemented from Grim::MoviePlayer.

Definition at line 58 of file smush.cpp.

void Grim::SmushPlayer::init (  )  [override, private, virtual]

Initialization of buffers This function is called by the default-implementation of play, and is expected to get the necessary datastructures set up for playback, as well as initializing the callback.

See also:
deinit

Reimplemented from Grim::MoviePlayer.

Definition at line 48 of file smush.cpp.

bool Grim::SmushPlayer::loadFile ( const Common::String filename  )  [override, private, virtual]

Loads a file for playback, any additional setup is not done here, but in the play-function.

This function is supposed to handle any specifics w.r.t. files vs containers (i.e. load from LAB vs load from file).

See also:
play
Parameters:
filename The filename to be handled.

Reimplemented from Grim::MoviePlayer.

Definition at line 41 of file smush.cpp.

void Grim::SmushPlayer::postHandleFrame (  )  [override, private, virtual]

Frame-handling function.

Perform any codec-specific per-frame operations after prepareFrame has been run, this function is called whenever prepareFrame returns true.

See also:
prepareFrame
clearUpdateNeeded
isUpdateNeeded

Reimplemented from Grim::MoviePlayer.

Definition at line 74 of file smush.cpp.

void Grim::SmushPlayer::restore ( SaveGame state  )  [override, virtual]

Restores subclass related state of the video to a savegame The base implementation of this does nothing, but it can be overridden by subclasses.

Parameters:
state The state to restore from

Reimplemented from Grim::MoviePlayer.

Definition at line 81 of file smush.cpp.


Member Data Documentation

bool Grim::SmushPlayer::_demo [private]

Definition at line 43 of file smush.h.

Definition at line 44 of file smush.h.


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


Generated on Sat May 18 2019 05:06:28 for ResidualVM by doxygen 1.7.1
curved edge   curved edge