#include <chromakey.h>
Inherits PluginVClient.

Public Member Functions | |
| ChromaKey (PluginServer *server) | |
| ~ChromaKey () | |
| int | process_buffer (VFrame *frame, int64_t start_position, double frame_rate) |
| int | handle_opengl () |
| int | is_realtime () |
| char * | plugin_title () |
| VFrame * | new_picon () |
| int | load_configuration () |
| int | load_defaults () |
| int | save_defaults () |
| void | save_data (KeyFrame *keyframe) |
| void | read_data (KeyFrame *keyframe) |
| int | show_gui () |
| int | set_string () |
| void | raise_window () |
| void | update_gui () |
Data Fields | |
| ChromaKeyConfig | config |
| VFrame * | input |
| VFrame * | output |
| ChromaKeyServer * | engine |
| ChromaKeyThread * | thread |
| BC_Hash * | defaults |
Definition at line 148 of file chromakey.h.
| ChromaKey::ChromaKey | ( | PluginServer * | server | ) |
| ChromaKey::~ChromaKey | ( | ) |
| int ChromaKey::process_buffer | ( | VFrame * | frame, | |
| int64_t | start_position, | |||
| double | frame_rate | |||
| ) | [virtual] |
Reimplemented from PluginVClient.
Definition at line 529 of file chromakey.C.
References config, engine, EQUIV, PluginClient::get_use_opengl(), input, load_configuration(), output, LoadServer::process_packages(), PluginVClient::read_frame(), PluginVClient::run_opengl(), SET_TRACE, and ChromaKeyConfig::threshold.

| int ChromaKey::handle_opengl | ( | ) | [virtual] |
Reimplemented from PluginVClient.
Definition at line 662 of file chromakey.C.
References BC_YUV888, BC_YUVA8888, VFrame::bind_texture(), VFrame::clear_pbuffer(), cmodel_components(), config, VFrame::draw_texture(), VFrame::enable_opengl(), PluginVClient::get_output(), VFrame::init_screen(), VFrame::make_shader(), OUTER_VARIABLES, run, VFrame::SCREEN, VFrame::set_opengl_state(), SET_TRACE, VFrame::to_texture(), and ChromaKeyConfig::use_value.

| int ChromaKey::is_realtime | ( | ) | [virtual] |
| char * ChromaKey::plugin_title | ( | ) | [virtual] |
| VFrame* ChromaKey::new_picon | ( | ) | [virtual] |
Reimplemented from PluginClient.
| int ChromaKey::load_configuration | ( | ) |
Referenced by process_buffer(), and update_gui().
| int ChromaKey::load_defaults | ( | ) | [virtual] |
Reimplemented from PluginClient.
Definition at line 568 of file chromakey.C.
References BCASTDIR, BCTEXTLEN, ChromaKeyConfig::blue, config, defaults, BC_Hash::get(), ChromaKeyConfig::green, BC_Hash::load(), ChromaKeyConfig::red, SET_TRACE, ChromaKeyConfig::slope, ChromaKeyConfig::threshold, and ChromaKeyConfig::use_value.

| int ChromaKey::save_defaults | ( | ) | [virtual] |
Reimplemented from PluginClient.
Definition at line 589 of file chromakey.C.
References ChromaKeyConfig::blue, config, defaults, ChromaKeyConfig::green, ChromaKeyConfig::red, BC_Hash::save(), SET_TRACE, ChromaKeyConfig::slope, ChromaKeyConfig::threshold, BC_Hash::update(), and ChromaKeyConfig::use_value.

| void ChromaKey::save_data | ( | KeyFrame * | keyframe | ) | [virtual] |
Reimplemented from PluginClient.
Definition at line 603 of file chromakey.C.
References FileXML::append_tag(), ChromaKeyConfig::blue, config, KeyFrame::data, ChromaKeyConfig::green, output, ChromaKeyConfig::red, XMLTag::set_property(), FileXML::set_shared_string(), XMLTag::set_title(), ChromaKeyConfig::slope, FileXML::tag, FileXML::terminate_string(), ChromaKeyConfig::threshold, and ChromaKeyConfig::use_value.

| void ChromaKey::read_data | ( | KeyFrame * | keyframe | ) | [virtual] |
Reimplemented from PluginClient.
Definition at line 620 of file chromakey.C.
References ChromaKeyConfig::blue, config, KeyFrame::data, XMLTag::get_property(), ChromaKeyConfig::green, input, FileXML::read_tag(), ChromaKeyConfig::red, FileXML::set_shared_string(), ChromaKeyConfig::slope, FileXML::tag, ChromaKeyConfig::threshold, XMLTag::title_is(), and ChromaKeyConfig::use_value.

| int ChromaKey::show_gui | ( | ) | [virtual] |
Reimplemented from PluginClient.
| int ChromaKey::set_string | ( | ) | [virtual] |
Reimplemented from PluginClient.
| void ChromaKey::raise_window | ( | ) | [virtual] |
Reimplemented from PluginClient.
| void ChromaKey::update_gui | ( | ) | [virtual] |
Reimplemented from PluginClient.
Definition at line 647 of file chromakey.C.
References config, load_configuration(), ChromaKeyConfig::slope, thread, ChromaKeyConfig::threshold, and ChromaKeyConfig::use_value.

Definition at line 171 of file chromakey.h.
Referenced by ChromaKeyUseColorPicker::handle_event(), ChromaKeyUseValue::handle_event(), ChromaKeySlope::handle_event(), ChromaKeyThreshold::handle_event(), ChromaKeyColor::handle_event(), ChromaKeyColorThread::handle_new_color(), handle_opengl(), load_defaults(), process_buffer(), ChromaKeyUnit::process_chromakey(), ChromaKeyUnit::process_package(), read_data(), save_data(), save_defaults(), update_gui(), and ChromaKeyWindow::update_sample().
Reimplemented from PluginVClient.
Definition at line 172 of file chromakey.h.
Referenced by ChromaKeyServer::init_packages(), process_buffer(), ChromaKeyUnit::process_chromakey(), ChromaKeyUnit::process_package(), and read_data().
Reimplemented from PluginVClient.
Definition at line 172 of file chromakey.h.
Referenced by process_buffer(), and save_data().
| ChromaKeyThread* ChromaKey::thread |
1.5.5