#include <maskengine.h>
Inherits LoadClient.

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] |
| MaskEngine * | engine |
| short ** | row_spans |
| short | row_spans_h |
Definition at line 35 of file maskengine.h.
| MaskUnit::MaskUnit | ( | MaskEngine * | engine | ) |
| MaskUnit::~MaskUnit | ( | ) |
| void MaskUnit::process_package | ( | LoadPackage * | package | ) | [virtual] |
Reimplemented from LoadClient.
Definition at line 401 of file maskengine.C.
References APPLY_MASK_MULTIPLY_ALPHA, APPLY_MASK_SUBTRACT_ALPHA, BC_A16, BC_A8, BC_A_FLOAT, BC_RGB161616, BC_RGB888, BC_RGB_FLOAT, BC_RGBA16161616, BC_RGBA8888, BC_RGBA_FLOAT, BC_YUV161616, BC_YUV888, BC_YUVA16161616, BC_YUVA8888, 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, VFrame::get_color_model(), get_difference(), VFrame::get_h(), VFrame::get_rows(), LoadServer::get_total_packages(), VFrame::get_w(), MaskEngine::last_nonempty_rowspan, Mutex::lock(), MaskEngine::mask, MAX, 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, SET_TRACE, MaskEngine::stage1_finished_cond, MaskEngine::stage1_finished_count, MaskEngine::stage1_finished_mutex, t, MaskEngine::temp_mask, ArrayList< TYPE >::total, Mutex::unlock(), MaskEngine::value, ArrayList< TYPE >::values, MaskPoint::x, and MaskPoint::y.

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

| 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().
| void MaskUnit::blur_strip | ( | float * | val_p, | |
| float * | val_m, | |||
| float * | dst, | |||
| float * | src, | |||
| int | size, | |||
| T | max | |||
| ) | [inline, private] |
float MaskUnit::n_p[5] [private] |
float MaskUnit::n_m[5] [private] |
float MaskUnit::d_p[5] [private] |
float MaskUnit::d_m[5] [private] |
float MaskUnit::bd_p[5] [private] |
float MaskUnit::bd_m[5] [private] |
MaskEngine* MaskUnit::engine [private] |
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().
1.5.5