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

Render Class Reference

#include <render.h>

List of all members.

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, Defaults *boot_defaults, Preferences *preferences, ArrayList< PluginServer * > *plugindb)
void stop_operation ()
void run ()
int render (int test_overwrite, Asset *asset, EDL *edl, int strategy)
int load_defaults (Asset *asset)
int save_defaults (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)

Public Attributes

int mode
int batch_cancelled
int load_mode
int in_progress
int direct_frame_copying
CICacheaudio_cache
CICachevideo_cache
VFrame * compressed_output
MainProgressBarprogress
RenderProgressrender_progress
MWindowmwindow
PlayableTracksplayable_tracks
PackageDispatcherpackages
Mutex * package_lock
Mutex * counter_lock
Preferencespreferences
ArrayList< PluginServer * > * plugindb
int strategy
double total_start
double total_end
int result
Assetdefault_asset
TransportCommandcommand
ArrayList< BatchRenderJob * > * jobs
Condition * completion
int64_t total_rendered
double frames_per_second
double elapsed_time
RenderWindowrender_window
int64_t progress_max
Timer * progress_timer
int64_t last_eta


Detailed Description

Definition at line 78 of file render.h.


Member Enumeration Documentation

anonymous enum
 

Enumerator:
INTERACTIVE 
BATCH 

Definition at line 136 of file render.h.


Constructor & Destructor Documentation

Render::Render MWindow mwindow  ) 
 

Definition at line 209 of file render.C.

References completion, counter_lock, elapsed_time, in_progress, package_lock, MWindow::plugindb, plugindb, preferences, progress, and progress_timer.

Render::~Render  ) 
 

Definition at line 224 of file render.C.

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


Member Function Documentation

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

Definition at line 422 of file render.C.

References EDLSession::audio_channels, Asset::audio_data, Asset::byte_order, Asset::channels, Asset::format, EDLSession::frame_rate, EDLSession::get_frame_offset(), LocalSession::get_selectionend(), LocalSession::get_selectionstart(), Asset::height, EDLSession::interlace_mode, Asset::interlace_mode, Asset::layers, EDL::local_session, EDLSession::output_h, EDLSession::output_w, Tracks::playable_audio_tracks(), Tracks::playable_video_tracks(), EDLSession::sample_rate, EDL::session, File::supports_audio(), File::supports_video(), Asset::tcend, Asset::tcstart, EDL::tracks, Asset::video_data, and Asset::width.

Referenced by PackageRenderer::initialize(), render(), and run().

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]
 

Definition at line 893 of file render.C.

Referenced by FileList::calculate_path(), PackageDispatcher::create_packages(), PackageDispatcher::get_package(), and MenuEffectThread::run().

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

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

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

Definition at line 478 of file render.C.

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

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

Definition at line 924 of file render.C.

Referenced by PackageDispatcher::create_packages(), FileList::open_file(), and MenuEffectThread::run().

int Render::load_defaults Asset asset  ) 
 

Definition at line 975 of file render.C.

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

Referenced by run().

int Render::render int  test_overwrite,
Asset asset,
EDL edl,
int  strategy
 

Definition at line 548 of file render.C.

References _, PlaybackConfig::aconfig, TransportCommand::adjust_playback_range(), audio_cache, EDLSession::audio_channels, BATCH, batch_cancelled, TransportCommand::change_type, check_asset(), MWindow::clear(), TransportCommand::command, command, completion, EDL::copy_all(), Preferences::copy_from(), counter_lock, PackageDispatcher::create_packages(), default_asset, AudioOutConfig::do_channel, VideoOutConfig::do_channel, MWindow::edl, TransportCommand::end_position, fix_strategy(), EDLSession::frame_rate, Asset::frame_rate, frames_per_second, PackageDispatcher::get_asset_list(), TransportCommand::get_edl(), MWindow::gui, in_progress, PackageRenderer::initialize(), MainProgressBar::is_cancelled(), EDLSession::labels_follow_edits, MWindow::load_assets(), load_mode, MAX_CHANNELS, Theme::message_error, mode, mwindow, packages, Asset::path, 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(), TransportCommand::start_position, start_progress(), MWindow::stop_brender(), stop_progress(), MWindow::sync_parameters(), MWindow::theme, total_end, total_rendered, total_start, MWindow::undo, MWindowGUI::update(), MWindow::update_plugin_guis(), MainUndo::update_undo(), Preferences::use_renderfarm, PlaybackConfig::vconfig, video_cache, EDLSession::video_channels, RenderPackage::video_end, RenderPackage::video_start, and RenderFarmServer::wait_clients().

Referenced by run().

void Render::run  ) 
 

Definition at line 307 of file render.C.

References BatchRenderJob::asset, BATCH, MWindow::batch_render, check_asset(), FormatCheck::check_format(), EDL::create_objects(), RenderWindow::create_objects(), MWindow::edl, BatchRenderJob::edl_path, elapsed_time, BatchRenderJob::enabled, Asset::format, RenderWindow::format_tools, INTERACTIVE, jobs, load_defaults(), EDL::load_xml(), mode, mwindow, Asset::path, FormatTools::path_recent, MWindow::plugindb, plugindb, progress_timer, FileXML::read_from_file(), render(), render_window, result, MWindow::save_defaults(), save_defaults(), BatchRenderJob::strategy, strategy, BatchRenderThread::update_active(), and BatchRenderThread::update_done().

