#include <mptr_ffmpeg.h>
Public Member Functions | |
ffmpeg_mptr (const char *filename) | |
~ffmpeg_mptr () | |
virtual bool | is_animated () |
Returns true if the importer pays attention to the time parameter of get_frame(). | |
virtual bool | get_frame (synfig::Surface &surface, synfig::Time time, synfig::ProgressCallback *callback) |
Gets a frame and puts it into surface. |
ffmpeg_mptr::ffmpeg_mptr | ( | const char * | filename | ) |
ffmpeg_mptr::~ffmpeg_mptr | ( | ) |
bool ffmpeg_mptr::is_animated | ( | ) | [virtual] |
Returns true
if the importer pays attention to the time parameter of get_frame().
Reimplemented from synfig::Importer.
bool ffmpeg_mptr::get_frame | ( | synfig::Surface & | surface, | |
synfig::Time | time, | |||
synfig::ProgressCallback * | callback | |||
) | [virtual] |
Gets a frame and puts it into surface.
surface | Reference to surface to put frame into | |
time | For animated importers, determines which frame to get. For static importers, this parameter is unused. | |
callback | Pointer to callback class for progress, errors, etc. |
true
on success, false
on error Implements synfig::Importer.