MotionMain Class Reference

#include <motion.h>

Inherits PluginVClient.

Collaboration diagram for MotionMain:

Collaboration graph
[legend]

Public Member Functions

 MotionMain (PluginServer *server)
 ~MotionMain ()
int process_buffer (VFrame **frame, int64_t start_position, double frame_rate)
void process_global ()
void process_rotation ()
void draw_vectors (VFrame *frame)
int is_multichannel ()
int is_realtime ()
int load_defaults ()
int save_defaults ()
void save_data (KeyFrame *keyframe)
void read_data (KeyFrame *keyframe)
void update_gui ()
void calculate_pointers (VFrame **frame, VFrame **src, VFrame **dst)
void allocate_temp (int w, int h, int color_model)
int64_t abs_diff (unsigned char *prev_ptr, unsigned char *current_ptr, int row_bytes, int w, int h, int color_model)
int64_t abs_diff_sub (unsigned char *prev_ptr, unsigned char *current_ptr, int row_bytes, int w, int h, int color_model, int sub_x, int sub_y)
void draw_arrow (VFrame *frame, int x1, int y1, int x2, int y2)

Static Public Member Functions

static void clamp_scan (int w, int h, int *block_x1, int *block_y1, int *block_x2, int *block_y2, int *scan_x1, int *scan_y1, int *scan_x2, int *scan_y2, int use_absolute)
static void draw_pixel (VFrame *frame, int x, int y)
static void draw_line (VFrame *frame, int x1, int y1, int x2, int y2)

Data Fields

int64_t previous_frame_number
VFrametemp_frame
MotionScanengine
RotateScanmotion_rotate
OverlayFrameoverlayer
AffineEnginerotate_engine
int total_dx
int total_dy
float total_angle
int current_dx
int current_dy
float current_angle
int32_t * search_area
int search_size
int reference_layer
int target_layer
VFrameprev_global_ref
VFramecurrent_global_ref
VFrameglobal_target_src
VFrameglobal_target_dst
VFrameprev_rotate_ref
VFramecurrent_rotate_ref
VFramerotate_target_src
VFramerotate_target_dst
VFrameoutput_frame
int w
int h

Detailed Description

Definition at line 121 of file motion.h.


Constructor & Destructor Documentation

MotionMain::MotionMain ( PluginServer server  ) 

MotionMain::~MotionMain (  ) 


Member Function Documentation

int MotionMain::process_buffer ( VFrame **  frame,
int64_t  start_position,
double  frame_rate 
) [virtual]

void MotionMain::process_global (  ) 

void MotionMain::process_rotation (  ) 

void MotionMain::draw_vectors ( VFrame frame  ) 

