#include <pluginserver.h>

Public Member Functions | |
| PluginServer () | |
| PluginServer (char *path) | |
| PluginServer (PluginServer &) | |
| virtual | ~PluginServer () |
| int | open_plugin (int master, Preferences *preferences, EDL *edl, Plugin *plugin, int lad_index) |
| int | close_plugin () |
| void | dump () |
| void | render_stop () |
| void | set_title (char *string) |
| void | generate_display_title (char *string) |
| KeyFrame * | get_prev_keyframe (int64_t position) |
| KeyFrame * | get_next_keyframe (int64_t position) |
| void | get_camera (float *x, float *y, float *z, int64_t position, int direction) |
| void | get_projector (float *x, float *y, float *z, int64_t position, int direction) |
| int | get_interpolation_type () |
| KeyFrame * | get_keyframe () |
| Theme * | new_theme () |
| Theme * | get_theme () |
| void | save_data (KeyFrame *keyframe) |
| void | sync_parameters () |
| int | set_realtime_sched () |
| int | get_gui_status () |
| void | raise_window () |
| void | show_gui () |
| void | update_gui () |
| void | update_title () |
| void | client_side_close () |
| void | set_use_opengl (int value, VideoDevice *vdevice) |
| int | get_use_opengl () |
| int | gui_open () |
| void | run_opengl (PluginClient *plugin_client) |
| int | set_string (char *string) |
| int | init_realtime (int realtime_sched, int total_in_buffers, int buffer_size) |
| void | process_transition (VFrame *input, VFrame *output, int64_t current_position, int64_t total_len) |
| void | process_transition (double *input, double *output, int64_t current_position, int64_t fragment_size, int64_t total_len) |
| void | process_buffer (VFrame **frame, int64_t current_position, double frame_rate, int64_t total_len, int direction) |
| void | process_buffer (double **buffer, int64_t current_position, int64_t fragment_size, int64_t sample_rate, int64_t total_len, int direction) |
| void | send_render_gui (void *data) |
| void | send_render_gui (void *data, int size) |
| void | render_gui (void *data) |
| void | render_gui (void *data, int size) |
| int | set_automation (FloatAutos *autos, FloatAuto **start_auto, FloatAuto **end_auto, int reverse) |
| int | arm_buffer (int buffer_number, int64_t in_fragment_position, int64_t out_fragment_position, int double_buffer_in, int double_buffer_out) |
| int | detach_buffers () |
| int | send_buffer_info () |
| int | start_loop (int64_t start, int64_t end, int64_t buffer_size, int total_buffers) |
| int | process_loop (VFrame **buffers, int64_t &write_length) |
| int | process_loop (double **buffers, int64_t &write_length) |
| int | stop_loop () |
| int | read_frame (VFrame *buffer, int channel, int64_t start_position) |
| int | read_samples (double *buffer, int channel, int64_t start_position, int64_t total_samples) |
| int | read_frame (VFrame *buffer, int channel, int64_t start_position, double frame_rate, int use_opengl=0) |
| int | read_samples (double *buffer, int channel, int64_t sample_rate, int64_t start_position, int64_t len) |
| int | get_parameters (int64_t start, int64_t end, int channels) |
| int | get_samplerate () |
| double | get_framerate () |
| int | get_project_samplerate () |
| double | get_project_framerate () |
| int | set_path (char *path) |
| void | set_mwindow (MWindow *mwindow) |
| void | set_attachmentpoint (AttachmentPoint *attachmentpoint) |
| void | set_keyframe (KeyFrame *keyframe) |
| void | set_prompt (MenuEffectPrompt *prompt) |
| int | set_interactive () |
| int | set_error () |
| MainProgressBar * | start_progress (char *string, int64_t length) |
| void | append_module (Module *module) |
| void | append_node (VirtualNode *node) |
| void | reset_nodes () |
| int64_t | get_written_samples () |
| int64_t | get_written_frames () |
Data Fields | |
| int64_t | out_buffer_size |
| int64_t | in_buffer_size |
| int | total_in_buffers |
| int | total_out_buffers |
| ArrayList< int > | ring_buffers_in |
| ArrayList< int > | ring_buffers_out |
| FloatAuto ** | start_auto |
| FloatAuto ** | end_auto |
| FloatAutos * | autos |
| int | reverse |
| ArrayList< int64_t > | realtime_in_size |
| ArrayList< int64_t > | realtime_out_size |
| ArrayList< int64_t > | offset_in_render |
| ArrayList< int64_t > | offset_out_render |
| ArrayList< int64_t > | double_buffer_in_render |
| ArrayList< int64_t > | double_buffer_out_render |
| int | shared_buffers |
| int | new_buffers |
| int | plugin_open |
| int | realtime |
| int | multichannel |
| int | fileio |
| int | synthesis |
| int | audio |
| int | video |
| int | theme |
| int | uses_gui |
| int | transition |
| char * | title |
| int64_t | written_samples |
| int64_t | written_frames |
| char * | path |
| char * | data_text |
| char * | args [4] |
| int | total_args |
| int | error_flag |
| ArrayList< Module * > * | modules |
| ArrayList< VirtualNode * > * | nodes |
| AttachmentPoint * | attachmentpoint |
| MWindow * | mwindow |
| KeyFrame * | keyframe |
| AttachmentPoint * | attachment |
| Plugin * | plugin |
| EDL * | edl |
| Preferences * | preferences |
| MenuEffectPrompt * | prompt |
| int | gui_on |
| VFrame * | temp_frame |
| VFrame * | picon |
Private Member Functions | |
| int | reset_parameters () |
| int | cleanup_plugin () |
Private Attributes | |
| PluginClient * | client |
| void * | plugin_fd |
| PluginClient *(* | new_plugin )(PluginServer *) |
| int | is_lad |
| LADSPA_Descriptor_Function | lad_descriptor_function |
| const LADSPA_Descriptor * | lad_descriptor |
| int | use_opengl |
| VideoDevice * | vdevice |
Friends | |
| class | PluginAClientLAD |
| class | PluginAClientConfig |
| class | PluginAClientWindow |
Definition at line 40 of file pluginserver.h.
| PluginServer::PluginServer | ( | ) |
Definition at line 44 of file pluginserver.C.
References modules, nodes, and reset_parameters().

