#include <trgt_gif.h>
Public Member Functions | |
gif (const char *filename) | |
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 | ~gif () |
virtual synfig::Color * | start_scanline (int scanline) |
Marks the start of a scanline. | |
virtual bool | end_scanline (void) |
Marks the end of a scanline. | |
Classes | |
struct | bitstream |
struct | lzwcode |
gif::gif | ( | const char * | filename | ) |
gif::~gif | ( | ) | [virtual] |
bool gif::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::RendDesc::get_frame_end(), synfig::RendDesc::get_frame_rate(), synfig::RendDesc::get_frame_start(), MAX_FRAME_RATE, and synfig::RendDesc::set_frame_rate().
bool gif::init | ( | ) | [virtual] |
Reimplemented from synfig::Target.
References _, synfig::Surface::clear(), synfig::Target::desc, synfig::error(), synfig::RendDesc::get_h(), synfig::Target::get_quality(), and synfig::RendDesc::get_w().
bool gif::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::ProgressCallback::error(), and synfig::ProgressCallback::task().
void gif::end_frame | ( | ) | [virtual] |
Marks the end of a frame.
Implements synfig::Target_Scanline.
References std::abs(), synfig::Target::desc, DISPOSE_NONE, DISPOSE_RESTORE_PREVIOUS, synfig::error(), synfig::Palette::find_closest(), synfig::Target::get_canvas(), synfig::RendDesc::get_frame_end(), synfig::RendDesc::get_frame_rate(), synfig::RendDesc::get_h(), synfig::Target::get_remove_alpha(), synfig::RendDesc::get_w(), synfig::info(), and synfig::Target::rend_desc().
synfig::Color * gif::start_scanline | ( | int | scanline | ) | [virtual] |
Marks the start of a scanline.
scanline | Which scanline is going to be rendered. |
Implements synfig::Target_Scanline.
bool gif::end_scanline | ( | void | ) | [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.