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

Public Member Functions

 XMVVideoTrack (uint32 width, uint32 height, uint32 &timestamp)
 
bool endOfTrack () const
 Return if the track has finished. 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...
 
Common::Timestamp getNextFrameStartTime () const
 Get the start time of the next frame since the start of the video. More...
 
bool decodeFrame (Graphics::Surface &surface, Common::SeekableReadStream &frameData)
 
void initCodec (Common::SeekableReadStream &extraData)
 
void finish ()
 
- Public Member Functions inherited from Video::VideoDecoder::VideoTrack
 VideoTrack ()
 
virtual ~VideoTrack ()
 
TrackType getTrackType () const
 Get the type of track. More...
 
virtual int getFrameCount () const
 Get the frame count of this track. 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...
 
virtual Common::Timestamp getDuration () const
 Get the duration of the track. More...
 

Private Attributes

uint32 _width
 
uint32 _height
 
uint32_timestamp
 
int _curFrame
 
bool _finished
 
Common::ScopedPtr< Codec_videoCodec
 The video codec. More...
 

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 66 of file xmv.h.

Constructor & Destructor Documentation

◆ XMVVideoTrack()

Video::XboxMediaVideo::XMVVideoTrack::XMVVideoTrack ( uint32  width,
uint32  height,
uint32 timestamp 
)

Definition at line 352 of file xmv.cpp.

Member Function Documentation

◆ decodeFrame()

bool Video::XboxMediaVideo::XMVVideoTrack::decodeFrame ( Graphics::Surface surface,
Common::SeekableReadStream frameData 
)

Definition at line 355 of file xmv.cpp.

Referenced by Video::XboxMediaVideo::processNextFrame().

Here is the caller graph for this function:

◆ endOfTrack()

bool Video::XboxMediaVideo::XMVVideoTrack::endOfTrack ( ) const
inlinevirtual

Return if the track has finished.

Reimplemented from Video::VideoDecoder::VideoTrack.

Definition at line 70 of file xmv.h.

References _finished.

◆ finish()

void Video::XboxMediaVideo::XMVVideoTrack::finish ( )
inline

Definition at line 79 of file xmv.h.

References _finished.

◆ getCurFrame()

int Video::XboxMediaVideo::XMVVideoTrack::getCurFrame ( ) const
inlinevirtual

Get the current frame of this track.

Implements Video::VideoDecoder::VideoTrack.

Definition at line 74 of file xmv.h.

References _curFrame.

◆ getHeight()

uint32 Video::XboxMediaVideo::XMVVideoTrack::getHeight ( ) const
inlinevirtual

Get the height of this track.

Implements Video::VideoDecoder::VideoTrack.

Definition at line 73 of file xmv.h.

References _height.

◆ getNextFrameStartTime()

Common::Timestamp Video::XboxMediaVideo::XMVVideoTrack::getNextFrameStartTime ( ) const
virtual

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

Implements Video::VideoDecoder::VideoTrack.

Definition at line 369 of file xmv.cpp.

◆ getWidth()

uint32 Video::XboxMediaVideo::XMVVideoTrack::getWidth ( ) const
inlinevirtual

Get the width of this track.

Implements Video::VideoDecoder::VideoTrack.

Definition at line 72 of file xmv.h.

References _width.

◆ initCodec()

void Video::XboxMediaVideo::XMVVideoTrack::initCodec ( Common::SeekableReadStream extraData)

Definition at line 365 of file xmv.cpp.

References _height, and _width.

Referenced by Video::XboxMediaVideo::processPacketHeader().

Here is the caller graph for this function:

Member Data Documentation

◆ _curFrame

int Video::XboxMediaVideo::XMVVideoTrack::_curFrame
private

Definition at line 85 of file xmv.h.

Referenced by getCurFrame().

◆ _finished

bool Video::XboxMediaVideo::XMVVideoTrack::_finished
private

Definition at line 86 of file xmv.h.

Referenced by endOfTrack(), and finish().

◆ _height

uint32 Video::XboxMediaVideo::XMVVideoTrack::_height
private

Definition at line 83 of file xmv.h.

Referenced by getHeight().

◆ _timestamp

uint32& Video::XboxMediaVideo::XMVVideoTrack::_timestamp
private

Definition at line 84 of file xmv.h.

◆ _videoCodec

Common::ScopedPtr<Codec> Video::XboxMediaVideo::XMVVideoTrack::_videoCodec
private

The video codec.

Definition at line 89 of file xmv.h.

◆ _width

uint32 Video::XboxMediaVideo::XMVVideoTrack::_width
private

Definition at line 82 of file xmv.h.

Referenced by getWidth().


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