#include <scale.h>
Inherits PluginVClient.

Public Member Functions | |
| ScaleMain (PluginServer *server) | |
| ~ScaleMain () | |
| int | process_buffer (VFrame *frame, int64_t start_position, double frame_rate) |
| void | calculate_transfer (VFrame *frame, float &in_x1, float &in_x2, float &in_y1, float &in_y2, float &out_x1, float &out_x2, float &out_y1, float &out_y2) |
| int | handle_opengl () |
| int | is_realtime () |
| char * | plugin_title () |
| int | show_gui () |
| void | raise_window () |
| int | set_string () |
| void | update_gui () |
| void | save_data (KeyFrame *keyframe) |
| void | read_data (KeyFrame *keyframe) |
| VFrame * | new_picon () |
| int | load_defaults () |
| int | save_defaults () |
| int | load_configuration () |
Data Fields | |
| ScaleThread * | thread |
| OverlayFrame * | overlayer |
| BC_Hash * | defaults |
| ScaleConfig | config |
Definition at line 87 of file scale.h.
| ScaleMain::ScaleMain | ( | PluginServer * | server | ) |
| ScaleMain::~ScaleMain | ( | ) |
| int ScaleMain::process_buffer | ( | VFrame * | frame, | |
| int64_t | start_position, | |||
| double | frame_rate | |||
| ) | [virtual] |
Reimplemented from PluginVClient.
Definition at line 165 of file scale.C.
References calculate_transfer(), VFrame::clear_frame(), config, VFrame::copy_from(), VFrame::get_color_model(), VFrame::get_h(), PluginClient::get_interpolation_type(), PluginClient::get_use_opengl(), VFrame::get_w(), ScaleConfig::h, PluginVClient::input, load_configuration(), PluginVClient::new_temp(), PluginVClient::output, OverlayFrame::overlay(), overlayer, PluginVClient::read_frame(), PluginVClient::run_opengl(), PluginClient::smp, and ScaleConfig::w.

| void ScaleMain::calculate_transfer | ( | VFrame * | frame, | |
| float & | in_x1, | |||
| float & | in_x2, | |||
| float & | in_y1, | |||
| float & | in_y2, | |||
| float & | out_x1, | |||
| float & | out_x2, | |||
| float & | out_y1, | |||
| float & | out_y2 | |||
| ) |
Definition at line 244 of file scale.C.
References config, VFrame::get_h(), VFrame::get_w(), ScaleConfig::h, and ScaleConfig::w.
Referenced by handle_opengl(), and process_buffer().

| int ScaleMain::handle_opengl | ( | ) | [virtual] |
Reimplemented from PluginVClient.
Definition at line 293 of file scale.C.
References VFrame::bind_texture(), calculate_transfer(), VFrame::clear_pbuffer(), VFrame::draw_texture(), VFrame::enable_opengl(), PluginVClient::get_output(), VFrame::init_screen(), VFrame::SCREEN, VFrame::set_opengl_state(), and VFrame::to_texture().

| int ScaleMain::is_realtime | ( | ) | [virtual] |
| char * ScaleMain::plugin_title | ( | ) | [virtual] |
| int ScaleMain::show_gui | ( | ) | [virtual] |
Reimplemented from PluginClient.
| void ScaleMain::raise_window | ( | ) | [virtual] |
Reimplemented from PluginClient.
| int ScaleMain::set_string | ( | ) | [virtual] |
Reimplemented from PluginClient.
| void ScaleMain::update_gui | ( | ) | [virtual] |
Reimplemented from PluginClient.
Definition at line 330 of file scale.C.
References config, ScaleConfig::constrain, ScaleConfig::h, load_configuration(), BC_WindowBase::lock_window(), thread, BC_WindowBase::unlock_window(), ScaleConfig::w, and ScaleThread::window.

| void ScaleMain::save_data | ( | KeyFrame * | keyframe | ) | [virtual] |
Reimplemented from PluginClient.
Definition at line 103 of file scale.C.
References FileXML::append_tag(), config, ScaleConfig::constrain, ScaleConfig::h, PluginVClient::output, XMLTag::set_property(), FileXML::set_shared_string(), XMLTag::set_title(), FileXML::tag, FileXML::terminate_string(), and ScaleConfig::w.

| void ScaleMain::read_data | ( | KeyFrame * | keyframe | ) | [virtual] |
Reimplemented from PluginClient.
Definition at line 129 of file scale.C.
References config, ScaleConfig::constrain, KeyFrame::data, XMLTag::get_property(), ScaleConfig::h, PluginVClient::input, FileXML::read_tag(), FileXML::set_shared_string(), FileXML::tag, XMLTag::title_is(), and ScaleConfig::w.

| VFrame* ScaleMain::new_picon | ( | ) | [virtual] |
Reimplemented from PluginClient.
| int ScaleMain::load_defaults | ( | ) | [virtual] |
Reimplemented from PluginClient.
Definition at line 76 of file scale.C.
References BCASTDIR, config, ScaleConfig::constrain, defaults, BC_Hash::get(), ScaleConfig::h, BC_Hash::load(), and ScaleConfig::w.

| int ScaleMain::save_defaults | ( | ) | [virtual] |
Reimplemented from PluginClient.
Definition at line 92 of file scale.C.
References config, ScaleConfig::constrain, defaults, ScaleConfig::h, BC_Hash::save(), BC_Hash::update(), and ScaleConfig::w.

| int ScaleMain::load_configuration | ( | ) |
Referenced by process_buffer(), and update_gui().
Definition at line 123 of file scale.h.
Referenced by process_buffer(), ScaleMain(), and ~ScaleMain().
Definition at line 125 of file scale.h.
Referenced by calculate_transfer(), ScaleHeight::handle_event(), ScaleWidth::handle_event(), load_defaults(), process_buffer(), read_data(), save_data(), save_defaults(), and update_gui().
1.5.5