Render Class Reference

#include <render.h>

Inherits Thread.

Collaboration diagram for Render:

Collaboration graph
[legend]

Public Types

enum  { INTERACTIVE, BATCH }

Public Member Functions

 Render (MWindow *mwindow)
 ~Render ()
void start_interactive ()
void start_batches (ArrayList< BatchRenderJob * > *jobs)
void start_batches (ArrayList< BatchRenderJob * > *jobs, BC_Hash *boot_defaults, Preferences *preferences, ArrayList< PluginServer * > *plugindb)
void stop_operation ()
void run ()
int render (int test_overwrite, Asset *asset, EDL *edl, int strategy, int range_type)
int load_defaults (Asset *asset)
int save_defaults (Asset *asset)
int load_profile (int profile_slot, Asset *asset)
int check_numbering (Asset &asset)
int direct_frame_copy (EDL *edl, int64_t &render_video_position, File *file)
int direct_copy_possible (EDL *edl, int64_t current_position, Track *playable_track, Edit *&playable_edit, File *file)
void start_progress ()
void stop_progress ()

Static Public Member Functions

static int check_asset (EDL *edl, Asset &asset)
static int fix_strategy (int strategy, int use_renderfarm)
static void create_filename (char *path, char *default_path, int current_number, int total_digits, int number_start)
static void get_starting_number (char *path, int &current_number, int &number_start, int &total_digits, int min_digits=3)

Data Fields

int mode
int batch_cancelled
int load_mode
int in_progress
int direct_frame_copying
CICacheaudio_cache
CICachevideo_cache
VFramecompressed_output
MainProgressBarprogress
RenderProgressrender_progress
MWindowmwindow
PlayableTracksplayable_tracks
PackageDispatcherpackages
Mutexpackage_lock
Mutexcounter_lock
Preferencespreferences
ArrayList< PluginServer * > * plugindb
int strategy
int range_type
double total_start
double total_end
int result
Assetdefault_asset
TransportCommandcommand
ArrayList< BatchRenderJob * > * jobs
Conditioncompletion
int64_t total_rendered
double frames_per_second
double elapsed_time
RenderWindowrender_window
int64_t progress_max
Timerprogress_timer
int64_t last_eta

Detailed Description

Definition at line 80 of file render.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
INTERACTIVE 
BATCH 

Definition at line 140 of file render.h.


Constructor & Destructor Documentation

Render::Render ( MWindow mwindow  ) 

Render::~Render (  ) 

Definition at line 226 of file render.C.

References completion, counter_lock, package_lock, preferences, and progress_timer.


Member Function Documentation

void Render::start_interactive (  ) 

void Render::start_batches ( ArrayList< BatchRenderJob * > *  jobs  ) 

void Render::start_batches ( ArrayList< BatchRenderJob * > *  jobs,
BC_Hash boot_defaults,
Preferences preferences,
ArrayList< PluginServer * > *  plugindb 
)

Definition at line 283 of file render.C.

References BATCH, batch_cancelled, completion, mode, Condition::reset(), and run().

Here is the call graph for this function:

void Render::stop_operation (  ) 

Definition at line 299 of file render.C.

References batch_cancelled, completion, Condition::lock(), Condition::reset(), and Thread::running().

Referenced by BatchRenderThread::stop_rendering().

Here is the call graph for this function:

void Render::run (  )  [virtual]

int Render::render ( int  test_overwrite,
Asset asset,
EDL edl,
int  strategy,
int  range_type 
)

Definition at line 564 of file render.C.

References _, audio_cache, BATCH, batch_cancelled, BCTEXTLEN, TransportCommand::change_type, check_asset(), MWindow::clear(), TransportCommand::command, command, FileSystem::complete_path(), completion, EDL::copy_all(), Preferences::copy_from(), counter_lock, PackageDispatcher::create_packages(), default_asset, MWindow::edl, TransportCommand::end_position, EQUIV, fix_strategy(), EDLSession::frame_rate, Asset::frame_rate, frames_per_second, BC_WindowBase::get_abs_cursor_x(), BC_WindowBase::get_abs_cursor_y(), PackageDispatcher::get_asset_list(), Timer::get_difference(), TransportCommand::get_edl(), MWindow::gui, in_progress, PackageRenderer::initialize(), MainProgressBar::is_cancelled(), EDLSession::labels_follow_edits, MWindow::load_assets(), load_mode, BC_WindowBase::lock_window(), MAX_CHANNELS, Theme::message_error, mode, mwindow, packages, PackageDispatcher::packages_are_done(), Asset::path, TransportCommand::playback_range_adjust_inout(), TransportCommand::playback_range_inout(), TransportCommand::playback_range_project(), plugindb, EDLSession::plugins_follow_edits, MWindow::preferences, preferences, progress, PackageRenderer::render_package(), MWindow::restart_brender(), result, EDLSession::sample_rate, Asset::sample_rate, MWindow::save_backup(), EDL::session, TransportCommand::set_playback_range(), MWindowGUI::show_message(), RenderFarmServer::start_clients(), BC_WindowBase::start_hourglass(), TransportCommand::start_position, start_progress(), MWindow::stop_brender(), BC_WindowBase::stop_hourglass(), stop_progress(), MWindow::sync_parameters(), MWindow::theme, total_end, total_rendered, total_start, MWindow::undo, Condition::unlock(), BC_WindowBase::unlock_window(), MWindowGUI::update(), Timer::update(), MWindow::update_plugin_guis(), MainUndo::update_undo(), Preferences::use_renderfarm, video_cache, RenderPackage::video_end, RenderPackage::video_start, and RenderFarmServer::wait_clients().