| PluginServer::PluginServer | ( | char * | path | ) |
Definition at line 51 of file pluginserver.C.
References modules, nodes, reset_parameters(), and set_path().

| PluginServer::PluginServer | ( | PluginServer & | that | ) |
Definition at line 59 of file pluginserver.C.
References attachment, audio, fileio, is_lad, keyframe, lad_descriptor, lad_descriptor_function, modules, multichannel, mwindow, new_plugin, nodes, path, plugin_fd, preferences, realtime, reset_parameters(), synthesis, theme, title, uses_gui, and video.

| PluginServer::~PluginServer | ( | ) | [virtual] |
Definition at line 98 of file pluginserver.C.
References close_plugin(), modules, nodes, path, picon, and title.

| int PluginServer::open_plugin | ( | int | master, | |
| Preferences * | preferences, | |||
| EDL * | edl, | |||
| Plugin * | plugin, | |||
| int | lad_index | |||
| ) |
Definition at line 199 of file pluginserver.C.
References audio, BCTEXTLEN, client, dlclose, dlopen, fileio, fprintf, PluginClient::is_audio(), PluginClient::is_fileio(), is_lad, PluginClient::is_multichannel(), PluginClient::is_realtime(), PluginClient::is_synthesis(), PluginClient::is_theme(), PluginClient::is_transition(), PluginClient::is_video(), lad_descriptor, lad_descriptor_function, multichannel, PluginClient::new_picon(), new_plugin, path, picon, plugin_fd, plugin_open, PluginClient::plugin_title(), PluginAClientLAD, PLUGINSERVER_IS_LAD, PLUGINSERVER_NOT_RECOGNIZED, PLUGINSERVER_OK, realtime, set_title(), synthesis, theme, transition, PluginClient::uses_gui(), uses_gui, and video.
Referenced by APluginThread::attach(), MWindow::init_plugin_path(), MWindow::init_theme(), MWindow::insert_effect(), AttachmentPoint::render_init(), MenuEffectThread::run(), MWindow::show_plugin(), PluginArray::start_plugins(), and Module::update_transition().

