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

MaskEngine Class Reference

#include <maskengine.h>

Inheritance diagram for MaskEngine:

LoadServer List of all members.

Public Member Functions

 MaskEngine (int cpus)
 ~MaskEngine ()
void do_mask (VFrame *output, int64_t start_position, double frame_rate, double project_frame_rate, MaskAutos *keyframe_set, int direction)
int points_equivalent (ArrayList< MaskPoint * > *new_points, ArrayList< MaskPoint * > *points)
void delete_packages ()
void init_packages ()
LoadClientnew_client ()
LoadPackagenew_package ()

Public Attributes

VFrame * output
VFrame * mask
VFrame * temp_mask
ArrayList< ArrayList< MaskPoint * > * > point_sets
int mode
float feather
float realfeather
int recalculate
int value
pthread_mutex_t stage1_finished_mutex
pthread_cond_t stage1_finished_cond
int stage1_finished_count
Mutex protect_data
int first_nonempty_rowspan
int last_nonempty_rowspan

Detailed Description

Definition at line 69 of file maskengine.h.


Constructor & Destructor Documentation

MaskEngine::MaskEngine int  cpus  ) 
 

Definition at line 913 of file maskengine.C.

References mask, stage1_finished_cond, and stage1_finished_mutex.

MaskEngine::~MaskEngine  ) 
 

Definition at line 922 of file maskengine.C.

References mask, point_sets, stage1_finished_cond, stage1_finished_mutex, and temp_mask.


Member Function Documentation

void MaskEngine::delete_packages  ) 
 

Reimplemented from LoadServer.

void MaskEngine::do_mask VFrame *  output,
int64_t  start_position,
double  frame_rate,
double  project_frame_rate,
MaskAutos keyframe_set,
int  direction
 

Definition at line 948 of file maskengine.C.

References Autos::default_auto, feather, MaskAuto::feather, MaskAutos::get_points(), Autos::get_prev_auto(), MaskAuto::get_submask(), mask, MaskAuto::masks, mode, MaskAuto::mode, point_sets, SubMask::points, points_equivalent(), LoadServer::process_packages(), recalculate, temp_mask, MaskAutos::total_submasks(), value, and MaskAuto::value.

Referenced by VirtualVNode::render_as_module().

void MaskEngine::init_packages  )  [virtual]
 

Reimplemented from LoadServer.

Definition at line 1097 of file maskengine.C.

References first_nonempty_rowspan, LoadServer::get_total_packages(), last_nonempty_rowspan, MIN, output, LoadServer::packages, recalculate, MaskPackage::row1, MaskPackage::row2, and stage1_finished_count.

LoadClient * MaskEngine::new_client  )  [virtual]
 

Reimplemented from LoadServer.

Definition at line 1124 of file maskengine.C.

LoadPackage * MaskEngine::new_package  )  [virtual]
 

Reimplemented from LoadServer.

Definition at line 1129 of file maskengine.C.

int MaskEngine::points_equivalent ArrayList< MaskPoint * > *  new_points,
ArrayList< MaskPoint * > *  points
 

Definition at line 934 of file maskengine.C.

Referenced by do_mask().


Member Data Documentation

float MaskEngine::feather
 

Definition at line 96 of file maskengine.h.

Referenced by do_mask(), and MaskUnit::process_package().

int MaskEngine::first_nonempty_rowspan
 

Definition at line 104 of file maskengine.h.

Referenced by init_packages(), and MaskUnit::process_package().

int MaskEngine::last_nonempty_rowspan
 

Definition at line 105 of file maskengine.h.

Referenced by init_packages(), and MaskUnit::process_package().

VFrame* MaskEngine::mask
 

Definition at line 91 of file maskengine.h.

Referenced by do_mask(), MaskEngine(), MaskUnit::process_package(), and ~MaskEngine().

int MaskEngine::mode
 

Definition at line 95 of file maskengine.h.

Referenced by do_mask(), and MaskUnit::process_package().

VFrame* MaskEngine::output
 

Definition at line 89 of file maskengine.h.

Referenced by init_packages(), and MaskUnit::process_package().

ArrayList<ArrayList<MaskPoint*>*> MaskEngine::point_sets
 

Definition at line 94 of file maskengine.h.

Referenced by do_mask(), MaskUnit::process_package(), and ~MaskEngine().

Mutex MaskEngine::protect_data
 

Definition at line 103 of file maskengine.h.

Referenced by MaskUnit::process_package().

float MaskEngine::realfeather
 

Definition at line 97 of file maskengine.h.

Referenced by MaskUnit::process_package().

int MaskEngine::recalculate
 

Definition at line 98 of file maskengine.h.

Referenced by do_mask(), init_packages(), and MaskUnit::process_package().

pthread_cond_t MaskEngine::stage1_finished_cond
 

Definition at line 101 of file maskengine.h.

Referenced by MaskEngine(), MaskUnit::process_package(), and ~MaskEngine().

int MaskEngine::stage1_finished_count
 

Definition at line 102 of file maskengine.h.

Referenced by init_packages(), and MaskUnit::process_package().

pthread_mutex_t MaskEngine::stage1_finished_mutex
 

Definition at line 100 of file maskengine.h.

Referenced by MaskEngine(), MaskUnit::process_package(), and ~MaskEngine().

VFrame* MaskEngine::temp_mask
 

Definition at line 93 of file maskengine.h.

Referenced by do_mask(), MaskUnit::process_package(), and ~MaskEngine().

int MaskEngine::value
 

Definition at line 99 of file maskengine.h.

Referenced by do_mask(), and MaskUnit::process_package().


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