#include <video_decoder.h>
Public Member Functions | |
TrackType | getTrackType () const |
virtual bool | endOfTrack () const |
virtual uint16 | getWidth () const =0 |
virtual uint16 | getHeight () const =0 |
virtual Graphics::PixelFormat | getPixelFormat () const =0 |
virtual bool | setOutputPixelFormat (const Graphics::PixelFormat &format) |
virtual void | setCodecAccuracy (Image::CodecAccuracy accuracy) |
virtual int | getCurFrame () const =0 |
virtual int | getFrameCount () const |
virtual uint32 | getNextFrameStartTime () const =0 |
virtual const Graphics::Surface * | decodeNextFrame ()=0 |
virtual const byte * | getPalette () const |
virtual bool | hasDirtyPalette () const |
virtual Audio::Timestamp | getFrameTime (uint frame) const |
virtual bool | setReverse (bool reverse) |
virtual bool | isReversed () const |
virtual bool | canDither () const |
virtual void | setDither (const byte *palette) |
Public Member Functions inherited from Video::VideoDecoder::Track | |
virtual bool | isRewindable () const |
virtual bool | rewind () |
virtual bool | isSeekable () const |
virtual bool | seek (const Audio::Timestamp &time) |
void | pause (bool shouldPause) |
bool | isPaused () const |
virtual Audio::Timestamp | getDuration () const |
Additional Inherited Members | |
Public Types inherited from Video::VideoDecoder::Track | |
enum | TrackType { kTrackTypeNone, kTrackTypeVideo, kTrackTypeAudio } |
Protected Member Functions inherited from Video::VideoDecoder::Track | |
virtual void | pauseIntern (bool shouldPause) |
An abstract representation of a video track.
|
inlinevirtual |
Get the type of track.
Implements Video::VideoDecoder::Track.
|
virtual |
Return if the track has finished.
Implements Video::VideoDecoder::Track.
Reimplemented in Video::AVIDecoder::AVIVideoTrack, and Video::FlicDecoder::FlicVideoTrack.
|
pure virtual |
Get the width of this track
Implemented in Video::AVIDecoder::AVIVideoTrack, and Video::FlicDecoder::FlicVideoTrack.
|
pure virtual |
Get the height of this track
Implemented in Video::AVIDecoder::AVIVideoTrack, and Video::FlicDecoder::FlicVideoTrack.
|
pure virtual |
Get the pixel format of this track
Implemented in Video::AVIDecoder::AVIVideoTrack, and Video::FlicDecoder::FlicVideoTrack.
|
inlinevirtual |
Set the default high color format for videos that convert from YUV.
Reimplemented in Video::AVIDecoder::AVIVideoTrack.
|
inlinevirtual |
Set the image codec accuracy
Reimplemented in Video::AVIDecoder::AVIVideoTrack.
|
pure virtual |
Get the current frame of this track
Implemented in Video::AVIDecoder::AVIVideoTrack, and Video::FlicDecoder::FlicVideoTrack.
|
inlinevirtual |
Get the frame count of this track
Reimplemented in Video::AVIDecoder::AVIVideoTrack, and Video::FlicDecoder::FlicVideoTrack.
|
pure virtual |
Get the start time of the next frame in milliseconds since the start of the video
Implemented in Video::VideoDecoder::FixedRateVideoTrack, and Video::FlicDecoder::FlicVideoTrack.
|
pure virtual |
Decode the next frame
Implemented in Video::AVIDecoder::AVIVideoTrack, Video::FlicDecoder::FlicVideoTrack, and Petka::FlicDecoder::FlicVideoTrack.
|
inlinevirtual |
Get the palette currently in use by this track
Reimplemented in Video::AVIDecoder::AVIVideoTrack, and Video::FlicDecoder::FlicVideoTrack.
|
inlinevirtual |
Does the palette currently in use by this track need to be updated?
Reimplemented in Video::AVIDecoder::AVIVideoTrack, and Video::FlicDecoder::FlicVideoTrack.
|
virtual |
Get the time the given frame should be shown.
By default, this returns a negative (invalid) value. This function should only be used by VideoDecoder::seekToFrame().
Reimplemented in Video::VideoDecoder::FixedRateVideoTrack.
|
inlinevirtual |
Set the video track to play in reverse or forward.
By default, a VideoTrack must decode forward.
reverse | true for reverse, false for forward |
Reimplemented in Video::AVIDecoder::AVIVideoTrack.
|
inlinevirtual |
Is the video track set to play in reverse?
Reimplemented in Video::AVIDecoder::AVIVideoTrack.
|
inlinevirtual |
Can the video track dither?
Reimplemented in Video::AVIDecoder::AVIVideoTrack.
|
inlinevirtual |
Activate dithering mode with a palette
Reimplemented in Video::AVIDecoder::AVIVideoTrack.