#include <trgt_imagemagick.h>
Public Member Functions | |
imagemagick_trgt (const char *filename) | |
virtual | ~imagemagick_trgt () |
virtual bool | set_rend_desc (synfig::RendDesc *desc) |
Sets the RendDesc for the Target to desc. | |
virtual bool | init () |
virtual bool | start_frame (synfig::ProgressCallback *cb) |
Marks the start of a frame. | |
virtual void | end_frame () |
Marks the end of a frame. | |
virtual synfig::Color * | start_scanline (int scanline) |
Marks the start of a scanline. | |
virtual bool | end_scanline () |
Marks the end of a scanline. |
imagemagick_trgt::imagemagick_trgt | ( | const char * | filename | ) |
imagemagick_trgt::~imagemagick_trgt | ( | ) | [virtual] |
bool imagemagick_trgt::set_rend_desc | ( | synfig::RendDesc * | d | ) | [virtual] |
Sets the RendDesc for the Target to desc.
If there are any parts of desc that the render target is not capable of doing, the render target will adjust desc to fit its needs.
Reimplemented from synfig::Target.
References synfig::Target::desc, synfig::PF_A, and synfig::PF_RGB.
bool imagemagick_trgt::init | ( | ) | [virtual] |
Reimplemented from synfig::Target.
References synfig::channels(), synfig::Target::desc, synfig::RendDesc::get_frame_end(), synfig::RendDesc::get_frame_start(), and synfig::RendDesc::get_w().
bool imagemagick_trgt::start_frame | ( | synfig::ProgressCallback * | cb | ) | [virtual] |
Marks the start of a frame.
true
on success, false
upon an error. Implements synfig::Target_Scanline.
References _, synfig::channels(), synfig::Target::desc, synfig::error(), synfig::ProgressCallback::error(), synfig::RendDesc::get_h(), synfig::RendDesc::get_w(), synfig::RendDesc::get_x_res(), synfig::RendDesc::get_y_res(), and N_.
void imagemagick_trgt::end_frame | ( | ) | [virtual] |
Color * imagemagick_trgt::start_scanline | ( | int | scanline | ) | [virtual] |
Marks the start of a scanline.
scanline | Which scanline is going to be rendered. |
Implements synfig::Target_Scanline.
bool imagemagick_trgt::end_scanline | ( | ) | [virtual] |
Marks the end of a scanline.
Takes the data that was put at the address returned to by start_scanline() and does whatever it is supposed to do with it.
true
on success, false
on failure. Implements synfig::Target_Scanline.
References synfig::channels(), synfig::convert_color_format(), synfig::Target::desc, synfig::Target::gamma(), and synfig::RendDesc::get_w().