#include <timeavg.h>
Inherits PluginVClient.

Public Member Functions | |
| TimeAvgMain (PluginServer *server) | |
| ~TimeAvgMain () | |
| int | process_buffer (VFrame *frame, int64_t start_position, double frame_rate) |
| int | is_realtime () |
| char * | plugin_title () |
| VFrame * | new_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 | clear_accum (int w, int h, int color_model) |
| void | subtract_accum (VFrame *frame) |
| void | add_accum (VFrame *frame) |
| void | transfer_accum (VFrame *frame) |
Data Fields | |
| VFrame ** | history |
| int64_t * | history_frame |
| int * | history_valid |
| unsigned char * | accumulation |
| TimeAvgThread * | thread |
| TimeAvgConfig | config |
| int | history_size |
| int64_t | history_start |
| int64_t | prev_frame |
| BC_Hash * | defaults |
Definition at line 31 of file timeavg.h.
| TimeAvgMain::TimeAvgMain | ( | PluginServer * | server | ) |
Definition at line 62 of file timeavg.C.
References accumulation, history, history_frame, history_size, history_start, history_valid, PLUGIN_CONSTRUCTOR_MACRO, and prev_frame.
| TimeAvgMain::~TimeAvgMain | ( | ) |
Definition at line 75 of file timeavg.C.
References accumulation, config, TimeAvgConfig::frames, history, history_frame, history_valid, and PLUGIN_DESTRUCTOR_MACRO.
| int TimeAvgMain::process_buffer | ( | VFrame * | frame, | |
| int64_t | start_position, | |||
| double | frame_rate | |||
| ) | [virtual] |
Reimplemented from PluginVClient.
Definition at line 104 of file timeavg.C.
References accumulation, add_accum(), clear_accum(), cmodel_components(), config, TimeAvgConfig::frames, history, history_frame, history_size, history_valid, load_configuration(), MAX, TimeAvgConfig::nosubtract, TimeAvgConfig::paranoid, prev_frame, PluginVClient::read_frame(), subtract_accum(), and transfer_accum().

| int TimeAvgMain::is_realtime | ( | ) | [virtual] |
| char * TimeAvgMain::plugin_title | ( | ) | [virtual] |
| VFrame* TimeAvgMain::new_picon | ( | ) | [virtual] |
Reimplemented from PluginClient.
| int TimeAvgMain::show_gui | ( | ) | [virtual] |
Reimplemented from PluginClient.
| int TimeAvgMain::load_configuration | ( | ) |
Definition at line 740 of file timeavg.C.
References config, TimeAvgConfig::copy_from(), TimeAvgConfig::equivalent(), PluginClient::get_prev_keyframe(), PluginClient::get_source_position(), and read_data().
Referenced by process_buffer(), and update_gui().

| int TimeAvgMain::set_string | ( | ) | [virtual] |
Reimplemented from PluginClient.
| int TimeAvgMain::load_defaults | ( | ) | [virtual] |
Reimplemented from PluginClient.
Definition at line 713 of file timeavg.C.
References BCASTDIR, BCTEXTLEN, config, defaults, TimeAvgConfig::frames, BC_Hash::get(), BC_Hash::load(), TimeAvgConfig::mode, TimeAvgConfig::nosubtract, and TimeAvgConfig::paranoid.

| int TimeAvgMain::save_defaults | ( | ) | [virtual] |
Reimplemented from PluginClient.
Definition at line 730 of file timeavg.C.
References config, defaults, TimeAvgConfig::frames, TimeAvgConfig::mode, TimeAvgConfig::nosubtract, TimeAvgConfig::paranoid, BC_Hash::save(), and BC_Hash::update().

| void TimeAvgMain::save_data | ( | KeyFrame * | keyframe | ) | [virtual] |
Reimplemented from PluginClient.
Definition at line 751 of file timeavg.C.
References FileXML::append_tag(), config, KeyFrame::data, TimeAvgConfig::frames, TimeAvgConfig::mode, TimeAvgConfig::nosubtract, PluginVClient::output, TimeAvgConfig::paranoid, XMLTag::set_property(), FileXML::set_shared_string(), XMLTag::set_title(), FileXML::tag, and FileXML::terminate_string().

