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

Video::FlicDecoder::FlicVideoTrack Class Reference

#include <flic_decoder.h>

Inheritance diagram for Video::FlicDecoder::FlicVideoTrack:
Collaboration diagram for Video::FlicDecoder::FlicVideoTrack:

List of all members.

Public Member Functions

 FlicVideoTrack (Common::SeekableReadStream *stream, uint16 frameCount, uint16 width, uint16 height, bool skipHeader=false)
 ~FlicVideoTrack ()
virtual void readHeader ()
bool endOfTrack () const
 Return if the track has finished.
virtual bool isRewindable () const
 Return if the track is rewindable.
virtual bool rewind ()
 Rewind the video to the beginning.
uint16 getWidth () const
 Get the width of this track.
uint16 getHeight () const
 Get the height of this track.
Graphics::PixelFormat getPixelFormat () const
 Get the pixel format of this track.
int getCurFrame () const
 Get the current frame of this track.
int getFrameCount () const
 Get the frame count of this track.
uint32 getNextFrameStartTime () const
 Get the start time of the next frame in milliseconds since the start of the video.
virtual const Graphics::SurfacedecodeNextFrame ()
 Decode the next frame.
virtual void handleFrame ()
const bytegetPalette () const
 Get the palette currently in use by this track.
bool hasDirtyPalette () const
 Does the palette currently in use by this track need to be updated?
const Common::List
< Common::Rect > * 
getDirtyRects () const
void clearDirtyRects ()
void copyDirtyRectsToBuffer (uint8 *dst, uint pitch)

Protected Member Functions

void copyFrame (uint8 *data)
void decodeByteRun (uint8 *data)
void decodeDeltaFLC (uint8 *data)
void unpackPalette (uint8 *mem)

Protected Attributes

Common::SeekableReadStream_fileStream
Graphics::Surface_surface
int _curFrame
bool _atRingFrame
uint32 _offsetFrame1
uint32 _offsetFrame2
byte_palette
bool _dirtyPalette
uint32 _frameCount
uint32 _frameDelay
uint32 _startFrameDelay
uint32 _nextFrameStartTime
Common::List< Common::Rect_dirtyRects

Detailed Description

Definition at line 61 of file flic_decoder.h.


Constructor & Destructor Documentation

Video::FlicDecoder::FlicVideoTrack::FlicVideoTrack ( Common::SeekableReadStream stream,
uint16  frameCount,
uint16  width,
uint16  height,
bool  skipHeader = false 
)

Definition at line 88 of file flic_decoder.cpp.

Video::FlicDecoder::FlicVideoTrack::~FlicVideoTrack (  ) 

Definition at line 106 of file flic_decoder.cpp.


Member Function Documentation

void Video::FlicDecoder::FlicVideoTrack::clearDirtyRects (  )  [inline]

Definition at line 84 of file flic_decoder.h.

void Video::FlicDecoder::FlicVideoTrack::copyDirtyRectsToBuffer ( uint8 dst,
uint  pitch 
)

Definition at line 246 of file flic_decoder.cpp.

void Video::FlicDecoder::FlicVideoTrack::copyFrame ( uint8 data  )  [protected]

Definition at line 257 of file flic_decoder.cpp.

void Video::FlicDecoder::FlicVideoTrack::decodeByteRun ( uint8 data  )  [protected]

Definition at line 265 of file flic_decoder.cpp.

void Video::FlicDecoder::FlicVideoTrack::decodeDeltaFLC ( uint8 data  )  [protected]

Definition at line 293 of file flic_decoder.cpp.

const Graphics::Surface * Video::FlicDecoder::FlicVideoTrack::decodeNextFrame (  )  [virtual]

Decode the next frame.

Implements Video::VideoDecoder::VideoTrack.

Definition at line 163 of file flic_decoder.cpp.

bool Video::FlicDecoder::FlicVideoTrack::endOfTrack (  )  const [virtual]

Return if the track has finished.

Reimplemented from Video::VideoDecoder::VideoTrack.

