synfig::Target_Scanline Class Reference

Render-target. More...

#include <target_scanline.h>

Inheritance diagram for synfig::Target_Scanline:

synfig::Target bmp dv_trgt exr_trgt ffmpeg_trgt gif imagemagick_trgt jpeg_trgt magickpp_trgt mng_trgt png_trgt ppm synfig::Target_Multi synfig::Target_Null Target_LibAVCodec yuv

List of all members.

Public Types

typedef etl::handle
< Target_Scanline
Handle
typedef etl::loose_handle
< Target_Scanline
LooseHandle
typedef etl::handle< const
Target_Scanline
ConstHandle

Public Member Functions

 Target_Scanline ()
virtual bool render (ProgressCallback *cb=NULL)
 Renders the canvas to the target.
virtual bool start_frame (ProgressCallback *cb=NULL)=0
 Marks the start of a frame.
virtual int next_frame (Time &time)
virtual void end_frame ()=0
 Marks the end of a frame.
virtual Colorstart_scanline (int scanline)=0
 Marks the start of a scanline.
virtual bool end_scanline ()=0
 Marks the end of a scanline.
void set_threads (int x)
int get_threads () const
bool add_frame (const synfig::Surface *surface)


Detailed Description

Render-target.

Todo:
writeme

Member Typedef Documentation

Reimplemented from synfig::Target.

Reimplemented from synfig::Target.

Reimplemented from synfig::Target.


Constructor & Destructor Documentation

Target_Scanline::Target_Scanline (  ) 


Member Function Documentation

bool synfig::Target_Scanline::render ( ProgressCallback cb = NULL  )  [virtual]

virtual bool synfig::Target_Scanline::start_frame ( ProgressCallback cb = NULL  )  [pure virtual]

Marks the start of a frame.

Returns:
true on success, false upon an error.
See also:
end_frame(), start_scanline()

Implemented in bmp, dv_trgt, ffmpeg_trgt, gif, imagemagick_trgt, jpeg_trgt, Target_LibAVCodec, magickpp_trgt, mng_trgt, exr_trgt, png_trgt, ppm, yuv, synfig::Target_Multi, and synfig::Target_Null.

Referenced by add_frame(), and render().

int Target_Scanline::next_frame ( Time time  )  [virtual]

virtual void synfig::Target_Scanline::end_frame (  )  [pure virtual]

virtual Color* synfig::Target_Scanline::start_scanline ( int  scanline  )  [pure virtual]

Marks the start of a scanline.

Parameters:
scanline Which scanline is going to be rendered.
Returns:
The address where the target wants the scanline to be written.
Warning:
Must be called after start_frame()
See also:
end_scanline(), start_frame()

Implemented in bmp, dv_trgt, ffmpeg_trgt, gif, imagemagick_trgt, jpeg_trgt, Target_LibAVCodec, magickpp_trgt, mng_trgt, exr_trgt, png_trgt, ppm, yuv, synfig::Target_Multi, and synfig::Target_Null.

Referenced by add_frame(), and render().

virtual bool synfig::Target_Scanline::end_scanline (  )  [pure 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.

Returns:
true on success, false on failure.
See also:
start_scanline()

Implemented in bmp, dv_trgt, ffmpeg_trgt, gif, imagemagick_trgt, jpeg_trgt, Target_LibAVCodec, magickpp_trgt, mng_trgt, exr_trgt, png_trgt, ppm, yuv, synfig::Target_Multi, and synfig::Target_Null.

Referenced by add_frame(), and render().

void synfig::Target_Scanline::set_threads ( int  x  )  [inline]

int synfig::Target_Scanline::get_threads (  )  const [inline]

bool Target_Scanline::add_frame ( const synfig::Surface surface  ) 


The documentation for this class was generated from the following files:

Generated on Fri Jul 31 00:01:59 2009 for synfig-core by  doxygen 1.5.6