synfig-core
1.0.3
|
#include <mptr_imagemagick.h>
Public Member Functions | |
imagemagick_mptr (const synfig::FileSystem::Identifier &identifier) | |
~imagemagick_mptr () | |
virtual bool | get_frame (synfig::Surface &surface, const synfig::RendDesc &renddesc, synfig::Time time, synfig::ProgressCallback *callback) |
Gets a frame and puts it into surface. | |
Public Member Functions inherited from synfig::Importer | |
Gamma & | gamma () |
const Gamma & | gamma () const |
virtual | ~Importer () |
virtual bool | get_frame (Surface &surface, const RendDesc &renddesc, 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() |
Additional Inherited Members | |
Public Types inherited from synfig::Importer | |
typedef Importer *(* | Factory )(const FileSystem::Identifier &identifier) |
typedef std::map< std::string, BookEntry > | Book |
typedef etl::handle< Importer > | Handle |
typedef etl::loose_handle < Importer > | LooseHandle |
typedef etl::handle< const Importer > | ConstHandle |
Static Public Member Functions inherited from synfig::Importer | |
static Book & | book () |
static bool | subsys_init () |
static bool | subsys_stop () |
static Handle | open (const FileSystem::Identifier &identifier) |
Attempts to open filename, and returns a handle to the associated Importer. | |
Public Attributes inherited from synfig::Importer | |
const FileSystem::Identifier | identifier |
Static Public Attributes inherited from synfig::Importer | |
static Book * | book_ |
Protected Member Functions inherited from synfig::Importer | |
Importer (const FileSystem::Identifier &identifier) |
imagemagick_mptr::imagemagick_mptr | ( | const synfig::FileSystem::Identifier & | identifier | ) |
imagemagick_mptr::~imagemagick_mptr | ( | ) |
|
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.
References _, synfig::Gamma::b_U8_to_F32(), synfig::ProgressCallback::error(), synfig::error(), synfig::FileSystem::Identifier::file_system, synfig::FileSystem::Identifier::filename, synfig::Gamma::g_U8_to_F32(), synfig::Importer::gamma(), synfig::Color::get_a(), synfig::Color::get_b(), synfig::Color::get_g(), synfig::Color::get_r(), synfig::Importer::identifier, synfig::FileSystemNative::instance(), and synfig::Gamma::r_U8_to_F32().