#include <blur.h>
Inherits Thread.

Public Member Functions | |
| BlurEngine (BlurMain *plugin, int start_y, int end_y) | |
| ~BlurEngine () | |
| void | run () |
| int | start_process_frame (VFrame *output, VFrame *input) |
| int | wait_process_frame () |
| int | get_constants () |
| int | reconfigure () |
| int | transfer_pixels (pixel_f *src1, pixel_f *src2, pixel_f *dest, int size) |
| int | multiply_alpha (pixel_f *row, int size) |
| int | separate_alpha (pixel_f *row, int size) |
| int | blur_strip3 (int &size) |
| int | blur_strip4 (int &size) |
Data Fields | |
| int | color_model |
| float | vmax |
| pixel_f * | val_p |
| pixel_f * | val_m |
| pixel_f * | vp |
| pixel_f * | vm |
| pixel_f * | sp_p |
| pixel_f * | sp_m |
| float | n_p [5] |
| float | n_m [5] |
| float | d_p [5] |
| float | d_m [5] |
| float | bd_p [5] |
| float | bd_m [5] |
| float | std_dev |
| pixel_f * | src |
| pixel_f * | dst |
| pixel_f | initial_p |
| pixel_f | initial_m |
| int | terms |
| BlurMain * | plugin |
| int | start_in |
| int | start_out |
| int | end_in |
| int | end_out |
| VFrame * | output |
| VFrame * | input |
| int | last_frame |
| Mutex | input_lock |
| Mutex | output_lock |
Definition at line 70 of file blur.h.
| BlurEngine::BlurEngine | ( | BlurMain * | plugin, | |
| int | start_y, | |||
| int | end_y | |||
| ) |
Definition at line 316 of file blur.C.
References dst, VFrame::get_h(), VFrame::get_w(), BlurMain::input, input_lock, last_frame, Mutex::lock(), output_lock, Thread::set_synchronous(), src, val_m, and val_p.

| BlurEngine::~BlurEngine | ( | ) |
Definition at line 334 of file blur.C.
References input_lock, Thread::join(), last_frame, and Mutex::unlock().

| void BlurEngine::run | ( | ) | [virtual] |
Implements Thread.
Definition at line 355 of file blur.C.
References BC_RGB161616, BC_RGB888, BC_RGB_FLOAT, BC_RGBA16161616, BC_RGBA8888, BC_RGBA_FLOAT, BC_YUV161616, BC_YUV888, BC_YUVA16161616, BC_YUVA8888, BLUR, color_model, end_in, end_out, VFrame::get_color_model(), VFrame::get_h(), VFrame::get_w(), input, BlurMain::input, input_lock, last_frame, Mutex::lock(), output_lock, plugin, start_in, start_out, and Mutex::unlock().

Definition at line 341 of file blur.C.
References input_lock, and Mutex::unlock().
Referenced by BlurMain::process_realtime().

| int BlurEngine::wait_process_frame | ( | ) |
Definition at line 349 of file blur.C.
References Mutex::lock(), and output_lock.
Referenced by BlurMain::process_realtime().

| int BlurEngine::get_constants | ( | ) |
| int BlurEngine::reconfigure | ( | ) |
Definition at line 499 of file blur.C.
References get_constants(), plugin, and std_dev.

Definition at line 591 of file blur.C.
References pixel_f::a, pixel_f::b, BOUNDARY, pixel_f::g, and pixel_f::r.
Referenced by blur_strip3(), and blur_strip4().
| int BlurEngine::multiply_alpha | ( | pixel_f * | row, | |
| int | size | |||
| ) |
| int BlurEngine::separate_alpha | ( | pixel_f * | row, | |
| int | size | |||
| ) |
| int BlurEngine::blur_strip3 | ( | int & | size | ) |
Definition at line 658 of file blur.C.
References pixel_f::b, bd_m, bd_p, d_m, d_p, dst, pixel_f::g, initial_m, initial_p, multiply_alpha(), n_m, n_p, plugin, pixel_f::r, separate_alpha(), sp_m, sp_p, src, terms, transfer_pixels(), val_m, val_p, vm, and vp.

| int BlurEngine::blur_strip4 | ( | int & | size | ) |
Definition at line 721 of file blur.C.
References pixel_f::a, pixel_f::b, bd_m, bd_p, d_m, d_p, dst, pixel_f::g, initial_m, initial_p, multiply_alpha(), n_m, n_p, plugin, pixel_f::r, separate_alpha(), sp_m, sp_p, src, terms, transfer_pixels(), val_m, val_p, vm, and vp.

| float BlurEngine::vmax |
| float BlurEngine::n_p[5] |
Definition at line 93 of file blur.h.
Referenced by blur_strip3(), blur_strip4(), and get_constants().
| float BlurEngine::n_m[5] |
Definition at line 93 of file blur.h.
Referenced by blur_strip3(), blur_strip4(), and get_constants().
| float BlurEngine::d_p[5] |
Definition at line 94 of file blur.h.
Referenced by blur_strip3(), blur_strip4(), and get_constants().
| float BlurEngine::d_m[5] |
Definition at line 94 of file blur.h.
Referenced by blur_strip3(), blur_strip4(), and get_constants().
| float BlurEngine::bd_p[5] |
Definition at line 95 of file blur.h.
Referenced by blur_strip3(), blur_strip4(), and get_constants().
| float BlurEngine::bd_m[5] |
Definition at line 95 of file blur.h.
Referenced by blur_strip3(), blur_strip4(), and get_constants().
| float BlurEngine::std_dev |
Definition at line 101 of file blur.h.
Referenced by blur_strip3(), blur_strip4(), reconfigure(), and run().
Definition at line 107 of file blur.h.
Referenced by BlurEngine(), run(), start_process_frame(), and ~BlurEngine().
1.5.5