Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

CommonRender Class Reference

#include <commonrender.h>

Inheritance diagram for CommonRender:

ARender VRender List of all members.

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 ()
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)

Public Attributes

RenderEnginerenderengine
VirtualConsolevconsole
int64_t current_position
Condition * start_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.

CommonRender::~CommonRender  )  [virtual]
 

Definition at line 30 of file commonrender.C.

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

CommonRender::CommonRender MWindow mwindow,
RenderEngine renderengine
 

Definition at line 262 of file commonrender.C.

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


Member Function Documentation

int CommonRender::advance_position int64_t  current_render_length  ) 
 

Definition at line 285 of file commonrender.C.

References RenderEngine::command, current_position, RenderEngine::edl, TransportCommand::get_direction(), TransportCommand::infinite, EDL::local_session, LocalSession::loop_end, LocalSession::loop_playback, LocalSession::loop_start, renderengine, and tounits().

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

void CommonRender::arm_command  )  [virtual]
 

Reimplemented in ARender.

Definition at line 54 of file commonrender.C.

References RenderEngine::command, current_position, done, init_output_buffers(), interrupt, last_playback, TransportCommand::playbackstart, renderengine, restart_playback(), restart_plugins, VirtualConsole::start_playback(), test_reconfigure(), tounits(), and vconsole.

Referenced by ARender::arm_command(), and RenderEngine::arm_render_threads().

void CommonRender::build_virtual_console  )  [virtual]
 

Definition at line 132 of file commonrender.C.

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

Referenced by restart_playback().

void CommonRender::create_modules  ) 
 

Definition at line 80 of file commonrender.C.

References Module::create_objects(), data_type, RenderEngine::edl, get_total_tracks(), modules, new_module(), renderengine, total_modules, and EDL::tracks.

Referenced by restart_playback().

void CommonRender::delete_vconsole  ) 
 

Definition at line 169 of file commonrender.C.

References vconsole.

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

void CommonRender::evaluate_current_position  ) 
 

double CommonRender::fromunits int64_t  position  )  [virtual]
 

Reimplemented in ARender, and VRender.

Definition at line 319 of file commonrender.C.

int CommonRender::get_automation int64_t &  current_render_length,
int  data_type
 

int CommonRender::get_boundaries int64_t &  current_render_length  ) 
 

Definition at line 175 of file commonrender.C.

References RenderEngine::command, current_position, RenderEngine::edl, TransportCommand::end_position, TransportCommand::get_direction(), TransportCommand::infinite, last_playback, EDL::local_session, LocalSession::loop_end, LocalSession::loop_playback, LocalSession::loop_start, renderengine, TransportCommand::single_frame(), TransportCommand::start_position, and tounits().

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

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

Reimplemented in ARender, and VRender.

Definition at line 80 of file commonrender.h.

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

Reimplemented in ARender.

Definition at line 91 of file commonrender.h.

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 void CommonRender::init_output_buffers  )  [inline, virtual]
 

Reimplemented in ARender.

Definition at line 30 of file commonrender.h.

Referenced by arm_command().

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().

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 int CommonRender::process_buffer int64_t  input_len,
int64_t  input_position
[inline, virtual]
 

Reimplemented in ARender.

Definition at line 78 of file commonrender.h.

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().

int CommonRender::restart_playback  )  [virtual]
 

Definition at line 155 of file commonrender.C.

References build_virtual_console(), create_modules(), delete_vconsole(), done, interrupt, last_playback, restart_plugins, and start_plugins().

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

void CommonRender::run  )  [virtual]
 

Reimplemented in ARender, and VRender.

Definition at line 237 of file commonrender.C.

References start_lock.

void CommonRender::start_command  ) 
 

Definition at line 144 of file commonrender.C.

References RenderEngine::command, data_type, RenderEngine::edl, EDLSession::real_time_playback, TransportCommand::realtime, renderengine, EDL::session, start_lock, and TRACK_AUDIO.

Referenced by RenderEngine::start_render_threads().

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().

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

Definition at line 74 of file commonrender.h.

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

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

int CommonRender::test_reconfigure int64_t  position,
int64_t &  length
 

Definition at line 123 of file commonrender.C.

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

Referenced by arm_command().

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

Reimplemented in ARender, and VRender.

Definition at line 314 of file commonrender.C.

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

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

Reimplemented in ARender.

