4 #include "edlsession.h"
7 #include "mainsession.h"
9 #include "mwindowgui.h"
10 #include "menuveffects.h"
12 #include "quicktime.h"
15 #include "vpluginarray.h"
18 MenuVEffects::MenuVEffects(MWindow *mwindow)
19 : MenuEffects(mwindow)
21 thread = new MenuVEffectThread(mwindow);
24 MenuVEffects::~MenuVEffects()
29 MenuVEffectThread::MenuVEffectThread(MWindow *mwindow)
30 : MenuEffectThread(mwindow)
34 MenuVEffectThread::~MenuVEffectThread()
38 int MenuVEffectThread::get_recordable_tracks(Asset_GC asset)
40 asset->layers = mwindow->edl->tracks->recordable_video_tracks();
44 int MenuVEffectThread::get_derived_attributes(Asset_GC asset, BC_Hash *defaults)
47 asset->load_defaults(defaults,
58 // Fix asset for video only
59 if(!File::supports_video(asset->format)) asset->format = FILE_MOV;
60 asset->audio_data = 0;
61 asset->video_data = 1;
68 int MenuVEffectThread::save_derived_attributes(Asset_GC asset, BC_Hash *defaults)
70 asset->save_defaults(defaults,
82 PluginArray* MenuVEffectThread::create_plugin_array()
84 return new VPluginArray();
87 int64_t MenuVEffectThread::to_units(double position, int round)
90 return Units::round(position * mwindow->edl->session->frame_rate);
92 return (int64_t)(position * mwindow->edl->session->frame_rate);
97 int MenuVEffectThread::fix_menu(char *title)
99 mwindow->gui->mainmenu->add_veffect(title);
102 MenuVEffectItem::MenuVEffectItem(MenuVEffects *menueffect, char *string)
103 : MenuEffectItem(menueffect, string)
109 // c-file-style: "linux"