MotionScan Class Reference

#include <motion.h>

Inherits LoadServer.

Collaboration diagram for MotionScan:

Collaboration graph
[legend]

Public Member Functions

 MotionScan (MotionMain *plugin, int total_clients, int total_packages)
 ~MotionScan ()
void init_packages ()
LoadClientnew_client ()
LoadPackagenew_package ()
void scan_frame (VFrame *previous_frame, VFrame *current_frame)
int64_t get_cache (int x, int y)
void put_cache (int x, int y, int64_t difference)

Data Fields

int dx_result
int dy_result

Private Attributes

VFrameprevious_frame
VFramecurrent_frame
MotionMainplugin
int skip
int block_x1
int block_x2
int block_y1
int block_y2
int scan_x1
int scan_y1
int scan_x2
int scan_y2
int total_pixels
int total_steps
int subpixel
ArrayList< MotionScanCache * > cache
Mutexcache_lock

Friends

class MotionScanUnit

Detailed Description

Definition at line 308 of file motion.h.


Constructor & Destructor Documentation

MotionScan::MotionScan ( MotionMain plugin,
int  total_clients,
int  total_packages 
)

Definition at line 1928 of file motion.C.

References cache_lock.

MotionScan::~MotionScan (  ) 

Definition at line 1940 of file motion.C.

References cache_lock.


Member Function Documentation

void MotionScan::init_packages (  )  [virtual]

LoadClient * MotionScan::new_client (  )  [virtual]

Reimplemented from LoadServer.

Definition at line 1970 of file motion.C.

References MotionScanUnit, and plugin.

LoadPackage * MotionScan::new_package (  )  [virtual]

Reimplemented from LoadServer.

Definition at line 1975 of file motion.C.

void MotionScan::scan_frame ( VFrame previous_frame,
VFrame current_frame 
)

int64_t MotionScan::get_cache ( int  x,
int  y 
)

void MotionScan::put_cache ( int  x,
int  y,
int64_t  difference 
)

Definition at line 2369 of file motion.C.

References ArrayList< TYPE >::append(), cache, cache_lock, Mutex::lock(), and Mutex::unlock().

Referenced by MotionScanUnit::process_package().

Here is the call graph for this function:


Friends And Related Function Documentation

friend class MotionScanUnit [friend]

Definition at line 316 of file motion.h.

Referenced by new_client().


Field Documentation

Definition at line 332 of file motion.h.

Referenced by MotionMain::process_global(), and scan_frame().

Definition at line 333 of file motion.h.

Referenced by MotionMain::process_global(), and scan_frame().

Definition at line 336 of file motion.h.

Referenced by MotionScanUnit::process_package().

Definition at line 338 of file motion.h.

Referenced by MotionScanUnit::process_package().

Definition at line 339 of file motion.h.

Referenced by new_client(), and scan_frame().

int MotionScan::skip [private]

Definition at line 340 of file motion.h.

Referenced by scan_frame().

int MotionScan::block_x1 [private]

Definition at line 342 of file motion.h.

Referenced by init_packages(), and scan_frame().

int MotionScan::block_x2 [private]

Definition at line 343 of file motion.h.

Referenced by init_packages(), and scan_frame().

int MotionScan::block_y1 [private]

Definition at line 344 of file motion.h.

Referenced by init_packages(), and scan_frame().

int MotionScan::block_y2 [private]

Definition at line 345 of file motion.h.

Referenced by init_packages(), and scan_frame().

int MotionScan::scan_x1 [private]

Definition at line 346 of file motion.h.

Referenced by init_packages(), and scan_frame().

int MotionScan::scan_y1 [private]

Definition at line 347 of file motion.h.

Referenced by init_packages(), and scan_frame().

int MotionScan::scan_x2 [private]

Definition at line 348 of file motion.h.

Referenced by init_packages(), and scan_frame().

int MotionScan::scan_y2 [private]

Definition at line 349 of file motion.h.

Referenced by init_packages(), and scan_frame().

int MotionScan::total_pixels [private]

Definition at line 350 of file motion.h.

Referenced by init_packages(), and scan_frame().

int MotionScan::total_steps [private]

Definition at line 351 of file motion.h.

Referenced by init_packages(), and scan_frame().

int MotionScan::subpixel [private]

Definition at line 352 of file motion.h.

Referenced by MotionScanUnit::process_package(), and scan_frame().

Definition at line 355 of file motion.h.

Referenced by get_cache(), put_cache(), and scan_frame().

Definition at line 356 of file motion.h.

Referenced by get_cache(), MotionScan(), put_cache(), and ~MotionScan().


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

Generated on Mon Apr 28 14:31:30 2008 for Cinelerra by  doxygen 1.5.5