ScummVM API documentation
Titanic::AVIDecoder Class Reference
Inheritance diagram for Titanic::AVIDecoder:
Video::AVIDecoder Video::VideoDecoder

Public Member Functions

 AVIDecoder (const Common::Rational &frameRateOverride)
 
uint videoTrackCount () const
 
Video::AVIDecoder::AVIVideoTrackgetVideoTrack (uint idx)
 
AVIVideoTrackgetTransparencyTrack ()
 
- Public Member Functions inherited from Video::AVIDecoder
 AVIDecoder (const Common::Rational &frameRateOverride)
 
bool loadStream (Common::SeekableReadStream *stream)
 
void close ()
 
uint16 getWidth () const
 
uint16 getHeight () const
 
bool rewind ()
 
bool isRewindable () const
 
bool isSeekable () const
 
virtual const Graphics::SurfacedecodeNextFrame ()
 
const Graphics::SurfacedecodeNextTransparency ()
 
virtual AVIAudioTrackcreateAudioTrack (AVIStreamHeader sHeader, PCMWaveFormat wvInfo)
 
virtual bool seekToFrame (uint frame)
 
- Public Member Functions inherited from Video::VideoDecoder
virtual bool loadFile (const Common::Path &filename)
 
bool isVideoLoaded () const
 
void start ()
 
void stop ()
 
void setRate (const Common::Rational &rate)
 
Common::Rational getRate () const
 
bool isPlaying () const
 
bool seek (const Audio::Timestamp &time)
 
void pauseVideo (bool pause)
 
bool isPaused () const
 
void setEndTime (const Audio::Timestamp &endTime)
 
void setEndFrame (uint frame)
 
Audio::Timestamp getEndTime () const
 
void resetStartTime ()
 
bool endOfVideo () const
 
int getCurFrame () const
 
uint32 getFrameCount () const
 
uint32 getTime () const
 
Graphics::PixelFormat getPixelFormat () const
 
virtual Audio::Timestamp getDuration () const
 
const byte * getPalette ()
 
bool hasDirtyPalette () const
 
void delayMillis (uint msecs)
 
uint32 getTimeToNextFrame () const
 
bool needsUpdate () const
 
bool setReverse (bool reverse)
 
bool setDitheringPalette (const byte *palette)
 
bool setOutputPixelFormat (const Graphics::PixelFormat &format)
 
virtual void setVideoCodecAccuracy (Image::CodecAccuracy accuracy)
 
byte getVolume () const
 
void setVolume (byte volume)
 
int8 getBalance () const
 
void setBalance (int8 balance)
 
Audio::Mixer::SoundType getSoundType () const
 
void setSoundType (Audio::Mixer::SoundType soundType)
 
bool addStreamTrack (Audio::SeekableAudioStream *stream)
 
bool addStreamFileTrack (const Common::Path &baseName)
 
bool setAudioTrack (int index)
 
uint getAudioTrackCount () const
 

Additional Inherited Members

- Protected Types inherited from Video::AVIDecoder
enum  IndexFlags { AVIIF_INDEX = 0x10 }
 
enum  AVIFlags {
  AVIF_HASINDEX = 0x00000010, AVIF_MUSTUSEINDEX = 0x00000020, AVIF_ISINTERLEAVED = 0x00000100, AVIF_TRUSTCKTYPE = 0x00000800,
  AVIF_WASCAPTUREFILE = 0x00010000, AVIF_WASCOPYRIGHTED = 0x00020000
}
 
- Protected Types inherited from Video::VideoDecoder
typedef Common::Array< Track * > TrackList
 
typedef TrackList::iterator TrackListIterator
 
- Protected Member Functions inherited from Video::AVIDecoder
void readNextPacket ()
 
bool seekIntern (const Audio::Timestamp &time)
 
bool supportsAudioTrackSwitching () const
 
AudioTrackgetAudioTrack (int index)
 
void addTrack (Track *track, bool isExternal=false)
 
void readOldIndex (uint32 size)
 
void initCommon ()
 
bool parseNextChunk ()
 
void skipChunk (uint32 size)
 
void handleList (uint32 listSize)
 
void handleStreamHeader (uint32 size)
 
void readStreamName (uint32 size)
 
void readPalette8 (uint32 size)
 
uint16 getStreamType (uint32 tag) const
 
void checkTruemotion1 ()
 
uint getVideoTrackOffset (uint trackIndex, uint frameNumber=0)
 
void handleNextPacket (TrackStatus &status)
 
bool shouldQueueAudio (TrackStatus &status)
 
void seekTransparencyFrame (int frame)
 
- Protected Member Functions inherited from Video::VideoDecoder
void resetPauseStartTime ()
 
void addTrack (Track *track, bool isExternal=false)
 
virtual bool useAudioSync () const
 
TrackgetTrack (uint track)
 
const TrackgetTrack (uint track) const
 
bool endOfVideoTracks () const
 
VideoTrackfindNextVideoTrack ()
 
TrackListIterator getTrackListBegin ()
 
TrackListIterator getTrackListEnd ()
 
void eraseTrack (Track *track)
 
void stopAudio ()
 
void setAudioRate (Common::Rational rate)
 
void startAudio ()
 
void startAudioLimit (const Audio::Timestamp &limit)
 
bool hasFramesLeft () const
 
bool hasAudio () const
 
- Static Protected Member Functions inherited from Video::AVIDecoder
static byte getStreamIndex (uint32 tag)
 
- Protected Attributes inherited from Video::AVIDecoder
AVIHeader _header
 
IndexEntries _indexEntries
 
Common::SeekableReadStream_fileStream
 
bool _decodedHeader
 
bool _foundMovieList
 
uint32 _movieListStart
 
uint32 _movieListEnd
 
Common::Rational _frameRateOverride
 
int _videoTrackCounter
 
int _audioTrackCounter
 
Track_lastAddedTrack
 
Common::Array< TrackStatus_videoTracks
 
Common::Array< TrackStatus_audioTracks
 
TrackStatus _transparencyTrack
 
- Protected Attributes inherited from Video::VideoDecoder
Audio::Timestamp _lastTimeChange
 
int32 _startTime
 
VideoTrack_nextVideoTrack
 
Image::CodecAccuracy _videoCodecAccuracy
 

Member Function Documentation

◆ videoTrackCount()

uint Titanic::AVIDecoder::videoTrackCount ( ) const
inline

Returns the number of video tracks the decoder has

◆ getVideoTrack()

Video::AVIDecoder::AVIVideoTrack& Titanic::AVIDecoder::getVideoTrack ( uint  idx)

Returns the specified video track

◆ getTransparencyTrack()

AVIVideoTrack* Titanic::AVIDecoder::getTransparencyTrack ( )
inline

Returns the transparency video track, if present


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