#include <mptr_png.h>
Public Member Functions | |
png_mptr (const char *filename) | |
~png_mptr () | |
virtual bool | get_frame (synfig::Surface &surface, synfig::Time time, synfig::ProgressCallback *callback) |
Gets a frame and puts it into surface. | |
virtual bool | get_frame (synfig::Surface &surface, synfig::Time time, bool &trimmed, unsigned int &width, unsigned int &height, unsigned int &top, unsigned int &left, synfig::ProgressCallback *callback) |
png_mptr::png_mptr | ( | const char * | filename | ) |
References synfig::Gamma::b_U8_to_F32(), BORDER, synfig::error(), synfig::Gamma::g_U8_to_F32(), synfig::Importer::gamma(), synfig::info(), PNG_CHECK_BYTES, and synfig::Gamma::r_U8_to_F32().
png_mptr::~png_mptr | ( | ) |
bool png_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.
bool png_mptr::get_frame | ( | synfig::Surface & | surface, | |
synfig::Time | time, | |||
bool & | trimmed, | |||
unsigned int & | width, | |||
unsigned int & | height, | |||
unsigned int & | top, | |||
unsigned int & | left, | |||
synfig::ProgressCallback * | callback | |||
) | [virtual] |