MaskUnit Class Reference

#include <maskengine.h>

Inherits LoadClient.

Collaboration diagram for MaskUnit:

Collaboration graph
[legend]

Public Member Functions

 MaskUnit (MaskEngine *engine)
 ~MaskUnit ()
void process_package (LoadPackage *package)

Private Member Functions

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)
template<class T>
void blur_strip (float *val_p, float *val_m, float *dst, float *src, int size, T max)

Private 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 51 of file maskengine.C.

References row_spans, and row_spans_h.

MaskUnit::~MaskUnit (  ) 

Definition at line 60 of file maskengine.C.

References row_spans, and row_spans_h.


Member Function Documentation

void MaskUnit::process_package ( LoadPackage package  )  [virtual]

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

Definition at line 89 of file maskengine.C.

References CLIP, and row_spans.

Referenced by process_package().

void MaskUnit::do_feather ( VFrame output,
VFrame input,
float  feather,
int  start_out,
int  end_out 
) [private]

Definition at line 202 of file maskengine.C.

References a, b, BC_A16, BC_A8, BC_A_FLOAT, bd_m, bd_p, constants, d_m, d_p, DO_FEATHER, VFrame::get_color_model(), M_PI, n_m, and n_p.

Referenced by process_package().

Here is the call graph for this function:

int MaskUnit::do_feather_2 ( VFrame output,
VFrame input,
float  feather,
int  start_out,
int  end_out 
) [private]

Definition at line 189 of file maskengine.C.

References DO_FEATHER_N.

Referenced by process_package().

template<class T>
void MaskUnit::blur_strip ( float *  val_p,
float *  val_m,
float *  dst,
float *  src,
int  size,
max 
) [inline, private]

Definition at line 143 of file maskengine.C.

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


Field Documentation

float MaskUnit::n_p[5] [private]

Definition at line 62 of file maskengine.h.

Referenced by blur_strip(), and do_feather().

float MaskUnit::n_m[5] [private]

Definition at line 62 of file maskengine.h.

Referenced by blur_strip(), and do_feather().

float MaskUnit::d_p[5] [private]

Definition at line 63 of file maskengine.h.

Referenced by blur_strip(), and do_feather().

float MaskUnit::d_m[5] [private]

Definition at line 63 of file maskengine.h.

Referenced by blur_strip(), and do_feather().

float MaskUnit::bd_p[5] [private]

Definition at line 64 of file maskengine.h.

Referenced by blur_strip(), and do_feather().

float MaskUnit::bd_m[5] [private]

Definition at line 64 of file maskengine.h.

Referenced by blur_strip(), and do_feather().

Definition at line 65 of file maskengine.h.

Referenced by process_package().

short** MaskUnit::row_spans [private]

Definition at line 66 of file maskengine.h.

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

short MaskUnit::row_spans_h [private]

Definition at line 67 of file maskengine.h.

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


The documentation for this class was generated from the following files:

Generated on Mon Apr 28 14:30:35 2008 for Cinelerra by  doxygen 1.5.5