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

BRender Class Reference

#include <brender.h>

List of all members.

Public Types

enum  { NOT_SCANNED, SCANNED, RENDERED }

Public Member Functions

 BRender (MWindow *mwindow)
 ~BRender ()
void restart (EDL *edl)
void stop ()
int get_last_contiguous (int64_t brender_start)
void allocate_map (int64_t brender_start, int64_t start, int64_t end)
int set_video_map (int64_t position, int value)
void initialize ()
void run ()

Public Attributes

MWindowmwindow
unsigned char * map
int64_t map_size
Mutex * map_lock
int map_valid
int last_contiguous
Condition * completion_lock
BRenderThreadthread
int master_pid
char socket_path [BCTEXTLEN]
char * arguments [4]
Timer * timer


Detailed Description

Definition at line 60 of file brender.h.


Member Enumeration Documentation

anonymous enum
 

Enumerator:
NOT_SCANNED 
SCANNED 
RENDERED 

Definition at line 100 of file brender.h.


Constructor & Destructor Documentation

BRender::BRender MWindow mwindow  ) 
 

Definition at line 39 of file brender.C.

References arguments, completion_lock, last_contiguous, map, map_lock, map_size, map_valid, master_pid, socket_path, thread, and timer.

BRender::~BRender  ) 
 

Definition at line 57 of file brender.C.

References arguments, completion_lock, map, map_lock, master_pid, remove(), socket_path, stop(), thread, and timer.


Member Function Documentation

void BRender::allocate_map int64_t  brender_start,
int64_t  start,
int64_t  end
 

Definition at line 211 of file brender.C.

References MainSession::brender_end, MWindow::edl, EDLSession::frame_rate, last_contiguous, map, map_lock, map_size, map_valid, mwindow, EDL::session, and MWindow::session.

Referenced by BRenderThread::start().

int BRender::get_last_contiguous int64_t  brender_start  ) 
 

Definition at line 199 of file brender.C.

References last_contiguous, map_lock, and map_valid.

void BRender::initialize  ) 
 

Definition at line 99 of file brender.C.

References BRenderThread::initialize(), mwindow, socket_path, thread, and timer.

Referenced by MWindow::init_brender().

void BRender::restart EDL edl  ) 
 

Definition at line 171 of file brender.C.

References BRenderCommand::BRENDER_RESTART, BRenderCommand::command, BRenderCommand::copy_edl(), map_valid, BRenderThread::send_command(), and thread.

Referenced by MWindow::init_brender(), and MWindow::restart_brender().

void BRender::run  ) 
 

Definition at line 117 of file brender.C.

References _, arguments, fclose(), fopen(), fread(), master_pid, and socket_path.

int BRender::set_video_map int64_t  position,
int  value
 

Definition at line 235 of file brender.C.

References _, MainSession::brender_end, MWindow::edl, EDLSession::frame_rate, MWindow::gui, last_contiguous, map, map_lock, map_size, mwindow, NOT_SCANNED, EDL::session, MWindow::session, MWindowGUI::timebar, timer, and TimeBar::update().

Referenced by RenderFarmServerThread::set_video_map().

void BRender::stop  ) 
 

Definition at line 184 of file brender.C.

References BRenderCommand::BRENDER_STOP, BRenderCommand::command, completion_lock, BRenderThread::send_command(), and thread.

Referenced by MWindow::stop_brender(), and ~BRender().


Member Data Documentation

char* BRender::arguments[4]
 

Definition at line 121 of file brender.h.

Referenced by BRender(), run(), and ~BRender().

Condition* BRender::completion_lock
 

Definition at line 114 of file brender.h.

Referenced by BRender(), BRenderThread::run(), BRenderThread::stop(), stop(), and ~BRender().

int BRender::last_contiguous
 

Definition at line 111 of file brender.h.

Referenced by allocate_map(), BRender(), get_last_contiguous(), set_video_map(), and BRenderThread::start().

unsigned char* BRender::map
 

Definition at line 94 of file brender.h.

Referenced by allocate_map(), BRender(), MWindow::brender_available(), set_video_map(), and ~BRender().

Mutex* BRender::map_lock
 

Definition at line 96 of file brender.h.

Referenced by allocate_map(), BRender(), MWindow::brender_available(), get_last_contiguous(), set_video_map(), and ~BRender().

int64_t BRender::map_size
 

Definition at line 95 of file brender.h.

Referenced by allocate_map(), BRender(), MWindow::brender_available(), and set_video_map().

int BRender::map_valid
 

Definition at line 108 of file brender.h.

Referenced by allocate_map(), BRender(), MWindow::brender_available(), get_last_contiguous(), and restart().

int BRender::master_pid
 

Definition at line 117 of file brender.h.

Referenced by BRender(), run(), and ~BRender().

MWindow* BRender::mwindow
 

Definition at line 88 of file brender.h.

Referenced by allocate_map(), initialize(), and set_video_map().

char BRender::socket_path[BCTEXTLEN]
 

Definition at line 119 of file brender.h.

Referenced by BRender(), initialize(), run(), BRenderThread::start(), and ~BRender().

BRenderThread* BRender::thread
 

Definition at line 115 of file brender.h.

Referenced by BRender(), initialize(), restart(), stop(), and ~BRender().

Timer* BRender::timer
 

Definition at line 122 of file brender.h.

Referenced by BRender(), initialize(), set_video_map(), and ~BRender().


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