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

Video::AdvancedVMDDecoder Class Reference

A wrapper around the VMD code that implements the VideoDecoder API. More...

#include <coktel_decoder.h>

Inheritance diagram for Video::AdvancedVMDDecoder:
Collaboration diagram for Video::AdvancedVMDDecoder:

List of all members.

Classes

class  VMDAudioTrack
class  VMDVideoTrack

Public Member Functions

 AdvancedVMDDecoder (Audio::Mixer::SoundType soundType=Audio::Mixer::kPlainSoundType)
 ~AdvancedVMDDecoder ()
bool loadStream (Common::SeekableReadStream *stream)
 Load a video from a generic read stream.
void close ()
 Close the active video stream and free any associated resources.
void setSurfaceMemory (void *mem, uint16 width, uint16 height, uint8 bpp)

Private Attributes

VMDDecoder_decoder
VMDVideoTrack_videoTrack
VMDAudioTrack_audioTrack

Detailed Description

A wrapper around the VMD code that implements the VideoDecoder API.

Definition at line 576 of file coktel_decoder.h.


Constructor & Destructor Documentation

Video::AdvancedVMDDecoder::AdvancedVMDDecoder ( Audio::Mixer::SoundType  soundType = Audio::Mixer::kPlainSoundType  ) 
Video::AdvancedVMDDecoder::~AdvancedVMDDecoder (  ) 

Member Function Documentation

void Video::AdvancedVMDDecoder::close (  )  [virtual]

Close the active video stream and free any associated resources.

All subclasses that need to close their own resources should still call the base class' close() function at the start of their function.

Reimplemented from Video::VideoDecoder.

bool Video::AdvancedVMDDecoder::loadStream ( Common::SeekableReadStream stream  )  [virtual]

Load a video from a generic read stream.

The ownership of the stream object transfers to this VideoDecoder instance, which is hence also responsible for eventually deleting it.

Implementations of this function are required to call addTrack() for each track in the video upon success.

Parameters:
stream the stream to load
Returns:
whether loading the stream succeeded

Implements Video::VideoDecoder.

void Video::AdvancedVMDDecoder::setSurfaceMemory ( void *  mem,
uint16  width,
uint16  height,
uint8  bpp 
)

Member Data Documentation

Definition at line 618 of file coktel_decoder.h.


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


Generated on Sat Sep 14 2019 05:05:17 for ResidualVM by doxygen 1.7.1
curved edge   curved edge