xoreos  0.0.5
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Video::QuickTimeDecoder::VideoTrackHandler Class Reference
Inheritance diagram for Video::QuickTimeDecoder::VideoTrackHandler:
Inheritance graph
[legend]
Collaboration diagram for Video::QuickTimeDecoder::VideoTrackHandler:
Collaboration graph
[legend]

Public Member Functions

 VideoTrackHandler (QuickTimeDecoder *decoder, QuickTimeTrack *parent)
 
Common::Timestamp getDuration () const
 Get the duration of the track. More...
 
uint32 getWidth () const
 Get the width of this track. More...
 
uint32 getHeight () const
 Get the height of this track. More...
 
int getCurFrame () const
 Get the current frame of this track. More...
 
int getFrameCount () const
 Get the frame count of this track. More...
 
Common::Timestamp getNextFrameStartTime () const
 Get the start time of the next frame since the start of the video. More...
 
bool decodeNextFrame (Graphics::Surface &surface)
 
- Public Member Functions inherited from Video::VideoDecoder::VideoTrack
 VideoTrack ()
 
virtual ~VideoTrack ()
 
TrackType getTrackType () const
 Get the type of track. More...
 
virtual bool endOfTrack () const
 Return if the track has finished. More...
 
virtual Common::Timestamp getFrameTime (uint frame) const
 Get the time the given frame should be shown. More...
 
- Public Member Functions inherited from Video::VideoDecoder::Track
 Track ()
 
virtual ~Track ()
 
void pause (bool shouldPause)
 Set the pause status of the track. More...
 
bool isPaused () const
 Return if the track is paused. More...
 

Private Member Functions

Common::SeekableReadStreamgetNextFramePacket (uint32 &descId)
 
uint32 getFrameDuration ()
 

Private Attributes

QuickTimeDecoder_decoder
 
QuickTimeTrack_parent
 
int32 _curFrame
 
uint32 _nextFrameStartTime
 

Additional Inherited Members

- Public Types inherited from Video::VideoDecoder::Track
enum  TrackType { kTrackTypeNone, kTrackTypeAudio, kTrackTypeVideo }
 The types of tracks this class can be. More...
 
- Protected Member Functions inherited from Video::VideoDecoder::Track
virtual void pauseIntern (bool shouldPause)
 Function called by pause() for subclasses to implement. More...
 

Detailed Description

Definition at line 231 of file quicktime.h.

Constructor & Destructor Documentation

◆ VideoTrackHandler()

Video::QuickTimeDecoder::VideoTrackHandler::VideoTrackHandler ( QuickTimeDecoder decoder,
QuickTimeTrack parent 
)

Definition at line 965 of file quicktime.cpp.

Member Function Documentation

◆ decodeNextFrame()

bool Video::QuickTimeDecoder::VideoTrackHandler::decodeNextFrame ( Graphics::Surface surface)

◆ getCurFrame()

int Video::QuickTimeDecoder::VideoTrackHandler::getCurFrame ( ) const
inlinevirtual

Get the current frame of this track.

Implements Video::VideoDecoder::VideoTrack.

Definition at line 238 of file quicktime.h.

References _curFrame.

◆ getDuration()

Common::Timestamp Video::QuickTimeDecoder::VideoTrackHandler::getDuration ( ) const
virtual

Get the duration of the track.

By default, this returns 0 for unknown.

Reimplemented from Video::VideoDecoder::Track.

Definition at line 968 of file quicktime.cpp.

◆ getFrameCount()

int Video::QuickTimeDecoder::VideoTrackHandler::getFrameCount ( ) const
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 980 of file quicktime.cpp.

◆ getFrameDuration()

uint32 Video::QuickTimeDecoder::VideoTrackHandler::getFrameDuration ( )
private

Definition at line 1055 of file quicktime.cpp.

◆ getHeight()

uint32 Video::QuickTimeDecoder::VideoTrackHandler::getHeight ( ) const
virtual

Get the height of this track.

Implements Video::VideoDecoder::VideoTrack.

Definition at line 976 of file quicktime.cpp.

◆ getNextFramePacket()

Common::SeekableReadStream * Video::QuickTimeDecoder::VideoTrackHandler::getNextFramePacket ( uint32 descId)
private

Definition at line 1011 of file quicktime.cpp.

References error().

Here is the call graph for this function:

◆ getNextFrameStartTime()

Common::Timestamp Video::QuickTimeDecoder::VideoTrackHandler::getNextFrameStartTime ( ) const
virtual

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

Implements Video::VideoDecoder::VideoTrack.

Definition at line 984 of file quicktime.cpp.

◆ getWidth()

uint32 Video::QuickTimeDecoder::VideoTrackHandler::getWidth ( ) const
virtual

Get the width of this track.

Implements Video::VideoDecoder::VideoTrack.

Definition at line 972 of file quicktime.cpp.

Member Data Documentation

◆ _curFrame

int32 Video::QuickTimeDecoder::VideoTrackHandler::_curFrame
private

Definition at line 247 of file quicktime.h.

Referenced by getCurFrame().

◆ _decoder

QuickTimeDecoder* Video::QuickTimeDecoder::VideoTrackHandler::_decoder
private

Definition at line 245 of file quicktime.h.

◆ _nextFrameStartTime

uint32 Video::QuickTimeDecoder::VideoTrackHandler::_nextFrameStartTime
private

Definition at line 248 of file quicktime.h.

◆ _parent

QuickTimeTrack* Video::QuickTimeDecoder::VideoTrackHandler::_parent
private

Definition at line 246 of file quicktime.h.


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