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

Public Member Functions

 FaderVideoTrack (uint32 width, uint32 height, int n)
 
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...
 
void drawFrame (Graphics::Surface &surface)
 
- Public Member Functions inherited from Video::VideoDecoder::FixedRateVideoTrack
 FixedRateVideoTrack ()
 
virtual ~FixedRateVideoTrack ()
 
Common::Timestamp getNextFrameStartTime () const
 Get the start time of the next frame since the start of the video. More...
 
virtual Common::Timestamp getDuration () const
 Get the duration of the track. More...
 
Common::Timestamp getFrameTime (uint frame) const
 Get the time the given frame should be shown. More...
 
uint getFrameAtTime (const Common::Timestamp &time) const
 Get the frame that should be displaying at the given time. More...
 
- 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...
 
- 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...
 

Protected Member Functions

Common::Rational getFrameRate () const
 Get the rate at which this track is played. More...
 
- Protected Member Functions inherited from Video::VideoDecoder::Track
virtual void pauseIntern (bool shouldPause)
 Function called by pause() for subclasses to implement. More...
 

Private Attributes

uint32 _width
 
uint32 _height
 
int _curFrame
 
byte _c
 
int _n
 

Additional Inherited Members

- Public Types inherited from Video::VideoDecoder::Track
enum  TrackType { kTrackTypeNone, kTrackTypeAudio, kTrackTypeVideo }
 The types of tracks this class can be. More...
 

Detailed Description

Definition at line 43 of file fader.h.

Constructor & Destructor Documentation

◆ FaderVideoTrack()

Video::Fader::FaderVideoTrack::FaderVideoTrack ( uint32  width,
uint32  height,
int  n 
)

Definition at line 46 of file fader.cpp.

Member Function Documentation

◆ drawFrame()

void Video::Fader::FaderVideoTrack::drawFrame ( Graphics::Surface surface)

Definition at line 49 of file fader.cpp.

References _height, _width, Graphics::Surface::getData(), and Graphics::Surface::getWidth().

Here is the call graph for this function:

◆ getCurFrame()

int Video::Fader::FaderVideoTrack::getCurFrame ( ) const
inlinevirtual

Get the current frame of this track.

Implements Video::VideoDecoder::VideoTrack.

Definition at line 49 of file fader.h.

References _curFrame.

◆ getFrameCount()

int Video::Fader::FaderVideoTrack::getFrameCount ( ) const
inlinevirtual

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 50 of file fader.h.

References _n.

◆ getFrameRate()

Common::Rational Video::Fader::FaderVideoTrack::getFrameRate ( ) const
inlineprotectedvirtual

Get the rate at which this track is played.

Implements Video::VideoDecoder::FixedRateVideoTrack.

Definition at line 55 of file fader.h.

◆ getHeight()

uint32 Video::Fader::FaderVideoTrack::getHeight ( ) const
inlinevirtual

Get the height of this track.

Implements Video::VideoDecoder::VideoTrack.

Definition at line 48 of file fader.h.

References _height.

◆ getWidth()

uint32 Video::Fader::FaderVideoTrack::getWidth ( ) const
inlinevirtual

Get the width of this track.

Implements Video::VideoDecoder::VideoTrack.

Definition at line 47 of file fader.h.

References _width.

Member Data Documentation

◆ _c

byte Video::Fader::FaderVideoTrack::_c
private

Definition at line 61 of file fader.h.

◆ _curFrame

int Video::Fader::FaderVideoTrack::_curFrame
private

Definition at line 60 of file fader.h.

Referenced by getCurFrame().

◆ _height

uint32 Video::Fader::FaderVideoTrack::_height
private

Definition at line 59 of file fader.h.

Referenced by getHeight().

◆ _n

int Video::Fader::FaderVideoTrack::_n
private

Definition at line 62 of file fader.h.

Referenced by getFrameCount().

◆ _width

uint32 Video::Fader::FaderVideoTrack::_width
private

Definition at line 58 of file fader.h.

Referenced by getWidth().


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