CommonRender Class Reference

#include <commonrender.h>

Inherits Thread.

Inherited by ARender, and VRender.

Collaboration diagram for CommonRender:

Collaboration graph
[legend]

Public Member Functions

 CommonRender (RenderEngine *renderengine)
virtual ~CommonRender ()
virtual void arm_command ()
virtual int get_total_tracks ()
virtual Modulenew_module (Track *track)
void delete_vconsole ()
void create_modules ()
void reset_parameters ()
virtual void build_virtual_console ()
virtual VirtualConsolenew_vconsole_object ()
virtual void init_output_buffers ()
void start_plugins ()
void stop_plugins ()
int test_reconfigure (int64_t position, int64_t &length)
void evaluate_current_position ()
void start_command ()
virtual int restart_playback ()
virtual void run ()
 CommonRender (MWindow *mwindow, RenderEngine *renderengine)
virtual int stop_rendering ()
int wait_for_completion ()
virtual int wait_device_completion ()
virtual int process_buffer (int64_t input_len, int64_t input_position)
virtual int get_datatype ()
int get_boundaries (int64_t &current_render_length)
int get_automation (int64_t &current_render_length, int data_type)
int advance_position (int64_t current_render_length)
virtual int64_t tounits (double position, int round)
virtual double fromunits (int64_t position)
virtual int64_t get_render_length (int64_t current_render_length)

Data Fields

RenderEnginerenderengine
VirtualConsolevconsole
int64_t current_position
Conditionstart_lock
int done
int interrupt
int last_playback
int asynchronous
int total_modules
Module ** modules
int data_type
int restart_plugins
MWindowmwindow
int64_t input_length

Protected Member Functions

int test_automation_before (int64_t &current_render_length, int data_type)
int test_automation_after (int64_t &current_render_length, int data_type)

Detailed Description

Definition at line 15 of file commonrender.h.


Constructor & Destructor Documentation

CommonRender::CommonRender ( RenderEngine renderengine  ) 

Definition at line 22 of file commonrender.C.

References reset_parameters(), and start_lock.

Here is the call graph for this function:

CommonRender::~CommonRender (  )  [virtual]

Definition at line 30 of file commonrender.C.

References delete_vconsole(), modules, start_lock, and total_modules.

Here is the call graph for this function:

CommonRender::CommonRender ( MWindow mwindow,
RenderEngine renderengine 
)

Definition at line 270 of file commonrender.C.

References asynchronous, current_position, done, interrupt, last_playback, and vconsole.


Member Function Documentation

void CommonRender::arm_command (  )  [virtual]

virtual int CommonRender::get_total_tracks (  )  [inline, virtual]

Reimplemented in ARender, and VRender.

Definition at line 22 of file commonrender.h.

Referenced by create_modules().

virtual Module* CommonRender::new_module ( Track track  )  [inline, virtual]

Reimplemented in ARender, and VRender.

Definition at line 23 of file commonrender.h.

Referenced by create_modules().

void CommonRender::delete_vconsole (  ) 

Definition at line 177 of file commonrender.C.

References vconsole.

Referenced by restart_playback(), and ~CommonRender().

void CommonRender::create_modules (  ) 

Definition at line 80 of file commonrender.C.

References Module::create_objects(), data_type, RenderEngine::edl, List< TYPE >::first, get_total_tracks(), modules, new_module(), NEXT, renderengine, total_modules, and EDL::tracks.

Referenced by restart_playback().

Here is the call graph for this function:

void CommonRender::reset_parameters (  ) 

Definition at line 42 of file commonrender.C.

References asynchronous, done, interrupt, last_playback, modules, restart_plugins, total_modules, and vconsole.

Referenced by CommonRender().

void CommonRender::build_virtual_console (  )  [virtual]

Definition at line 140 of file commonrender.C.

References VirtualConsole::create_objects(), new_vconsole_object(), and vconsole.

Referenced by restart_playback().

Here is the call graph for this function:

virtual VirtualConsole* CommonRender::new_vconsole_object (  )  [inline, virtual]

Reimplemented in ARender, and VRender.

Definition at line 29 of file commonrender.h.

Referenced by build_virtual_console().

virtual void CommonRender::init_output_buffers (  )  [inline, virtual]

Reimplemented in ARender.

Definition at line 30 of file commonrender.h.

Referenced by arm_command().

void CommonRender::start_plugins (  ) 

Definition at line 111 of file commonrender.C.

References modules, Module::render_init(), restart_plugins, and total_modules.

Referenced by restart_playback().

Here is the call graph for this function:

void CommonRender::stop_plugins (  ) 

Definition at line 123 of file commonrender.C.

References modules, Module::render_stop(), and total_modules.

Referenced by VRender::run(), and ARender::run().

Here is the call graph for this function:

int CommonRender::test_reconfigure ( int64_t  position,
int64_t &  length 
)

Definition at line 131 of file commonrender.C.

References last_playback, modules, VirtualConsole::test_reconfigure(), and vconsole.

Referenced by arm_command().

Here is the call graph for this function:

void CommonRender::evaluate_current_position (  ) 

void CommonRender::start_command (  ) 

int CommonRender::restart_playback (  )  [virtual]

void CommonRender::run (  )  [virtual]

Implements Thread.

Reimplemented in ARender, and VRender.

Definition at line 245 of file commonrender.C.

References start_lock, and Condition::unlock().

Here is the call graph for this function:

virtual int CommonRender::stop_rendering (  )  [inline, virtual]

Definition at line 75 of file commonrender.h.

int CommonRender::wait_for_completion (  ) 

Definition at line 284 of file commonrender.C.

References Thread::join().

Here is the call graph for this function:

virtual int CommonRender::wait_device_completion (  )  [inline, virtual]

Reimplemented in ARender.

Definition at line 77 of file commonrender.h.

virtual int CommonRender::process_buffer ( int64_t  input_len,
int64_t  input_position 
) [inline, virtual]

Reimplemented in ARender.

Definition at line 79 of file commonrender.h.

virtual int CommonRender::get_datatype (  )  [inline, virtual]

Reimplemented in ARender, and VRender.

Definition at line 81 of file commonrender.h.

int CommonRender::get_boundaries ( int64_t &  current_render_length  ) 

int CommonRender::get_automation ( int64_t &  current_render_length,
int  data_type 
)

int CommonRender::advance_position ( int64_t  current_render_length  ) 

int64_t CommonRender::tounits ( double  position,
int  round 
) [virtual]

Reimplemented in ARender, and VRender.

Definition at line 322 of file commonrender.C.

Referenced by advance_position(), arm_command(), and get_boundaries().

double CommonRender::fromunits ( int64_t  position  )  [virtual]

Reimplemented in ARender, and VRender.

Definition at line 327 of file commonrender.C.

virtual int64_t CommonRender::get_render_length ( int64_t  current_render_length  )  [inline, virtual]

Reimplemented in ARender.

Definition at line 92 of file commonrender.h.

int CommonRender::test_automation_before ( int64_t &  current_render_length,
int  data_type 
) [protected]

int CommonRender::test_automation_after ( int64_t &  current_render_length,
int  data_type 
) [protected]


Field Documentation

Definition at line 61 of file commonrender.h.

Referenced by ARender::ARender(), create_modules(), start_command(), and VRender::VRender().

Definition at line 92 of file commonrender.h.

Definition at line 96 of file commonrender.h.

Referenced by VRender::VRender().


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

Generated on Mon Apr 28 14:19:21 2008 for Cinelerra by  doxygen 1.5.5