#include <threshold.h>
Inherits PluginVClient.

Public Member Functions | |
| ThresholdMain (PluginServer *server) | |
| ~ThresholdMain () | |
| int | process_buffer (VFrame *frame, int64_t start_position, double frame_rate) |
| int | is_realtime () |
| int | load_defaults () |
| int | save_defaults () |
| void | save_data (KeyFrame *keyframe) |
| void | read_data (KeyFrame *keyframe) |
| void | update_gui () |
| void | render_gui (void *data) |
| void | calculate_histogram (VFrame *frame) |
| int | handle_opengl () |
| PLUGIN_CLASS_MEMBERS (ThresholdConfig, ThresholdThread) | |
Data Fields | |
| HistogramEngine * | engine |
| ThresholdEngine * | threshold_engine |
Definition at line 78 of file threshold.h.
| ThresholdMain::ThresholdMain | ( | PluginServer * | server | ) |
| ThresholdMain::~ThresholdMain | ( | ) |
Definition at line 103 of file threshold.C.
References engine, PLUGIN_DESTRUCTOR_MACRO, and threshold_engine.
| int ThresholdMain::process_buffer | ( | VFrame * | frame, | |
| int64_t | start_position, | |||
| double | frame_rate | |||
| ) | [virtual] |
Reimplemented from PluginVClient.
Definition at line 138 of file threshold.C.
References PluginVClient::get_framerate(), PluginClient::get_source_position(), PluginClient::get_use_opengl(), PluginClient::gui_open(), ThresholdEngine::process_packages(), PluginVClient::read_frame(), PluginVClient::run_opengl(), PluginVClient::send_render_gui(), and threshold_engine.

| int ThresholdMain::is_realtime | ( | ) | [virtual] |
| int ThresholdMain::load_defaults | ( | ) | [virtual] |
| int ThresholdMain::save_defaults | ( | ) | [virtual] |
| void ThresholdMain::save_data | ( | KeyFrame * | keyframe | ) | [virtual] |
Reimplemented from PluginClient.
Definition at line 191 of file threshold.C.
References FileXML::append_tag(), KeyFrame::data, XMLTag::set_property(), FileXML::set_shared_string(), XMLTag::set_title(), FileXML::tag, and FileXML::terminate_string().

| void ThresholdMain::read_data | ( | KeyFrame * | keyframe | ) | [virtual] |
Reimplemented from PluginClient.
Definition at line 208 of file threshold.C.
References KeyFrame::data, XMLTag::get_property(), FileXML::read_tag(), FileXML::set_shared_string(), and FileXML::tag.

| void ThresholdMain::update_gui | ( | ) | [virtual] |
| void ThresholdMain::render_gui | ( | void * | data | ) | [virtual] |
Reimplemented from PluginVClient.
Definition at line 250 of file threshold.C.
References calculate_histogram().

| void ThresholdMain::calculate_histogram | ( | VFrame * | frame | ) |
Definition at line 261 of file threshold.C.
References engine, PluginClient::get_project_smp(), HistogramEngine::HistogramEngine(), and HistogramEngine::process_packages().
Referenced by render_gui().

| int ThresholdMain::handle_opengl | ( | ) | [virtual] |
Reimplemented from PluginVClient.
Definition at line 268 of file threshold.C.
References VFrame::bind_texture(), cmodel_has_alpha(), cmodel_is_yuv(), VFrame::draw_texture(), VFrame::enable_opengl(), VFrame::get_color_model(), PluginVClient::get_output(), VFrame::init_screen(), VFrame::make_shader(), YUV::rgb_to_yuv_f(), VFrame::SCREEN, VFrame::set_opengl_state(), and VFrame::to_texture().

| ThresholdMain::PLUGIN_CLASS_MEMBERS | ( | ThresholdConfig | , | |
| ThresholdThread | ||||
| ) |
Definition at line 98 of file threshold.h.
Referenced by calculate_histogram(), ThresholdCanvas::draw(), and ~ThresholdMain().
1.5.5