WhirlEngine Class Reference

#include <whirl.h>

Inherits Thread, and LoadServer.

Collaboration diagram for WhirlEngine:

Collaboration graph
[legend]

Public Member Functions

 WhirlEngine (WhirlEffect *plugin, int cpus)
void init_packages ()
LoadClientnew_client ()
LoadPackagenew_package ()
 WhirlEngine (WhirlMain *plugin, int start_y, int end_y)
 ~WhirlEngine ()
int start_process_frame (VFrame **output, VFrame **input, int size)
int wait_process_frame ()
void run ()
int calc_undistorted_coords (double wx, double wy, double &whirl, double &pinch, double &x, double &y)
VWORD bilinear (double x, double y, VWORD *values)
void get_pixel (const int &x, const int &y, VPixel *pixel, VPixel **input_rows)

Data Fields

WhirlEffectplugin
WhirlMainplugin
int start_y
int end_y
int size
VFrame ** output
VFrame ** input
int last_frame
Mutex input_lock
Mutex output_lock
double radius
double radius2
double radius3
double pinch
double scale_x
double scale_y
double cen_x
double cen_y

Detailed Description

Definition at line 111 of file whirl.C.


Constructor & Destructor Documentation

WhirlEngine::WhirlEngine ( WhirlEffect plugin,
int  cpus 
)

Definition at line 827 of file whirl.C.

WhirlEngine::WhirlEngine ( WhirlMain plugin,
int  start_y,
int  end_y 
)

WhirlEngine::~WhirlEngine (  ) 


Member Function Documentation

void WhirlEngine::init_packages (  )  [virtual]

Reimplemented from LoadServer.

Definition at line 832 of file whirl.C.

References VFrame::get_h(), LoadServer::get_package(), LoadServer::get_total_packages(), WhirlEffect::input, plugin, WhirlPackage::row1, and WhirlPackage::row2.

Here is the call graph for this function:

LoadClient * WhirlEngine::new_client (  )  [virtual]

Reimplemented from LoadServer.

Definition at line 843 of file whirl.C.

References plugin.

LoadPackage * WhirlEngine::new_package (  )  [virtual]

Reimplemented from LoadServer.

Definition at line 848 of file whirl.C.

int WhirlEngine::start_process_frame ( VFrame **  output,
VFrame **  input,
int  size 
)

int WhirlEngine::wait_process_frame (  ) 

void WhirlEngine::run (  )  [virtual]

Implements Thread.

int WhirlEngine::calc_undistorted_coords ( double  wx,
double  wy,
double &  whirl,
double &  pinch,
double &  x,
double &  y 
)

VWORD WhirlEngine::bilinear ( double  x,
double  y,
VWORD *  values 
) [inline]

Definition at line 72 of file whirl.h.

void WhirlEngine::get_pixel ( const int &  x,
const int &  y,
VPixel *  pixel,
VPixel **  input_rows 
)


Field Documentation

Definition at line 118 of file whirl.C.

Referenced by init_packages(), and new_client().

Definition at line 87 of file whirl.h.

Definition at line 88 of file whirl.h.

Definition at line 89 of file whirl.h.

Definition at line 90 of file whirl.h.

Definition at line 91 of file whirl.h.

Definition at line 91 of file whirl.h.

Definition at line 92 of file whirl.h.

Definition at line 93 of file whirl.h.

Definition at line 93 of file whirl.h.

Definition at line 94 of file whirl.h.

Definition at line 94 of file whirl.h.

Definition at line 94 of file whirl.h.

Definition at line 94 of file whirl.h.

Definition at line 95 of file whirl.h.

Definition at line 95 of file whirl.h.

Definition at line 96 of file whirl.h.

Definition at line 96 of file whirl.h.


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

Generated on Mon Apr 28 14:50:46 2008 for Cinelerra by  doxygen 1.5.5