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

Video::AVIDecoder::AVIVideoTrack Class Reference

#include <avi_decoder.h>

Inheritance diagram for Video::AVIDecoder::AVIVideoTrack:
Collaboration diagram for Video::AVIDecoder::AVIVideoTrack:

List of all members.

Public Member Functions

 AVIVideoTrack (int frameCount, const AVIStreamHeader &streamHeader, const BitmapInfoHeader &bitmapInfoHeader, byte *initialPalette=0)
 ~AVIVideoTrack ()
void decodeFrame (Common::SeekableReadStream *stream)
void forceTrackEnd ()
uint16 getWidth () const
 Get the width of this track.
uint16 getHeight () const
 Get the height of this track.
uint16 getBitCount () const
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.
Common::StringgetName ()
const Graphics::SurfacedecodeNextFrame ()
 Decode the next frame.
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?
void setCurFrame (int frame)
void loadPaletteFromChunk (Common::SeekableReadStream *chunk)
void useInitialPalette ()
bool canDither () const
 Can the video track dither?
void setDither (const byte *palette)
 Activate dithering mode with a palette.
bool isTruemotion1 () const
void forceDimensions (uint16 width, uint16 height)
bool isRewindable () const
 Return if the track is rewindable.
bool rewind ()
 Rewind the video to the beginning.
virtual bool setReverse (bool reverse)
 Set the video track to play in reverse or forward.
virtual bool isReversed () const
 Is the video track set to play in reverse?
virtual bool endOfTrack () const
 Returns true if at the end of the video track.
Common::Rational getFrameRate () const
 Get track frame rate.
void setFrameRate (const Common::Rational &r)
 Force sets a new frame rate.

Private Member Functions

Image::CodeccreateCodec ()

Private Attributes

AVIStreamHeader _vidsHeader
BitmapInfoHeader _bmInfo
byte _palette [3 *256]
byte_initialPalette
bool _dirtyPalette
int _frameCount
int _curFrame
bool _reversed
Image::Codec_videoCodec
const Graphics::Surface_lastFrame

Detailed Description

Definition at line 202 of file avi_decoder.h.


Constructor & Destructor Documentation

Video::AVIDecoder::AVIVideoTrack::AVIVideoTrack ( int  frameCount,
const AVIStreamHeader streamHeader,
const BitmapInfoHeader bitmapInfoHeader,
byte initialPalette = 0 
)

Definition at line 902 of file avi_decoder.cpp.

Video::AVIDecoder::AVIVideoTrack::~AVIVideoTrack (  ) 

Definition at line 912 of file avi_decoder.cpp.


Member Function Documentation

bool Video::AVIDecoder::AVIVideoTrack::canDither (  )  const [virtual]

Can the video track dither?

Reimplemented from Video::VideoDecoder::VideoTrack.

Definition at line 1032 of file avi_decoder.cpp.

Image::Codec * Video::AVIDecoder::AVIVideoTrack::createCodec (  )  [private]

Definition at line 992 of file avi_decoder.cpp.

void Video::AVIDecoder::AVIVideoTrack::decodeFrame ( Common::SeekableReadStream stream  ) 

Definition at line 917 of file avi_decoder.cpp.

const Graphics::Surface* Video::AVIDecoder::AVIVideoTrack::decodeNextFrame (  )  [inline, virtual]

Decode the next frame.

Implements Video::VideoDecoder::VideoTrack.

Definition at line 217 of file avi_decoder.h.

bool Video::AVIDecoder::AVIVideoTrack::endOfTrack (  )  const [virtual]

Returns true if at the end of the video track.

Reimplemented from Video::VideoDecoder::VideoTrack.

Definition at line 1025 of file avi_decoder.cpp.

void Video::AVIDecoder::AVIVideoTrack::forceDimensions ( uint16  width,
uint16  height 
)

Definition at line 976 of file avi_decoder.cpp.

void Video::AVIDecoder::AVIVideoTrack::forceTrackEnd (  ) 

Definition at line 996 of file avi_decoder.cpp.

uint16 Video::AVIDecoder::AVIVideoTrack::getBitCount (  )  const [inline]

Definition at line 212 of file avi_decoder.h.