Referenced by start_batches().

int Render::save_defaults Asset asset  ) 
 

Definition at line 993 of file render.C.

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

Referenced by run().

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

Definition at line 279 of file render.C.

References BATCH, batch_cancelled, completion, mode, and run().

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

Definition at line 259 of file render.C.

References BATCH, batch_cancelled, completion, MWindow::gui, mode, and mwindow.

Referenced by BatchRenderThread::start_rendering().

void Render::start_interactive  ) 
 

Definition at line 233 of file render.C.

References batch_cancelled, completion, RenderWindow::create_objects(), MWindow::gui, in_progress, INTERACTIVE, jobs, mode, mwindow, and render_window.

Referenced by RenderItem::handle_event().

void Render::start_progress  ) 
 

Definition at line 499 of file render.C.

References _, default_asset, last_eta, MWindow::mainprogress, mwindow, packages, Asset::path, preferences, progress, progress_max, progress_timer, Preferences::render_preroll, render_progress, Asset::sample_rate, MainProgress::start_progress(), PackageDispatcher::total_allocated, total_end, and total_start.

Referenced by render().

void Render::stop_operation  ) 
 

Definition at line 295 of file render.C.

References batch_cancelled, and completion.

Referenced by BatchRenderThread::stop_rendering().

void Render::stop_progress  ) 
 

Definition at line 526 of file render.C.

References _, elapsed_time, MainProgressBar::get_time(), MWindow::gui, mwindow, progress, render_progress, MWindowGUI::show_message(), and MainProgressBar::stop_progress().

Referenced by render().


Member Data Documentation

CICache* Render::audio_cache
 

Definition at line 150 of file render.h.

Referenced by render().

int Render::batch_cancelled
 

Definition at line 142 of file render.h.

Referenced by MainPackageRenderer::progress_cancelled(), render(), start_batches(), start_interactive(), and stop_operation().

TransportCommand* Render::command
 

Definition at line 168 of file render.h.

Referenced by render().

Condition* Render::completion
 

Definition at line 172 of file render.h.

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

VFrame* Render::compressed_output
 

Definition at line 151 of file render.h.

Mutex * Render::counter_lock
 

Definition at line 157 of file render.h.

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

Asset* Render::default_asset
 

Definition at line 167 of file render.h.

Referenced by render(), and start_progress().

int Render::direct_frame_copying
 

Definition at line 148 of file render.h.

double Render::elapsed_time
 

Definition at line 182 of file render.h.

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

double Render::frames_per_second
 

Definition at line 180 of file render.h.

Referenced by render().

int Render::in_progress
 

Definition at line 146 of file render.h.

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

ArrayList<BatchRenderJob*>* Render::jobs
 

Definition at line 170 of file render.h.

Referenced by run(), and start_interactive().

int64_t Render::last_eta
 

Definition at line 190 of file render.h.

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

int Render::load_mode
 

Definition at line 145 of file render.h.

Referenced by RenderWindow::create_objects(), load_defaults(), render(), and save_defaults().

int Render::mode
 

Definition at line 135 of file render.h.

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

MWindow* Render::mwindow
 

Definition at line 154 of file render.h.

Referenced by load_defaults(), render(), run(), save_defaults(), start_batches(), start_interactive(), start_progress(), and stop_progress().

Mutex* Render::package_lock
 

Definition at line 157 of file render.h.

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

PackageDispatcher* Render::packages
 

Definition at line 156 of file render.h.

Referenced by render(), and start_progress().

PlayableTracks* Render::playable_tracks
 

Definition at line 155 of file render.h.

ArrayList<PluginServer*>* Render::plugindb
 

Definition at line 161 of file render.h.

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

Preferences* Render::preferences
 

Definition at line 159 of file render.h.

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

MainProgressBar* Render::progress
 

Definition at line 152 of file render.h.

Referenced by MainPackageRenderer::progress_cancelled(), render(), Render(), RenderProgress::run(), MainPackageRenderer::set_progress(), start_progress(), and stop_progress().

int64_t Render::progress_max
 

Definition at line 188 of file render.h.

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

Timer* Render::progress_timer
 

Definition at line 189 of file render.h.

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

RenderProgress* Render::render_progress
 

Definition at line 153 of file render.h.

Referenced by start_progress(), and stop_progress().

RenderWindow* Render::render_window
 

Definition at line 185 of file render.h.

Referenced by run(), and start_interactive().

int Render::result
 

Definition at line 166 of file render.h.

Referenced by MainPackageRenderer::get_result(), render(), run(), and MainPackageRenderer::set_result().

int Render::strategy
 

Definition at line 162 of file render.h.

Referenced by RenderWindow::create_objects(), and run().

double Render::total_end
 

Definition at line 164 of file render.h.

Referenced by render(), and start_progress().

int64_t Render::total_rendered
 

Definition at line 178 of file render.h.

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

double Render::total_start
 

Definition at line 164 of file render.h.

Referenced by render(), and start_progress().

CICache * Render::video_cache
 

Definition at line 150 of file render.h.

Referenced by render().


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