3 #include "overlayframe.h"
8 #define _(String) gettext(String)
9 #define gettext_noop(String) String
10 #define N_(String) gettext_noop (String)
12 PluginClient* new_plugin(PluginServer *server)
14 return new DissolveMain(server);
21 DissolveMain::DissolveMain(PluginServer *server)
22 : PluginVClient(server)
27 DissolveMain::~DissolveMain()
33 char* DissolveMain::plugin_title() { return _("Dissolve"); }
34 int DissolveMain::is_video() { return 1; }
35 int DissolveMain::is_transition() { return 1; }
36 int DissolveMain::uses_gui() { return 0; }
38 NEW_PICON_MACRO(DissolveMain)
41 int DissolveMain::process_realtime(VFrame *incoming, VFrame *outgoing)
43 float fade = (float)PluginClient::get_source_position() /
44 PluginClient::get_total_len();
46 if(!overlayer) overlayer = new OverlayFrame(get_project_smp() + 1);
47 //printf("DissolveMain::process_realtime %f\n", fade);
48 overlayer->overlay(outgoing,