int Video::AVIDecoder::AVIVideoTrack::getCurFrame (  )  const [inline, virtual]

Get the current frame of this track.

See also:
VideoDecoder::getCurFrame()

Implements Video::VideoDecoder::VideoTrack.

Definition at line 214 of file avi_decoder.h.

int Video::AVIDecoder::AVIVideoTrack::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 215 of file avi_decoder.h.

Common::Rational Video::AVIDecoder::AVIVideoTrack::getFrameRate (  )  const [inline, virtual]

Get track frame rate.

Implements Video::VideoDecoder::FixedRateVideoTrack.

Definition at line 256 of file avi_decoder.h.

uint16 Video::AVIDecoder::AVIVideoTrack::getHeight (  )  const [inline, virtual]

Get the height of this track.

Implements Video::VideoDecoder::VideoTrack.

Definition at line 211 of file avi_decoder.h.

Common::String& Video::AVIDecoder::AVIVideoTrack::getName (  )  [inline]

Definition at line 216 of file avi_decoder.h.

const byte * Video::AVIDecoder::AVIVideoTrack::getPalette (  )  const [virtual]

Get the palette currently in use by this track.

Reimplemented from Video::VideoDecoder::VideoTrack.

Definition at line 1000 of file avi_decoder.cpp.

Graphics::PixelFormat Video::AVIDecoder::AVIVideoTrack::getPixelFormat (  )  const [virtual]

Get the pixel format of this track.

Implements Video::VideoDecoder::VideoTrack.

Definition at line 935 of file avi_decoder.cpp.

uint16 Video::AVIDecoder::AVIVideoTrack::getWidth (  )  const [inline, virtual]

Get the width of this track.

Implements Video::VideoDecoder::VideoTrack.

Definition at line 210 of file avi_decoder.h.

bool Video::AVIDecoder::AVIVideoTrack::hasDirtyPalette (  )  const [virtual]

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

Reimplemented from Video::VideoDecoder::VideoTrack.

Definition at line 1008 of file avi_decoder.cpp.

virtual bool Video::AVIDecoder::AVIVideoTrack::isReversed (  )  const [inline, virtual]

Is the video track set to play in reverse?

Reimplemented from Video::VideoDecoder::VideoTrack.

Definition at line 246 of file avi_decoder.h.

bool Video::AVIDecoder::AVIVideoTrack::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 230 of file avi_decoder.h.

bool Video::AVIDecoder::AVIVideoTrack::isTruemotion1 (  )  const

Definition at line 972 of file avi_decoder.cpp.

void Video::AVIDecoder::AVIVideoTrack::loadPaletteFromChunk ( Common::SeekableReadStream chunk  ) 

Definition at line 942 of file avi_decoder.cpp.

bool Video::AVIDecoder::AVIVideoTrack::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 981 of file avi_decoder.cpp.

void Video::AVIDecoder::AVIVideoTrack::setCurFrame ( int  frame  )  [inline]

Definition at line 221 of file avi_decoder.h.

void Video::AVIDecoder::AVIVideoTrack::setDither ( const byte palette  )  [virtual]

Activate dithering mode with a palette.

Reimplemented from Video::VideoDecoder::VideoTrack.

Definition at line 1036 of file avi_decoder.cpp.

void Video::AVIDecoder::AVIVideoTrack::setFrameRate ( const Common::Rational r  )  [inline]

Force sets a new frame rate.

Definition at line 261 of file avi_decoder.h.

bool Video::AVIDecoder::AVIVideoTrack::setReverse ( bool  reverse  )  [virtual]

Set the video track to play in reverse or forward.

By default, a VideoTrack must decode forward.

Parameters:
reverse true for reverse, false for forward
Returns:
true for success, false for failure

Reimplemented from Video::VideoDecoder::VideoTrack.

Definition at line 1015 of file avi_decoder.cpp.

void Video::AVIDecoder::AVIVideoTrack::useInitialPalette (  ) 

Definition at line 963 of file avi_decoder.cpp.


Member Data Documentation

Definition at line 271 of file avi_decoder.h.

Definition at line 270 of file avi_decoder.h.

Definition at line 271 of file avi_decoder.h.

Definition at line 268 of file avi_decoder.h.

Definition at line 272 of file avi_decoder.h.


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


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