Definition at line 128 of file flic_decoder.cpp.

int Video::FlicDecoder::FlicVideoTrack::getCurFrame (  )  const [inline, virtual]

Get the current frame of this track.

See also:
VideoDecoder::getCurFrame()

Implements Video::VideoDecoder::VideoTrack.

Definition at line 75 of file flic_decoder.h.

const Common::List<Common::Rect>* Video::FlicDecoder::FlicVideoTrack::getDirtyRects (  )  const [inline]

Definition at line 83 of file flic_decoder.h.

int Video::FlicDecoder::FlicVideoTrack::getFrameCount (  )  const [inline, virtual]

Get the frame count of this track.

Note:
If the frame count is unknown, return 0 (which is also the default implementation of the function). However, one must also implement endOfTrack() in that case.

Reimplemented from Video::VideoDecoder::VideoTrack.

Definition at line 76 of file flic_decoder.h.

uint16 Video::FlicDecoder::FlicVideoTrack::getHeight (  )  const [virtual]

Get the height of this track.

Implements Video::VideoDecoder::VideoTrack.

Definition at line 148 of file flic_decoder.cpp.

uint32 Video::FlicDecoder::FlicVideoTrack::getNextFrameStartTime (  )  const [inline, virtual]

Get the start time of the next frame in milliseconds since the start of the video.

Implements Video::VideoDecoder::VideoTrack.

Definition at line 77 of file flic_decoder.h.

const byte* Video::FlicDecoder::FlicVideoTrack::getPalette (  )  const [inline, virtual]

Get the palette currently in use by this track.

Reimplemented from Video::VideoDecoder::VideoTrack.

Definition at line 80 of file flic_decoder.h.

Graphics::PixelFormat Video::FlicDecoder::FlicVideoTrack::getPixelFormat (  )  const [virtual]

Get the pixel format of this track.

Implements Video::VideoDecoder::VideoTrack.

Definition at line 152 of file flic_decoder.cpp.

uint16 Video::FlicDecoder::FlicVideoTrack::getWidth (  )  const [virtual]

Get the width of this track.

Implements Video::VideoDecoder::VideoTrack.

Definition at line 144 of file flic_decoder.cpp.

void Video::FlicDecoder::FlicVideoTrack::handleFrame (  )  [virtual]

Definition at line 189 of file flic_decoder.cpp.

bool Video::FlicDecoder::FlicVideoTrack::hasDirtyPalette (  )  const [inline, virtual]

Does the palette currently in use by this track need to be updated?

Reimplemented from Video::VideoDecoder::VideoTrack.

Definition at line 81 of file flic_decoder.h.

virtual bool Video::FlicDecoder::FlicVideoTrack::isRewindable (  )  const [inline, virtual]

Return if the track is rewindable.

If a video is seekable, it does not need to implement this for it to also be rewindable.

Reimplemented from Video::VideoDecoder::Track.

Definition at line 69 of file flic_decoder.h.

void Video::FlicDecoder::FlicVideoTrack::readHeader (  )  [virtual]

Definition at line 114 of file flic_decoder.cpp.

bool Video::FlicDecoder::FlicVideoTrack::rewind (  )  [virtual]

Rewind the video to the beginning.

If a video is seekable, it does not need to implement this for it to also be rewindable.

Returns:
true on success, false otherwise.

Reimplemented from Video::VideoDecoder::Track.

Definition at line 132 of file flic_decoder.cpp.

void Video::FlicDecoder::FlicVideoTrack::unpackPalette ( uint8 mem  )  [protected]

Definition at line 348 of file flic_decoder.cpp.


Member Data Documentation

Definition at line 92 of file flic_decoder.h.

Definition at line 91 of file flic_decoder.h.

Definition at line 97 of file flic_decoder.h.

Definition at line 96 of file flic_decoder.h.


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


Generated on Sat Sep 21 2019 05:04:42 for ResidualVM by doxygen 1.7.1
curved edge   curved edge