#include <importer.h>
Public Types | |
typedef Importer *(* | Factory )(const char *filename) |
typedef std::map< String, Factory > | Book |
typedef etl::handle< Importer > | Handle |
typedef etl::loose_handle < Importer > | LooseHandle |
typedef etl::handle< const Importer > | ConstHandle |
Public Member Functions | |
Gamma & | gamma () |
const Gamma & | gamma () const |
virtual | ~Importer () |
virtual bool | get_frame (Surface &surface, Time time, ProgressCallback *callback=NULL)=0 |
Gets a frame and puts it into surface. | |
virtual bool | get_frame (Surface &surface, Time time, bool &trimmed __attribute__((unused)), unsigned int &width __attribute__((unused)), unsigned int &height __attribute__((unused)), unsigned int &top __attribute__((unused)), unsigned int &left __attribute__((unused)), ProgressCallback *callback=NULL) |
virtual bool | is_animated () |
Returns true if the importer pays attention to the time parameter of get_frame(). | |
Static Public Member Functions | |
static Book & | book () |
static bool | subsys_init () |
static bool | subsys_stop () |
static Handle | open (const String &filename) |
Attempts to open filename, and returns a handle to the associated Importer. | |
Static Public Attributes | |
static Book * | book_ |
Protected Member Functions | |
Importer () |
typedef Importer*(* synfig::Importer::Factory)(const char *filename) |
typedef std::map<String,Factory> synfig::Importer::Book |
typedef etl::handle<Importer> synfig::Importer::Handle |
typedef etl::loose_handle<Importer> synfig::Importer::LooseHandle |
typedef etl::handle<const Importer> synfig::Importer::ConstHandle |
Importer::Importer | ( | ) | [protected] |
Importer::~Importer | ( | ) | [virtual] |
References __open_importers.
Importer::Book & Importer::book | ( | ) | [static] |
bool Importer::subsys_init | ( | ) | [static] |
bool Importer::subsys_stop | ( | ) | [static] |
References __open_importers, and book_.
Referenced by synfig::Main::Main(), and synfig::Main::~Main().
Gamma& synfig::Importer::gamma | ( | ) | [inline] |
const Gamma& synfig::Importer::gamma | ( | ) | const [inline] |
virtual bool synfig::Importer::get_frame | ( | Surface & | surface, | |
Time | time, | |||
ProgressCallback * | callback = NULL | |||
) | [pure 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 Implemented in bmp_mptr, ffmpeg_mptr, imagemagick_mptr, jpeg_mptr, Importer_LibAVCodec, exr_mptr, png_mptr, ppm_mptr, and synfig::ListImporter.
Referenced by get_frame().
virtual bool synfig::Importer::get_frame | ( | Surface & | surface, | |
Time | time, | |||
bool &trimmed | __attribute__(unused), | |||
unsigned int &width | __attribute__(unused), | |||
unsigned int &height | __attribute__(unused), | |||
unsigned int &top | __attribute__(unused), | |||
unsigned int &left | __attribute__(unused), | |||
ProgressCallback * | callback = NULL | |||
) | [inline, virtual] |
References get_frame().
virtual bool synfig::Importer::is_animated | ( | ) | [inline, virtual] |
Returns true
if the importer pays attention to the time parameter of get_frame().
Reimplemented in ffmpeg_mptr, and synfig::ListImporter.
Importer::Handle Importer::open | ( | const String & | filename | ) | [static] |
Attempts to open filename, and returns a handle to the associated Importer.
References _, __open_importers, book(), synfig::error(), and tolower.
Referenced by synfig::ListImporter::get_frame().
Importer::Book * synfig::Importer::book_ [static] |
Referenced by book(), subsys_init(), and subsys_stop().