int MotionMain::is_multichannel (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 251 of file motion.C.

int MotionMain::is_realtime (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 250 of file motion.C.

int MotionMain::load_defaults (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 317 of file motion.C.

References BCASTDIR, and BCTEXTLEN.

int MotionMain::save_defaults (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 356 of file motion.C.

void MotionMain::save_data ( KeyFrame keyframe  )  [virtual]

Reimplemented from PluginClient.

Definition at line 388 of file motion.C.

References FileXML::append_tag(), KeyFrame::data, PluginVClient::output, XMLTag::set_property(), FileXML::set_shared_string(), XMLTag::set_title(), FileXML::tag, and FileXML::terminate_string().

Here is the call graph for this function:

void MotionMain::read_data ( KeyFrame keyframe  )  [virtual]

Reimplemented from PluginClient.

Definition at line 427 of file motion.C.

References KeyFrame::data, XMLTag::get_property(), PluginVClient::input, FileXML::read_tag(), FileXML::set_shared_string(), FileXML::tag, and XMLTag::title_is().

Here is the call graph for this function:

void MotionMain::update_gui (  )  [virtual]

void MotionMain::calculate_pointers ( VFrame **  frame,
VFrame **  src,
VFrame **  dst 
)

void MotionMain::allocate_temp ( int  w,
int  h,
int  color_model 
)

Definition at line 482 of file motion.C.

References VFrame::get_h(), VFrame::get_w(), and temp_frame.

Here is the call graph for this function:

int64_t MotionMain::abs_diff ( unsigned char *  prev_ptr,
unsigned char *  current_ptr,
int  row_bytes,
int  w,
int  h,
int  color_model 
)

int64_t MotionMain::abs_diff_sub ( unsigned char *  prev_ptr,
unsigned char *  current_ptr,
int  row_bytes,
int  w,
int  h,
int  color_model,
int  sub_x,
int  sub_y 
)

void MotionMain::clamp_scan ( int  w,
int  h,
int *  block_x1,
int *  block_y1,
int *  block_x2,
int *  block_y2,
int *  scan_x1,
int *  scan_y1,
int *  scan_x2,
int *  scan_y2,
int  use_absolute 
) [static]

Definition at line 1111 of file motion.C.

References CLAMP.

Referenced by draw_vectors(), and MotionScan::scan_frame().

void MotionMain::draw_pixel ( VFrame frame,
int  x,
int  y 
) [static]

Definition at line 1410 of file motion.C.

References BC_RGB161616, BC_RGB888, BC_RGB_FLOAT, BC_RGBA16161616, BC_RGBA8888, BC_RGBA_FLOAT, BC_YUV161616, BC_YUV888, BC_YUVA16161616, BC_YUVA8888, DRAW_PIXEL, and VFrame::get_color_model().

Referenced by draw_line().

Here is the call graph for this function:

void MotionMain::draw_line ( VFrame frame,
int  x1,
int  y1,
int  x2,
int  y2 
) [static]

Definition at line 1469 of file motion.C.

References draw_pixel(), h, and w.

Referenced by draw_arrow(), and draw_vectors().

Here is the call graph for this function:

void MotionMain::draw_arrow ( VFrame frame,
int  x1,
int  y1,
int  x2,
int  y2 
)

Definition at line 1524 of file motion.C.

References ARROW_SIZE, and draw_line().

Referenced by draw_vectors().

Here is the call graph for this function:


Field Documentation

Definition at line 177 of file motion.h.

Referenced by MotionMain(), process_buffer(), process_global(), and process_rotation().

Definition at line 180 of file motion.h.

Referenced by allocate_temp(), MotionMain(), and ~MotionMain().

Definition at line 181 of file motion.h.

Referenced by MotionMain(), process_global(), and ~MotionMain().

Definition at line 182 of file motion.h.

Referenced by MotionMain(), process_rotation(), and ~MotionMain().

Definition at line 183 of file motion.h.

Referenced by MotionMain(), process_global(), process_rotation(), and ~MotionMain().

Definition at line 184 of file motion.h.

Referenced by MotionMain(), process_rotation(), and ~MotionMain().

Definition at line 192 of file motion.h.

Referenced by draw_vectors(), MotionMain(), process_buffer(), and process_rotation().

Definition at line 195 of file motion.h.

Referenced by draw_vectors(), process_buffer(), process_global(), and process_rotation().

Definition at line 196 of file motion.h.

Referenced by draw_vectors(), process_buffer(), process_global(), and process_rotation().

Definition at line 197 of file motion.h.

Referenced by process_buffer(), and process_rotation().

Definition at line 202 of file motion.h.

Referenced by MotionMain(), and ~MotionMain().

Definition at line 203 of file motion.h.

Referenced by MotionMain().

Definition at line 207 of file motion.h.

Referenced by process_buffer().

Definition at line 209 of file motion.h.

Referenced by process_buffer().

Definition at line 215 of file motion.h.

Referenced by MotionMain(), process_buffer(), process_global(), process_rotation(), and ~MotionMain().

Definition at line 217 of file motion.h.

Referenced by MotionMain(), process_buffer(), process_global(), process_rotation(), and ~MotionMain().

Definition at line 219 of file motion.h.

Referenced by MotionMain(), process_buffer(), process_global(), and ~MotionMain().

Definition at line 221 of file motion.h.

Referenced by MotionMain(), process_buffer(), process_global(), process_rotation(), and ~MotionMain().

Definition at line 224 of file motion.h.

Referenced by MotionMain(), process_buffer(), process_rotation(), and ~MotionMain().

Definition at line 226 of file motion.h.

Referenced by MotionMain(), process_buffer(), process_rotation(), and ~MotionMain().

Definition at line 228 of file motion.h.

Referenced by MotionMain(), process_buffer(), process_rotation(), and ~MotionMain().

Definition at line 230 of file motion.h.

Referenced by MotionMain(), process_buffer(), process_rotation(), and ~MotionMain().

Definition at line 233 of file motion.h.

Referenced by process_buffer().

Definition at line 234 of file motion.h.

Referenced by draw_line(), draw_vectors(), and process_buffer().

Definition at line 235 of file motion.h.

Referenced by draw_line(), draw_vectors(), and process_buffer().


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

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