| int PluginServer::close_plugin | ( | ) |
Definition at line 301 of file pluginserver.C.
References cleanup_plugin(), client, and plugin_open.
Referenced by APluginThread::detach(), MWindow::init_plugin_path(), MWindow::init_theme(), MWindow::insert_effect(), PluginArray::stop_plugins(), Module::update_transition(), Module::~Module(), and ~PluginServer().

| void PluginServer::dump | ( | ) |
| void PluginServer::render_stop | ( | ) |
Definition at line 331 of file pluginserver.C.
References client, and PluginClient::render_stop().
Referenced by AttachmentPoint::render_stop().

| void PluginServer::set_title | ( | char * | string | ) |
| void PluginServer::generate_display_title | ( | char * | string | ) |
Definition at line 190 of file pluginserver.C.
References plugin, title, Track::title, and Edit::track.
Referenced by PluginClient::update_display_title().
| KeyFrame * PluginServer::get_prev_keyframe | ( | int64_t | position | ) |
Definition at line 952 of file pluginserver.C.
References client, PluginClient::direction, Plugin::get_prev_keyframe(), keyframe, and plugin.
Referenced by PluginClient::get_prev_keyframe().

| KeyFrame * PluginServer::get_next_keyframe | ( | int64_t | position | ) |
Definition at line 962 of file pluginserver.C.
References client, PluginClient::direction, Plugin::get_next_keyframe(), keyframe, and plugin.
Referenced by PluginClient::get_next_keyframe().

| void PluginServer::get_camera | ( | float * | x, | |
| float * | y, | |||
| float * | z, | |||
| int64_t | position, | |||
| int | direction | |||
| ) |
Definition at line 980 of file pluginserver.C.
References Track::automation, Automation::get_camera(), plugin, and Edit::track.
Referenced by PluginClient::get_camera().

| void PluginServer::get_projector | ( | float * | x, | |
| float * | y, | |||
| float * | z, | |||
| int64_t | position, | |||
| int | direction | |||
| ) |
Definition at line 986 of file pluginserver.C.
References Track::automation, Automation::get_projector(), plugin, and Edit::track.
Referenced by PluginClient::get_projector().

| int PluginServer::get_interpolation_type | ( | ) |
Definition at line 993 of file pluginserver.C.
References Edit::edl, EDLSession::interpolation_type, plugin, and EDL::session.
Referenced by PluginClient::get_interpolation_type().
| KeyFrame * PluginServer::get_keyframe | ( | ) |
Definition at line 972 of file pluginserver.C.
References Plugin::get_keyframe(), keyframe, and plugin.
Referenced by PluginClient::send_configure_change().

| Theme * PluginServer::new_theme | ( | ) |
Definition at line 998 of file pluginserver.C.
References client, PluginClient::new_theme(), and theme.
Referenced by MWindow::init_theme().

| Theme * PluginServer::get_theme | ( | ) |
Definition at line 1008 of file pluginserver.C.
References mwindow, and MWindow::theme.
Referenced by PluginClient::get_theme().
| void PluginServer::save_data | ( | KeyFrame * | keyframe | ) |
Definition at line 946 of file pluginserver.C.
References client, plugin_open, and PluginClient::save_data().
Referenced by MWindow::insert_effect(), and MenuEffectThread::run().

| void PluginServer::sync_parameters | ( | ) |
Definition at line 1017 of file pluginserver.C.
References EDLSession::auto_conf, MWindowGUI::canvas, TrackCanvas::draw_overlays(), MWindow::edl, BC_WindowBase::flash(), MWindow::gui, BC_WindowBase::lock_window(), mwindow, AutoConf::plugins, MWindow::restart_brender(), EDL::session, MWindow::sync_parameters(), BC_WindowBase::unlock_window(), and video.
Referenced by PluginClient::send_configure_change().

