Vuo
0.5.3
|
VuoMovie implementation.
Classes | |
class | VuoMovieDecoder |
Instance class used to control the playback of video. More... | |
struct | VuoMovieDecoder::AVContainer |
Internal struct which contains context and current playback status of VuoMovieDecoder. More... | |
Macros | |
#define | SEC_PER_USEC .000001 |
Seconds per millisecond. Vuo nodes want information in seconds, where ffmpeg operates in milliseconds. | |
Functions | |
void | VuoMovie_free (void *movie) |
Releases ffmpeg resources created during this object's lifecycle. | |
VuoMovie * | VuoMovie_make (const char *path) |
VuoMovie_make: Creates a new VuoMovieDecoder object and returns itself. | |
bool | VuoMovie_getNextFrame (VuoMovie *decoder, VuoImage *image, double *nextFrame) |
VuoMovie_getNextFrame gets the next full frame's image and presentation timestamp (in seconds). | |
bool | VuoMovie_seekToSecond (VuoMovie *movie, double second) |
Seeks the video to the specified second. | |
bool | VuoMovie_getInfo (const char *path, double *duration) |
Given a path, this will open and close a video stream and return the duration. | |
struct VuoMovieDecoder::AVContainer |
#define SEC_PER_USEC .000001 |
Seconds per millisecond. Vuo nodes want information in seconds, where ffmpeg operates in milliseconds.
void VuoMovie_free | ( | void * | movie | ) |
Releases ffmpeg resources created during this object's lifecycle.
bool VuoMovie_getInfo | ( | const char * | path, |
double * | duration | ||
) |
Given a path, this will open and close a video stream and return the duration.
VuoMovie_getNextFrame gets the next full frame's image and presentation timestamp (in seconds).
Will return true if next frame is found and false if not.
VuoMovie* VuoMovie_make | ( | const char * | path | ) |
VuoMovie_make: Creates a new VuoMovieDecoder object and returns itself.
path | An absolute path to the video file to open. |
bool VuoMovie_seekToSecond | ( | VuoMovie * | movie, |
double | second | ||
) |
Seeks the video to the specified second.