Instance class used to control the playback of video.
- See Also
VuoMovie_getNextFrame
VuoMovie_initFfmpeg
VuoMovie_getInfo
VuoMovie_make
|
| ~VuoMovieDecoder () |
| VuoMovieDecoder class destructor.
|
|
int | initWithFile (const char *path) |
| Attempts to initialize an AVFormatContext and appropriate codec for the video path.
|
|
double | getCurrentSecond () |
| Returns the last timestamp in seconds.
|
|
bool | getNextFrame (VuoImage *image, double *frameTimestampInSeconds) |
| Attempts to extract the frame image and timestamp for the next full frame in the current stream.
|
|
bool | getPreviousFrame (VuoImage *image, double *frameTimestampInSeconds) |
| Attempts to extract chronologically prior frame image and timestamp 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.
|
|
struct VuoMovieDecoder::AVContainer |
Class Members |
double |
duration |
|
int64_t |
firstFrame |
|
int64_t |
lastFrame |
|
int64_t |
lastPts |
|
int64_t |
lastTimestamp |
|
int |
packetDuration |
|
char * |
path |
|
AVCodecContext * |
pCodecCtx |
|
AVFormatContext * |
pFormatCtx |
|
int |
previousPacketDuration |
|
bool |
seekUnavailable |
|
int64_t |
startPts |
|
AVStream * |
video_st |
|
int |
videoStreamIndex |
|
Internal struct which contains context and current playback status of VuoMovieDecoder.
VuoMovieDecoder::~VuoMovieDecoder |
( |
| ) |
|
|
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.
double VuoMovieDecoder::getCurrentSecond |
( |
| ) |
|
|
inline |
Returns the last timestamp in seconds.
bool VuoMovieDecoder::getNextFrame |
( |
VuoImage * |
image, |
|
|
double * |
frameTimestampInSeconds |
|
) |
| |
|
inline |
Attempts to extract the frame image and timestamp for the next full frame in the current stream.
bool VuoMovieDecoder::getPreviousFrame |
( |
VuoImage * |
image, |
|
|
double * |
frameTimestampInSeconds |
|
) |
| |
|
inline |
Attempts to extract chronologically prior frame image and timestamp in the current stream.
int VuoMovieDecoder::initWithFile |
( |
const char * |
path | ) |
|
|
inline |
Attempts to initialize an AVFormatContext and appropriate codec for the video path.
- See Also
VuoMovie_make
bool VuoMovieDecoder::seekToMs |
( |
int64_t |
ms | ) |
|
|
inline |
Converts millisecond to frame PTS and performs an av_seek_frame()
call.
Stores instance playback information.
The documentation for this class was generated from the following file: