Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

ScaleUnit Class Reference

#include <overlayframe.h>

Inheritance diagram for ScaleUnit:

LoadClient List of all members.

Public Member Functions

 ScaleUnit (ScaleEngine *server, OverlayFrame *overlay)
 ~ScaleUnit ()
float cubic_bspline (float x)
void tabulate_bcubic_f (float *&coef_table, int *&coord_table, float scale, int start, int pixels, int total_pixels, float coefficient)
void tabulate_blinear_f (int *&table_int1, int *&table_int2, float *&table_frac, float *&table_antifrac, float scale, int pixel1, int pixel2, int start, int total_pixels)
void tabulate_bcubic_i (int *&coef_table, int *&coord_table, float scale, int start, int pixels, int total_pixels, float coefficient)
void tabulate_blinear_i (int *&table_int1, int *&table_int2, int *&table_frac, int *&table_antifrac, float scale, int pixel1, int pixel2, int start, int total_pixels)
void tabulate_reduction (bilinear_table_t *&table, float scale, int pixel1, int out_total, int in_total)
void tabulate_enlarge (bilinear_table_t *&table, float scale, int pixel1, int out_total, int in_total)
void dump_bilinear (bilinear_table_t *table, int total)
void process_package (LoadPackage *package)

Public Attributes

OverlayFrameoverlay
ScaleEngineengine

Detailed Description

Definition at line 77 of file overlayframe.h.


Constructor & Destructor Documentation

ScaleUnit::ScaleUnit ScaleEngine server,
OverlayFrame overlay
 

Definition at line 737 of file overlayframe.C.

References engine.

ScaleUnit::~ScaleUnit  ) 
 

Definition at line 744 of file overlayframe.C.


Member Function Documentation

float ScaleUnit::cubic_bspline float  x  ) 
 

Definition at line 1267 of file overlayframe.C.

References CUBE.

Referenced by tabulate_bcubic_f(), and tabulate_bcubic_i().

void ScaleUnit::dump_bilinear bilinear_table_t table,
int  total
 

Definition at line 895 of file overlayframe.C.

void ScaleUnit::process_package LoadPackage package  )  [virtual]
 

Reimplemented from LoadClient.

Definition at line 1427 of file overlayframe.C.

References BICUBIC, BILINEAR_ENLARGE, BILINEAR_REDUCE, engine, ScaleEngine::h_scale, ScaleEngine::in_x1_int, ScaleEngine::in_y1_int, ScaleEngine::interpolation_type, ScaleEngine::out_h_int, ScaleEngine::out_w_int, ScaleEngine::scale_input, ScaleEngine::scale_output, and ScaleEngine::w_scale.

void ScaleUnit::tabulate_bcubic_f float *&  coef_table,
int *&  coord_table,
float  scale,
int  start,
int  pixels,
int  total_pixels,
float  coefficient
 

Definition at line 1313 of file overlayframe.C.

References CLAMP, and cubic_bspline().

void ScaleUnit::tabulate_bcubic_i int *&  coef_table,
int *&  coord_table,
float  scale,
int  start,
int  pixels,
int  total_pixels,
float  coefficient
 

Definition at line 1339 of file overlayframe.C.

References CLAMP, and cubic_bspline().

void ScaleUnit::tabulate_blinear_f int *&  table_int1,
int *&  table_int2,
float *&  table_frac,
float *&  table_antifrac,
float  scale,
int  pixel1,
int  pixel2,
int  start,
int  total_pixels
 

Definition at line 1365 of file overlayframe.C.

References CLAMP.

void ScaleUnit::tabulate_blinear_i int *&  table_int1,
int *&  table_int2,
int *&  table_frac,
int *&  table_antifrac,
float  scale,
int  pixel1,
int  pixel2,
int  start,
int  total_pixels
 

Definition at line 1396 of file overlayframe.C.

References CLAMP.

void ScaleUnit::tabulate_enlarge bilinear_table_t *&  table,
float  scale,
int  pixel1,
int  out_total,
int  in_total
 

Definition at line 838 of file overlayframe.C.

References bilinear_table_t::input_fraction1, bilinear_table_t::input_fraction3, bilinear_table_t::input_pixel1, bilinear_table_t::input_pixel2, and bilinear_table_t::total_fraction.

void ScaleUnit::tabulate_reduction bilinear_table_t *&  table,
float  scale,
int  pixel1,
int  out_total,
int  in_total
 

Definition at line 750 of file overlayframe.C.

References bilinear_table_t::input_fraction1, bilinear_table_t::input_fraction2, bilinear_table_t::input_fraction3, bilinear_table_t::input_pixel1, bilinear_table_t::input_pixel2, and bilinear_table_t::total_fraction.


Member Data Documentation

ScaleEngine* ScaleUnit::engine
 

Definition at line 133 of file overlayframe.h.

Referenced by process_package(), and ScaleUnit().

OverlayFrame* ScaleUnit::overlay
 

Definition at line 132 of file overlayframe.h.


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:39:25 2006 for Cinelerra-svn by  doxygen 1.4.4