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

BRenderThread Class Reference

#include <brender.h>

List of all members.

Public Member Functions

 BRenderThread (MWindow *mwindow, BRender *brender)
 ~BRenderThread ()
int is_done (int do_lock)
void send_command (BRenderCommand *command)
void run ()
void stop ()
void start ()
void initialize ()

Public Attributes

MWindowmwindow
BRenderbrender
BRenderCommandcommand_queue
BRenderCommandcommand
Condition * input_lock
Mutex * thread_lock
RenderFarmServerfarm_server
PackageDispatcherpackages
Preferencespreferences
int farm_result
double fps_result
int64_t total_frames
Mutex * total_frames_lock
int done


Detailed Description

Definition at line 150 of file brender.h.


Constructor & Destructor Documentation

BRenderThread::BRenderThread MWindow mwindow,
BRender brender
 

Definition at line 350 of file brender.C.

References command, command_queue, done, farm_result, farm_server, input_lock, preferences, thread_lock, and total_frames_lock.

BRenderThread::~BRenderThread  ) 
 

Definition at line 366 of file brender.C.

References command, command_queue, done, input_lock, preferences, thread_lock, and total_frames_lock.


Member Function Documentation

void BRenderThread::initialize  ) 
 

Definition at line 382 of file brender.C.

Referenced by BRender::initialize().

int BRenderThread::is_done int  do_lock  ) 
 

Definition at line 406 of file brender.C.

References done, and thread_lock.

Referenced by run().

void BRenderThread::run  ) 
 

Definition at line 414 of file brender.C.

References brender, BRenderCommand::BRENDER_RESTART, BRenderCommand::BRENDER_STOP, command, BRenderCommand::command, command_queue, BRender::completion_lock, BRenderCommand::edl, EDL::equivalent_output(), input_lock, is_done(), BRenderCommand::position, start(), stop(), thread_lock, Tracks::total_playable_vtracks(), and EDL::tracks.

void BRenderThread::send_command BRenderCommand command  ) 
 

Definition at line 387 of file brender.C.

References command_queue, input_lock, and thread_lock.

Referenced by BRender::restart(), and BRender::stop().

void BRenderThread::start  ) 
 

Definition at line 511 of file brender.C.

References Preferences::add_node(), BRender::allocate_map(), brender, Preferences::brender_asset, EDLSession::brender_start, command, Preferences::copy_from(), PackageDispatcher::create_packages(), Preferences::delete_nodes(), BRenderCommand::edl, farm_result, farm_server, fps_result, EDLSession::frame_rate, Asset::frame_rate, Asset::height, EDLSession::interlace_mode, Asset::interlace_mode, BRender::last_contiguous, Preferences::local_rate, MIN, mwindow, EDLSession::output_h, EDLSession::output_w, packages, MWindow::plugindb, BRenderCommand::position, MWindow::preferences, preferences, EDL::session, BRender::socket_path, RenderFarmServer::start_clients(), total_frames, total_frames_lock, Tracks::total_video_length(), EDL::tracks, Asset::use_header, Preferences::use_renderfarm, and Asset::width.

Referenced by run().

void BRenderThread::stop  ) 
 

Definition at line 495 of file brender.C.

References brender, BRender::completion_lock, farm_result, farm_server, packages, preferences, and RenderFarmServer::wait_clients().

Referenced by run().


Member Data Documentation

BRender* BRenderThread::brender
 

Definition at line 164 of file brender.h.

Referenced by run(), start(), and stop().

BRenderCommand* BRenderThread::command
 

Definition at line 166 of file brender.h.

Referenced by BRenderThread(), run(), start(), and ~BRenderThread().

BRenderCommand* BRenderThread::command_queue
 

Definition at line 165 of file brender.h.

Referenced by BRenderThread(), run(), send_command(), and ~BRenderThread().

int BRenderThread::done
 

Definition at line 180 of file brender.h.

Referenced by BRenderThread(), is_done(), and ~BRenderThread().

int BRenderThread::farm_result
 

Definition at line 175 of file brender.h.

Referenced by BRenderThread(), start(), and stop().

RenderFarmServer* BRenderThread::farm_server
 

Definition at line 170 of file brender.h.

Referenced by BRenderThread(), start(), and stop().

double BRenderThread::fps_result
 

Definition at line 176 of file brender.h.

Referenced by start().

Condition* BRenderThread::input_lock
 

Definition at line 167 of file brender.h.

Referenced by BRenderThread(), run(), send_command(), and ~BRenderThread().

MWindow* BRenderThread::mwindow
 

Definition at line 163 of file brender.h.

Referenced by start().

PackageDispatcher* BRenderThread::packages
 

Definition at line 171 of file brender.h.

Referenced by start(), and stop().

Preferences* BRenderThread::preferences
 

Definition at line 173 of file brender.h.

Referenced by BRenderThread(), start(), stop(), and ~BRenderThread().

Mutex* BRenderThread::thread_lock
 

Definition at line 168 of file brender.h.

Referenced by BRenderThread(), is_done(), run(), send_command(), and ~BRenderThread().

int64_t BRenderThread::total_frames
 

Definition at line 178 of file brender.h.

Referenced by start().

Mutex* BRenderThread::total_frames_lock
 

Definition at line 179 of file brender.h.

Referenced by BRenderThread(), start(), and ~BRenderThread().


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