| int PluginServer::set_realtime_sched | ( | ) |
Definition at line 571 of file pluginserver.C.
| int PluginServer::get_gui_status | ( | ) |
Definition at line 737 of file pluginserver.C.
References GUI_OFF, GUI_ON, plugin, and Plugin::show.
Referenced by PluginClient::get_gui_status().
| void PluginServer::raise_window | ( | ) |
Definition at line 745 of file pluginserver.C.
References client, plugin_open, and PluginClient::raise_window().
Referenced by MWindow::show_plugin().

| void PluginServer::show_gui | ( | ) |
Definition at line 751 of file pluginserver.C.
References audio, client, MWindow::edl, EDLSession::frame_rate, LocalSession::get_selectionstart(), Edit::length, EDL::local_session, mwindow, plugin, plugin_open, preferences, Preferences::processors, EDLSession::sample_rate, EDL::session, PluginClient::show_gui(), PluginClient::smp, PluginClient::source_position, PluginClient::source_start, Edit::startproject, Units::to_int64(), PluginClient::total_len, PluginClient::update_display_title(), and video.
Referenced by MenuEffectThread::run(), and MWindow::show_plugin().

| void PluginServer::update_gui | ( | ) |
Definition at line 774 of file pluginserver.C.
References audio, client, MWindow::edl, EDLSession::frame_rate, LocalSession::get_selectionstart(), Edit::length, EDL::local_session, mwindow, plugin, plugin_open, EDLSession::sample_rate, EDL::session, PluginClient::source_position, PluginClient::source_start, Edit::startproject, Units::to_int64(), PluginClient::total_len, PluginClient::update_gui(), and video.
Referenced by MWindow::update_plugin_guis().

| void PluginServer::update_title | ( | ) |
Definition at line 796 of file pluginserver.C.
References client, plugin_open, and PluginClient::update_display_title().
Referenced by MWindow::update_plugin_titles().

| void PluginServer::client_side_close | ( | ) |
Definition at line 317 of file pluginserver.C.
References MWindow::hide_plugin(), BC_WindowBase::lock_window(), mwindow, plugin, prompt, BC_WindowBase::set_done(), and BC_WindowBase::unlock_window().
Referenced by PluginClient::client_side_close().

| void PluginServer::set_use_opengl | ( | int | value, | |
| VideoDevice * | vdevice | |||
| ) |
Definition at line 818 of file pluginserver.C.
References use_opengl.
Referenced by VModule::render(), and VAttachmentPoint::render().
| int PluginServer::get_use_opengl | ( | ) |
Definition at line 824 of file pluginserver.C.
References use_opengl.
Referenced by PluginClient::get_use_opengl().
| int PluginServer::gui_open | ( | ) |
Definition at line 812 of file pluginserver.C.
References attachmentpoint, and AttachmentPoint::gui_open().
Referenced by PluginClient::gui_open().

| void PluginServer::run_opengl | ( | PluginClient * | plugin_client | ) |
Definition at line 830 of file pluginserver.C.
References VideoDevice::get_output_base(), and vdevice.
Referenced by PluginVClient::run_opengl().

| int PluginServer::set_string | ( | char * | string | ) |
Definition at line 804 of file pluginserver.C.
References client, plugin_open, and PluginClient::set_string_client().

| int PluginServer::init_realtime | ( | int | realtime_sched, | |
| int | total_in_buffers, | |||
| int | buffer_size | |||
| ) |
Definition at line 338 of file pluginserver.C.
References client, PluginClient::plugin_init_realtime(), plugin_open, and total_out_buffers.
Referenced by AttachmentPoint::render_init(), PluginArray::start_plugins(), and Module::update_transition().

| void PluginServer::process_transition | ( | VFrame * | input, | |
| VFrame * | output, | |||
| int64_t | current_position, | |||
| int64_t | total_len | |||
| ) |
Definition at line 357 of file pluginserver.C.
References PluginVClient::age_temp(), client, PluginVClient::input, PluginVClient::output, plugin_open, PluginVClient::process_realtime(), PluginClient::source_position, PluginClient::source_start, PluginClient::total_len, and use_opengl.
Referenced by VModule::render(), and AModule::render().
