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

Video::VideoDecoder::FixedRateVideoTrack Class Reference

A VideoTrack that is played at a constant rate. More...

#include <video_decoder.h>

Inheritance diagram for Video::VideoDecoder::FixedRateVideoTrack:
Collaboration diagram for Video::VideoDecoder::FixedRateVideoTrack:

List of all members.

Public Member Functions

 FixedRateVideoTrack ()
virtual ~FixedRateVideoTrack ()
uint32 getNextFrameStartTime () const
 Get the start time of the next frame in milliseconds since the start of the video.
virtual Audio::Timestamp getDuration () const
 Get the duration of the track (starting from this track's start time).
Audio::Timestamp getFrameTime (uint frame) const
 Get the time the given frame should be shown.
uint getFrameAtTime (const Audio::Timestamp &time) const
 Get the frame that should be displaying at the given time.

Protected Member Functions

virtual Common::Rational getFrameRate () const =0
 Get the rate at which this track is played.

Detailed Description

A VideoTrack that is played at a constant rate.

If the frame count is unknown, you must override endOfTrack().

Definition at line 655 of file video_decoder.h.


Constructor & Destructor Documentation

Video::VideoDecoder::FixedRateVideoTrack::FixedRateVideoTrack (  )  [inline]

Definition at line 657 of file video_decoder.h.

virtual Video::VideoDecoder::FixedRateVideoTrack::~FixedRateVideoTrack (  )  [inline, virtual]

Definition at line 658 of file video_decoder.h.


Member Function Documentation

Audio::Timestamp Video::VideoDecoder::FixedRateVideoTrack::getDuration (  )  const [virtual]

Get the duration of the track (starting from this track's start time).

By default, this returns 0 for unknown.

Reimplemented from Video::VideoDecoder::Track.

Definition at line 591 of file video_decoder.cpp.

uint Video::VideoDecoder::FixedRateVideoTrack::getFrameAtTime ( const Audio::Timestamp time  )  const

Get the frame that should be displaying at the given time.

This is helpful for someone implementing seek().

Definition at line 578 of file video_decoder.cpp.

virtual Common::Rational Video::VideoDecoder::FixedRateVideoTrack::getFrameRate (  )  const [protected, pure virtual]

Get the rate at which this track is played.

Implemented in Video::AVIDecoder::AVIVideoTrack.

Audio::Timestamp Video::VideoDecoder::FixedRateVideoTrack::getFrameTime ( uint  frame  )  const [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 from Video::VideoDecoder::VideoTrack.

Definition at line 563 of file video_decoder.cpp.

uint32 Video::VideoDecoder::FixedRateVideoTrack::getNextFrameStartTime (  )  const [virtual]

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

Implements Video::VideoDecoder::VideoTrack.

Definition at line 556 of file video_decoder.cpp.


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


Generated on Sat Mar 23 2019 05:09:33 for ResidualVM by doxygen 1.7.1
curved edge   curved edge