#include <trgt_av.h>
Public Member Functions | |
Target_LibAVCodec (const char *filename) | |
virtual | ~Target_LibAVCodec () |
virtual bool | init () |
virtual bool | set_rend_desc (synfig::RendDesc *desc) |
Sets the RendDesc for the Target to desc. | |
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. |
Target_LibAVCodec::Target_LibAVCodec | ( | const char * | filename | ) |
References synfig::Target::set_remove_alpha().
Target_LibAVCodec::~Target_LibAVCodec | ( | ) | [virtual] |
bool Target_LibAVCodec::init | ( | ) | [virtual] |
bool Target_LibAVCodec::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_br(), synfig::RendDesc::get_frame_end(), synfig::RendDesc::get_frame_rate(), synfig::RendDesc::get_frame_start(), synfig::RendDesc::get_h(), synfig::RendDesc::get_ph(), synfig::RendDesc::get_pw(), synfig::RendDesc::get_tl(), synfig::RendDesc::get_w(), MEGABYTES_PER_HOUR, synfig::RendDesc::set_br(), synfig::RendDesc::set_frame_rate(), synfig::RendDesc::set_h(), synfig::RendDesc::set_tl(), and synfig::RendDesc::set_w().
bool Target_LibAVCodec::start_frame | ( | synfig::ProgressCallback * | cb | ) | [virtual] |
Marks the start of a frame.
true
on success, false
upon an error. Implements synfig::Target_Scanline.
void Target_LibAVCodec::end_frame | ( | ) | [virtual] |
Marks the end of a frame.
Implements synfig::Target_Scanline.
References convert_surface_frame(), synfig::Target::gamma(), and synfig::warning().
Color * Target_LibAVCodec::start_scanline | ( | int | scanline | ) | [virtual] |
Marks the start of a scanline.
scanline | Which scanline is going to be rendered. |
Implements synfig::Target_Scanline.
bool Target_LibAVCodec::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.