xoreos
0.0.5
|
An abstract representation of a track in a movie. More...
#include <decoder.h>
Public Types | |
enum | TrackType { kTrackTypeNone, kTrackTypeAudio, kTrackTypeVideo } |
The types of tracks this class can be. More... | |
Public Member Functions | |
Track () | |
virtual | ~Track () |
virtual TrackType | getTrackType () const =0 |
Get the type of track. More... | |
virtual bool | endOfTrack () const =0 |
Return if the track has finished. More... | |
void | pause (bool shouldPause) |
Set the pause status of the track. More... | |
bool | isPaused () const |
Return if the track is paused. More... | |
virtual Common::Timestamp | getDuration () const |
Get the duration of the track. More... | |
Protected Member Functions | |
virtual void | pauseIntern (bool shouldPause) |
Function called by pause() for subclasses to implement. More... | |
Private Attributes | |
bool | _paused |
Is the track paused? More... | |
An abstract representation of a track in a movie.
Since tracks here are designed to work independently, they should not reference any other track(s) in the video.
Video::VideoDecoder::Track::Track | ( | ) |
Definition at line 453 of file decoder.cpp.
References _paused.
|
inlinevirtual |
|
pure virtual |
Return if the track has finished.
Implemented in Video::VideoDecoder::AudioTrack, Video::VideoDecoder::VideoTrack, and Video::XboxMediaVideo::XMVVideoTrack.
|
virtual |
Get the duration of the track.
By default, this returns 0 for unknown.
Reimplemented in Video::VideoDecoder::FixedRateVideoTrack, and Video::QuickTimeDecoder::VideoTrackHandler.
Definition at line 465 of file decoder.cpp.
|
pure virtual |
Get the type of track.
This must not return kTrackTypeNone.
Implemented in Video::VideoDecoder::AudioTrack, and Video::VideoDecoder::VideoTrack.
Referenced by Video::VideoDecoder::addTrack().
|
inline |
void Video::VideoDecoder::Track::pause | ( | bool | shouldPause | ) |
Set the pause status of the track.
Definition at line 457 of file decoder.cpp.
Referenced by Video::VideoDecoder::addTrack().
|
protectedvirtual |
Function called by pause() for subclasses to implement.
Reimplemented in Video::VideoDecoder::AudioTrack.
Definition at line 462 of file decoder.cpp.
|
private |
Is the track paused?
Definition at line 220 of file decoder.h.
Referenced by isPaused(), and Track().