Referenced by run().

Here is the call graph for this function:

int Render::load_defaults ( Asset asset  ) 

Definition at line 1002 of file render.C.

References MWindow::defaults, BC_Hash::get(), Asset::load_defaults(), load_mode, and mwindow.

Referenced by run().

Here is the call graph for this function:

int Render::save_defaults ( Asset asset  ) 

Definition at line 1048 of file render.C.

References MWindow::defaults, load_mode, mwindow, Asset::save_defaults(), and BC_Hash::update().

Referenced by run().

Here is the call graph for this function:

int Render::load_profile ( int  profile_slot,
Asset asset 
)

Definition at line 1021 of file render.C.

References MWindow::defaults, BC_Hash::get(), Asset::load_defaults(), and mwindow.

Referenced by RenderWindow::load_profile().

Here is the call graph for this function:

int Render::check_asset ( EDL edl,
Asset asset 
) [static]

int Render::fix_strategy ( int  strategy,
int  use_renderfarm 
) [static]

Definition at line 497 of file render.C.

Referenced by BatchRenderJob::fix_strategy(), and render().

int Render::check_numbering ( Asset asset  ) 

void Render::create_filename ( char *  path,
char *  default_path,
int  current_number,
int  total_digits,
int  number_start 
) [static]

void Render::get_starting_number ( char *  path,
int &  current_number,
int &  number_start,
int &  total_digits,
int  min_digits = 3 
) [static]

int Render::direct_frame_copy ( EDL edl,
int64_t &  render_video_position,
File file 
)

int Render::direct_copy_possible ( EDL edl,
int64_t  current_position,
Track playable_track,
Edit *&  playable_edit,
File file 
)

void Render::start_progress (  ) 

void Render::stop_progress (  ) 


Field Documentation

Definition at line 139 of file render.h.

Referenced by render(), run(), start_batches(), and start_interactive().

Definition at line 150 of file render.h.

Referenced by Quit::handle_event(), render(), Render(), and start_interactive().

Definition at line 152 of file render.h.

Definition at line 154 of file render.h.

Referenced by render().

Definition at line 154 of file render.h.

Referenced by render().

Definition at line 155 of file render.h.

Definition at line 157 of file render.h.

Referenced by start_progress(), and stop_progress().

Definition at line 159 of file render.h.

Definition at line 160 of file render.h.

Referenced by render(), and start_progress().

Definition at line 161 of file render.h.

Referenced by Render(), and ~Render().

Definition at line 161 of file render.h.

Referenced by render(), Render(), MainPackageRenderer::set_progress(), and ~Render().

Definition at line 163 of file render.h.

Referenced by render(), Render(), and ~Render().

Definition at line 165 of file render.h.

Referenced by render(), Render(), and run().

Definition at line 169 of file render.h.

Referenced by render().

Definition at line 169 of file render.h.

Referenced by render().

Definition at line 172 of file render.h.

Referenced by render(), and start_progress().

Definition at line 173 of file render.h.

Referenced by render().

Definition at line 175 of file render.h.

Referenced by run(), and start_interactive().

Definition at line 177 of file render.h.

Referenced by render(), Render(), start_batches(), start_interactive(), stop_operation(), and ~Render().

Definition at line 183 of file render.h.

Referenced by render(), RenderProgress::run(), and MainPackageRenderer::set_progress().

Definition at line 185 of file render.h.

Referenced by render().

Definition at line 187 of file render.h.

Referenced by Render(), run(), and stop_progress().

Definition at line 190 of file render.h.

Referenced by start_interactive().

Definition at line 193 of file render.h.

Referenced by MainPackageRenderer::set_progress(), and start_progress().

Definition at line 194 of file render.h.

Referenced by Render(), run(), MainPackageRenderer::set_progress(), start_progress(), and ~Render().

Definition at line 195 of file render.h.

Referenced by MainPackageRenderer::set_progress(), and start_progress().


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

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