Vuo  0.5.3
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
VuoMovieDecoder Class Reference

Description

Instance class used to control the playback of video.

See Also
VuoMovie_getNextFrame VuoMovie_initFfmpeg VuoMovie_getInfo VuoMovie_make

Classes

struct  AVContainer
 Internal struct which contains context and current playback status of VuoMovieDecoder. More...
 

Public Types

typedef struct
VuoMovieDecoder::AVContainer 
AVContainer
 Internal struct which contains context and current playback status of VuoMovieDecoder.
 

Public Member Functions

 ~VuoMovieDecoder ()
 VuoMovieDecoder class destructor.
 
bool getNextFrame (VuoImage *image, double *nextFrame)
 Attempts to extract the frame image and timestamp for the next full frame in the current stream.
 
VuoList_VuoReal extractFramePtsValues ()
 Returns a VuoList_VuoReal containing every frame's presentation time stamp.
 
bool seekToMs (int64_t ms)
 Converts millisecond to frame PTS and performs an av_seek_frame() call.
 

Public Attributes

AVContainer container
 Stores instance playback information.
 
uint64_t frameCount = 0
 The index of the last read frame.
 

Class Documentation

struct VuoMovieDecoder::AVContainer
Class Members
AVCodecContext * pCodecCtx
AVFormatContext * pFormatCtx
int64_t startPts
int totalFrames
AVStream * video_st
int videoStream

Member Typedef Documentation

Internal struct which contains context and current playback status of VuoMovieDecoder.

Constructor & Destructor Documentation

VuoMovieDecoder::~VuoMovieDecoder ( )
inline

VuoMovieDecoder class destructor.

See Also
VuoMovie_free

Member Function Documentation

VuoList_VuoReal VuoMovieDecoder::extractFramePtsValues ( )
inline

Returns a VuoList_VuoReal containing every frame's presentation time stamp.

In the event that timestamp information is not available, the current frame index multiplied by time base is used.

bool VuoMovieDecoder::getNextFrame ( VuoImage image,
double *  nextFrame 
)
inline

Attempts to extract the frame image and timestamp for the next full frame in the current stream.

bool VuoMovieDecoder::seekToMs ( int64_t  ms)
inline

Converts millisecond to frame PTS and performs an av_seek_frame() call.

Member Data Documentation

AVContainer VuoMovieDecoder::container

Stores instance playback information.

uint64_t VuoMovieDecoder::frameCount = 0

The index of the last read frame.


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