Decimate Class Reference

Inherits PluginVClient.

Collaboration diagram for Decimate:

Collaboration graph
[legend]

Public Member Functions

 Decimate (PluginServer *server)
 ~Decimate ()
int process_buffer (VFrame *frame, int64_t start_position, double frame_rate)
int is_realtime ()
char * plugin_title ()
VFramenew_picon ()
int show_gui ()
int load_configuration ()
int set_string ()
int load_defaults ()
int save_defaults ()
void save_data (KeyFrame *keyframe)
void read_data (KeyFrame *keyframe)
void raise_window ()
void update_gui ()
void render_gui (void *data)
int64_t calculate_difference (VFrame *frame1, VFrame *frame2)
void fill_lookahead (double frame_rate, int64_t start_position)
void decimate_frame ()
void init_fdct ()
void fdct (uint16_t *block)
int64_t calculate_fdct (VFrame *frame)

Data Fields

double c [8][8]
int fdct_ready
int64_t differences [TOTAL_FRAMES]
VFrameframes [TOTAL_FRAMES]
int lookahead_size
int64_t lookahead_end
double lookahead_rate
int64_t last_position
DecimateThread * thread
DecimateConfig config
BC_Hashdefaults

Detailed Description

Definition at line 109 of file decimate.C.


Constructor & Destructor Documentation

Decimate::Decimate ( PluginServer server  ) 

Definition at line 395 of file decimate.C.

References PLUGIN_CONSTRUCTOR_MACRO, and TOTAL_FRAMES.

Decimate::~Decimate (  ) 

Definition at line 409 of file decimate.C.

References frames, PLUGIN_DESTRUCTOR_MACRO, and TOTAL_FRAMES.


Member Function Documentation

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

int Decimate::is_realtime (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 744 of file decimate.C.

char * Decimate::plugin_title (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 743 of file decimate.C.

References N_.

VFrame* Decimate::new_picon (  )  [virtual]

Reimplemented from PluginClient.

int Decimate::show_gui (  )  [virtual]

Reimplemented from PluginClient.

int Decimate::load_configuration (  ) 

Definition at line 754 of file decimate.C.

References config, DecimateConfig::copy_from(), DecimateConfig::equivalent(), PluginClient::get_prev_keyframe(), PluginClient::get_source_position(), and read_data().

Referenced by process_buffer(), and update_gui().

Here is the call graph for this function:

int Decimate::set_string (  )  [virtual]

Reimplemented from PluginClient.

int Decimate::load_defaults (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 764 of file decimate.C.

References BCASTDIR, BCTEXTLEN, config, defaults, Units::fix_framerate(), BC_Hash::get(), DecimateConfig::input_rate, and BC_Hash::load().

Here is the call graph for this function:

int Decimate::save_defaults (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 781 of file decimate.C.

References config, defaults, DecimateConfig::input_rate, BC_Hash::save(), and BC_Hash::update().

Here is the call graph for this function:

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

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

void Decimate::raise_window (  )  [virtual]

Reimplemented from PluginClient.

void Decimate::update_gui (  )  [virtual]

Reimplemented from PluginClient.

Definition at line 826 of file decimate.C.

References config, DecimateConfig::input_rate, load_configuration(), and thread.

Here is the call graph for this function:

void Decimate::render_gui ( void *  data  )  [virtual]

Reimplemented from PluginVClient.

Definition at line 841 of file decimate.C.

References BCTEXTLEN, and thread.

int64_t Decimate::calculate_difference ( VFrame frame1,
VFrame frame2 
)

void Decimate::fill_lookahead ( double  frame_rate,
int64_t  start_position 
)

void Decimate::decimate_frame (  ) 

Definition at line 603 of file decimate.C.

References config, differences, frames, DecimateConfig::least_difference, LL, lookahead_size, PluginVClient::send_render_gui(), and PluginVClient::temp.

Referenced by fill_lookahead().

Here is the call graph for this function:

void Decimate::init_fdct (  ) 

Definition at line 472 of file decimate.C.

References c, M_PI, and s.

Referenced by calculate_fdct().

void Decimate::fdct ( uint16_t *  block  ) 

Definition at line 486 of file decimate.C.

References c, and s.

int64_t Decimate::calculate_fdct ( VFrame frame  ) 

Definition at line 561 of file decimate.C.

References CALCULATE_DCT, fdct_ready, VFrame::get_h(), VFrame::get_w(), init_fdct(), and PluginVClient::temp.

Here is the call graph for this function:


Field Documentation

double Decimate::c[8][8]

Definition at line 141 of file decimate.C.

Referenced by fdct(), and init_fdct().

Definition at line 142 of file decimate.C.

Referenced by calculate_fdct().

int64_t Decimate::differences[TOTAL_FRAMES]

Definition at line 146 of file decimate.C.

Referenced by decimate_frame(), fill_lookahead(), and process_buffer().

VFrame* Decimate::frames[TOTAL_FRAMES]

Definition at line 149 of file decimate.C.

Referenced by decimate_frame(), fill_lookahead(), process_buffer(), and ~Decimate().

Definition at line 151 of file decimate.C.

Referenced by decimate_frame(), fill_lookahead(), and process_buffer().

Definition at line 153 of file decimate.C.

Referenced by fill_lookahead().

Definition at line 155 of file decimate.C.

Referenced by fill_lookahead().

Definition at line 157 of file decimate.C.

Referenced by fill_lookahead().

DecimateThread* Decimate::thread

Definition at line 159 of file decimate.C.

Referenced by render_gui(), and update_gui().

Definition at line 161 of file decimate.C.

Referenced by load_defaults(), and save_defaults().


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

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