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

MaskUnit Class Reference

#include <maskengine.h>

Inheritance diagram for MaskUnit:

LoadClient List of all members.

Public Member Functions

 MaskUnit (MaskEngine *engine)
 ~MaskUnit ()
void process_package (LoadPackage *package)
void draw_line_clamped (int x1, int y1, int x2, int y2, int w, int h, int hoffset)
void do_feather (VFrame *output, VFrame *input, float feather, int start_out, int end_out)
int do_feather_2 (VFrame *output, VFrame *input, float feather, int start_out, int end_out)
void blur_strip (float *val_p, float *val_m, float *dst, float *src, int size, int max)

Public Attributes

float n_p [5]
float n_m [5]
float d_p [5]
float d_m [5]
float bd_p [5]
float bd_m [5]
MaskEngineengine
short ** row_spans
short row_spans_h

Detailed Description

Definition at line 35 of file maskengine.h.


Constructor & Destructor Documentation

MaskUnit::MaskUnit MaskEngine engine  ) 
 

Definition at line 50 of file maskengine.C.

References row_spans, and row_spans_h.

MaskUnit::~MaskUnit  ) 
 

Definition at line 59 of file maskengine.C.

References row_spans, and row_spans_h.


Member Function Documentation

void MaskUnit::blur_strip float *  val_p,
float *  val_m,
float *  dst,
float *  src,
int  size,
int  max
 

Definition at line 128 of file maskengine.C.

References bd_m, bd_p, CLAMP, d_m, d_p, n_m, and n_p.

void MaskUnit::do_feather VFrame *  output,
VFrame *  input,
float  feather,
int  start_out,
int  end_out
 

Definition at line 187 of file maskengine.C.

References bd_m, bd_p, d_m, d_p, DO_FEATHER, n_m, and n_p.

Referenced by process_package().

int MaskUnit::do_feather_2 VFrame *  output,
VFrame *  input,
float  feather,
int  start_out,
int  end_out
 

Definition at line 174 of file maskengine.C.

References DO_FEATHER_N.

Referenced by process_package().

void MaskUnit::draw_line_clamped int  x1,
int  y1,
int  x2,
int  y2,
int  w,
int  h,
int  hoffset
[inline]
 

Definition at line 75 of file maskengine.C.

References row_spans.

Referenced by process_package().

void MaskUnit::process_package LoadPackage package  )  [virtual]
 

Reimplemented from LoadClient.

Definition at line 382 of file maskengine.C.

References APPLY_MASK_MULTIPLY_ALPHA, APPLY_MASK_SUBTRACT_ALPHA, MaskPoint::control_x1, MaskPoint::control_x2, MaskPoint::control_y1, MaskPoint::control_y2, do_feather(), do_feather_2(), LoadClient::done, draw_line_clamped(), engine, MaskEngine::feather, MaskEngine::first_nonempty_rowspan, get_difference(), LoadServer::get_total_packages(), MaskEngine::last_nonempty_rowspan, MaskEngine::mask, MAXP, MIN, MaskEngine::mode, NUM_SPANS, MaskEngine::output, OVERSAMPLE, P, MaskEngine::point_sets, MaskEngine::protect_data, MaskEngine::realfeather, MaskEngine::recalculate, MaskPackage::row1, MaskPackage::row2, row_spans, row_spans_h, MaskEngine::stage1_finished_cond, MaskEngine::stage1_finished_count, MaskEngine::stage1_finished_mutex, MaskEngine::temp_mask, MaskEngine::value, MaskPoint::x, and MaskPoint::y.


Member Data Documentation

float MaskUnit::bd_m[5]
 

Definition at line 62 of file maskengine.h.

Referenced by blur_strip(), and do_feather().

float MaskUnit::bd_p[5]
 

Definition at line 62 of file maskengine.h.

Referenced by blur_strip(), and do_feather().

float MaskUnit::d_m[5]
 

Definition at line 61 of file maskengine.h.

Referenced by blur_strip(), and do_feather().

float MaskUnit::d_p[5]
 

Definition at line 61 of file maskengine.h.

Referenced by blur_strip(), and do_feather().

MaskEngine* MaskUnit::engine
 

Definition at line 63 of file maskengine.h.

Referenced by process_package().

float MaskUnit::n_m[5]
 

Definition at line 60 of file maskengine.h.

Referenced by blur_strip(), and do_feather().

float MaskUnit::n_p[5]
 

Definition at line 60 of file maskengine.h.

Referenced by blur_strip(), and do_feather().

short** MaskUnit::row_spans
 

Definition at line 64 of file maskengine.h.

Referenced by draw_line_clamped(), MaskUnit(), process_package(), and ~MaskUnit().

short MaskUnit::row_spans_h
 

Definition at line 65 of file maskengine.h.

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


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