Definition at line 76 of file commonrender.h.

int CommonRender::wait_for_completion  ) 
 

Definition at line 276 of file commonrender.C.


Member Data Documentation

int CommonRender::asynchronous
 

Definition at line 52 of file commonrender.h.

Referenced by ARender::arm_command(), CommonRender(), reset_parameters(), and VRender::VRender().

int64_t CommonRender::current_position
 

Definition at line 43 of file commonrender.h.

Referenced by advance_position(), arm_command(), VirtualConsole::build_virtual_console(), CommonRender(), Module::create_new_attachments(), get_boundaries(), VirtualVConsole::get_playable_tracks(), VirtualAConsole::get_playable_tracks(), VRender::insert_timecode(), VRender::process_buffer(), ARender::process_buffer(), VRender::run(), RenderEngine::run(), ARender::run(), Module::test_plugins(), and VirtualConsole::test_reconfigure().

int CommonRender::data_type
 

Definition at line 60 of file commonrender.h.

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

int CommonRender::done
 

Definition at line 46 of file commonrender.h.

Referenced by arm_command(), CommonRender(), reset_parameters(), restart_playback(), VRender::run(), and ARender::run().

int64_t CommonRender::input_length
 

Definition at line 95 of file commonrender.h.

Referenced by VRender::VRender().

int CommonRender::interrupt
 

Definition at line 48 of file commonrender.h.

Referenced by arm_command(), CommonRender(), reset_parameters(), restart_playback(), and ARender::run().

int CommonRender::last_playback
 

Definition at line 50 of file commonrender.h.

Referenced by arm_command(), CommonRender(), get_boundaries(), VRender::process_buffer(), ARender::process_buffer(), reset_parameters(), restart_playback(), VRender::run(), ARender::run(), and test_reconfigure().

Module** CommonRender::modules
 

Definition at line 59 of file commonrender.h.

Referenced by create_modules(), VirtualConsole::dump(), RenderEngine::get_module_levels(), VirtualConsole::module_number(), VirtualConsole::module_of(), VirtualConsole::reset_attachments(), reset_parameters(), start_plugins(), VirtualConsole::test_reconfigure(), test_reconfigure(), and ~CommonRender().

MWindow* CommonRender::mwindow
 

Definition at line 91 of file commonrender.h.

RenderEngine* CommonRender::renderengine
 

Definition at line 39 of file commonrender.h.

Referenced by advance_position(), arm_command(), ARender::arm_playback(), ARender::calculate_history_size(), create_modules(), VRender::flash_output(), VRender::fromunits(), ARender::fromunits(), get_boundaries(), VRender::get_colormodel(), VRender::get_total_tracks(), ARender::get_total_tracks(), VRender::get_use_vconsole(), VRender::init_device_buffers(), ARender::init_output_buffers(), VRender::insert_timecode(), VRender::new_module(), ARender::new_module(), VRender::new_vconsole_object(), ARender::new_vconsole_object(), VRender::process_buffer(), VRender::run(), ARender::run(), ARender::send_last_buffer(), start_command(), VRender::start_playback(), VRender::tounits(), ARender::tounits(), and ARender::wait_device_completion().

int CommonRender::restart_plugins
 

Definition at line 62 of file commonrender.h.

Referenced by arm_command(), VirtualConsole::build_virtual_console(), reset_parameters(), restart_playback(), and start_plugins().

Condition* CommonRender::start_lock
 

Definition at line 44 of file commonrender.h.

Referenced by CommonRender(), VRender::run(), run(), ARender::run(), start_command(), and ~CommonRender().

int CommonRender::total_modules
 

Definition at line 58 of file commonrender.h.

Referenced by create_modules(), VirtualConsole::dump(), RenderEngine::get_module_levels(), VirtualConsole::module_of(), VirtualConsole::reset_attachments(), reset_parameters(), start_plugins(), VirtualConsole::test_reconfigure(), and ~CommonRender().

VirtualConsole* CommonRender::vconsole
 

Definition at line 41 of file commonrender.h.

Referenced by arm_command(), build_virtual_console(), CommonRender(), delete_vconsole(), VRender::get_use_vconsole(), VRender::process_buffer(), ARender::process_buffer(), reset_parameters(), VRender::run(), ARender::run(), and test_reconfigure().


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:39:11 2006 for Cinelerra-svn by  doxygen 1.4.4