#include <maskengine.h>
Inherits LoadServer.

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 before_plugins) |
| int | points_equivalent (ArrayList< MaskPoint * > *new_points, ArrayList< MaskPoint * > *points) |
| void | delete_packages () |
| void | init_packages () |
| LoadClient * | new_client () |
| LoadPackage * | new_package () |
Data Fields | |
| 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 |
Definition at line 71 of file maskengine.h.
| MaskEngine::MaskEngine | ( | int | cpus | ) |
Definition at line 955 of file maskengine.C.
References NULL, stage1_finished_cond, and stage1_finished_mutex.
| MaskEngine::~MaskEngine | ( | ) |
Definition at line 964 of file maskengine.C.
References point_sets, ArrayList< TYPE >::remove_all_objects(), stage1_finished_cond, stage1_finished_mutex, temp_mask, ArrayList< TYPE >::total, and ArrayList< TYPE >::values.

| void MaskEngine::do_mask | ( | VFrame * | output, | |
| int64_t | start_position, | |||
| double | frame_rate, | |||
| double | project_frame_rate, | |||
| MaskAutos * | keyframe_set, | |||
| int | direction, | |||
| int | before_plugins | |||
| ) |
Definition at line 996 of file maskengine.C.
References ArrayList< TYPE >::append(), 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, VFrame::clear_frame(), Autos::default_auto, EQUIV, feather, VFrame::get_color_model(), VFrame::get_h(), MaskAutos::get_points(), Autos::get_prev_auto(), VFrame::get_w(), mode, MaskAuto::mode, point_sets, SubMask::points, points_equivalent(), LoadServer::process_packages(), recalculate, ArrayList< TYPE >::remove_all_objects(), SET_TRACE, temp_mask, ArrayList< TYPE >::total, MaskAutos::total_submasks(), value, and ArrayList< TYPE >::values.
Referenced by VModule::render(), and VirtualVNode::render_mask().

| int MaskEngine::points_equivalent | ( | ArrayList< MaskPoint * > * | new_points, | |
| ArrayList< MaskPoint * > * | points | |||
| ) |
Definition at line 982 of file maskengine.C.
References ArrayList< TYPE >::total, and ArrayList< TYPE >::values.
Referenced by do_mask().
| void MaskEngine::delete_packages | ( | ) |
Reimplemented from LoadServer.
| void MaskEngine::init_packages | ( | ) | [virtual] |
Reimplemented from LoadServer.
Definition at line 1164 of file maskengine.C.
References first_nonempty_rowspan, VFrame::get_h(), LoadServer::get_package(), LoadServer::get_total_packages(), last_nonempty_rowspan, MIN, output, recalculate, MaskPackage::row1, MaskPackage::row2, SET_TRACE, and stage1_finished_count.

| LoadClient * MaskEngine::new_client | ( | ) | [virtual] |
| LoadPackage * MaskEngine::new_package | ( | ) | [virtual] |
Definition at line 93 of file maskengine.h.
Referenced by init_packages(), and MaskUnit::process_package().
Definition at line 97 of file maskengine.h.
Referenced by do_mask(), MaskUnit::process_package(), and ~MaskEngine().
Definition at line 98 of file maskengine.h.
Referenced by do_mask(), MaskUnit::process_package(), and ~MaskEngine().
| int MaskEngine::mode |
Definition at line 99 of file maskengine.h.
Referenced by do_mask(), and MaskUnit::process_package().
| float MaskEngine::feather |
Definition at line 100 of file maskengine.h.
Referenced by do_mask(), and MaskUnit::process_package().
| float MaskEngine::realfeather |
Definition at line 102 of file maskengine.h.
Referenced by do_mask(), init_packages(), and MaskUnit::process_package().
Definition at line 103 of file maskengine.h.
Referenced by do_mask(), and MaskUnit::process_package().
| pthread_mutex_t MaskEngine::stage1_finished_mutex |
Definition at line 104 of file maskengine.h.
Referenced by MaskEngine(), MaskUnit::process_package(), and ~MaskEngine().
| pthread_cond_t MaskEngine::stage1_finished_cond |
Definition at line 105 of file maskengine.h.
Referenced by MaskEngine(), MaskUnit::process_package(), and ~MaskEngine().
Definition at line 106 of file maskengine.h.
Referenced by init_packages(), and MaskUnit::process_package().
Definition at line 108 of file maskengine.h.
Referenced by init_packages(), and MaskUnit::process_package().
Definition at line 109 of file maskengine.h.
Referenced by init_packages(), and MaskUnit::process_package().
1.5.5