| void TimeAvgMain::read_data | ( | KeyFrame * | keyframe | ) | [virtual] |
Reimplemented from PluginClient.
Definition at line 768 of file timeavg.C.
References config, KeyFrame::data, TimeAvgConfig::frames, XMLTag::get_property(), PluginVClient::input, TimeAvgConfig::mode, TimeAvgConfig::nosubtract, TimeAvgConfig::paranoid, FileXML::read_tag(), FileXML::set_shared_string(), FileXML::tag, and XMLTag::title_is().
Referenced by load_configuration().

| void TimeAvgMain::raise_window | ( | ) | [virtual] |
Reimplemented from PluginClient.
| void TimeAvgMain::update_gui | ( | ) | [virtual] |
Reimplemented from PluginClient.
Definition at line 789 of file timeavg.C.
References TimeAvgConfig::ACCUMULATE, TimeAvgConfig::AVERAGE, config, TimeAvgConfig::frames, load_configuration(), TimeAvgConfig::mode, TimeAvgConfig::nosubtract, TimeAvgConfig::OR, TimeAvgConfig::paranoid, and thread.

| void TimeAvgMain::clear_accum | ( | int | w, | |
| int | h, | |||
| int | color_model | |||
| ) |
Definition at line 342 of file timeavg.C.
References BC_RGB888, BC_RGB_FLOAT, BC_RGBA8888, BC_RGBA_FLOAT, BC_YUV161616, BC_YUV888, BC_YUVA16161616, BC_YUVA8888, and CLEAR_ACCUM.
Referenced by process_buffer().
| void TimeAvgMain::subtract_accum | ( | VFrame * | frame | ) |
Definition at line 432 of file timeavg.C.
References BC_RGB888, BC_RGB_FLOAT, BC_RGBA8888, BC_RGBA_FLOAT, BC_YUV161616, BC_YUV888, BC_YUVA16161616, BC_YUVA8888, config, VFrame::get_color_model(), VFrame::get_h(), VFrame::get_w(), TimeAvgConfig::nosubtract, and SUBTRACT_ACCUM.
Referenced by process_buffer().

| void TimeAvgMain::add_accum | ( | VFrame * | frame | ) |
Definition at line 569 of file timeavg.C.
References ADD_ACCUM, BC_RGB888, BC_RGB_FLOAT, BC_RGBA8888, BC_RGBA_FLOAT, BC_YUV161616, BC_YUV888, BC_YUVA16161616, BC_YUVA8888, VFrame::get_color_model(), VFrame::get_h(), and VFrame::get_w().
Referenced by process_buffer().

| void TimeAvgMain::transfer_accum | ( | VFrame * | frame | ) |
Definition at line 678 of file timeavg.C.
References BC_RGB888, BC_RGB_FLOAT, BC_RGBA8888, BC_RGBA_FLOAT, BC_YUV161616, BC_YUV888, BC_YUVA16161616, BC_YUVA8888, VFrame::get_color_model(), VFrame::get_h(), VFrame::get_w(), and TRANSFER_ACCUM.
Referenced by process_buffer().

Definition at line 59 of file timeavg.h.
Referenced by process_buffer(), TimeAvgMain(), and ~TimeAvgMain().
| int64_t* TimeAvgMain::history_frame |
Definition at line 61 of file timeavg.h.
Referenced by process_buffer(), TimeAvgMain(), and ~TimeAvgMain().
Definition at line 62 of file timeavg.h.
Referenced by process_buffer(), TimeAvgMain(), and ~TimeAvgMain().
| unsigned char* TimeAvgMain::accumulation |
Definition at line 63 of file timeavg.h.
Referenced by process_buffer(), TimeAvgMain(), and ~TimeAvgMain().
| TimeAvgThread* TimeAvgMain::thread |
Definition at line 67 of file timeavg.h.
Referenced by TimeAvgNoSubtract::handle_event(), TimeAvgParanoid::handle_event(), TimeAvgOr::handle_event(), TimeAvgAvg::handle_event(), TimeAvgAccum::handle_event(), TimeAvgSlider::handle_event(), load_configuration(), load_defaults(), process_buffer(), read_data(), save_data(), save_defaults(), subtract_accum(), update_gui(), and ~TimeAvgMain().
| int64_t TimeAvgMain::history_start |
| int64_t TimeAvgMain::prev_frame |
1.5.5