BRender Class Reference

#include <brender.h>

Inherits Thread.

Collaboration diagram for BRender:

Collaboration graph
[legend]

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

Data Fields

MWindowmwindow
unsigned char * map
int64_t map_size
Mutexmap_lock
int map_valid
int last_contiguous
Conditioncompletion_lock
BRenderThreadthread
int master_pid
char socket_path [BCTEXTLEN]
char * arguments [4]
Timertimer

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, Thread::set_synchronous(), socket_path, thread, and timer.

Here is the call graph for this function:

BRender::~BRender (  ) 

Definition at line 57 of file brender.C.

References arguments, completion_lock, Thread::join(), map, map_lock, master_pid, socket_path, stop(), thread, timer, TRACE, and UNSET_TEMP.

Here is the call graph for this function:


Member Function Documentation

void BRender::restart ( EDL edl  ) 

void BRender::stop (  ) 

Definition at line 184 of file brender.C.

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

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

Here is the call graph for this function:

int BRender::get_last_contiguous ( int64_t  brender_start  ) 

Definition at line 199 of file brender.C.

References last_contiguous, Mutex::lock(), map_lock, map_valid, and Mutex::unlock().

Here is the call graph for this function:

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

int BRender::set_video_map ( int64_t  position,
int  value 
)

void BRender::initialize (  ) 

Definition at line 99 of file brender.C.

References BRenderThread::initialize(), mwindow, SET_TEMP, socket_path, Thread::start(), thread, timer, and Timer::update().

Referenced by MWindow::init_brender().

Here is the call graph for this function:

void BRender::run (  )  [virtual]

Implements Thread.

Definition at line 117 of file brender.C.

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

Here is the call graph for this function:


Field Documentation

Definition at line 88 of file brender.h.

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

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

Definition at line 95 of file brender.h.

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

Definition at line 114 of file brender.h.

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

Definition at line 115 of file brender.h.

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

Definition at line 117 of file brender.h.

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

char BRender::socket_path[BCTEXTLEN]

Definition at line 119 of file brender.h.

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

Definition at line 121 of file brender.h.

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

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 Mon Apr 28 14:17:01 2008 for Cinelerra by  doxygen 1.5.5