24 #include "lv_common.h"
25 #include "lv_plugin_registry.h"
30 get_morph_plugin_list ()
47 VisPluginData *visual_morph_get_plugin (
VisMorph *morph)
49 visual_return_val_if_fail (morph !=
nullptr,
nullptr);
54 VisMorph *visual_morph_new (
const char *name)
58 LV::intrusive_ptr_add_ref (
self.
get ());
64 int visual_morph_realize (
VisMorph *
self)
66 visual_return_val_if_fail (
self !=
nullptr, FALSE);
68 return self->realize ();
75 return self->get_supported_depths ();
78 VisVideoAttrOptions *visual_morph_get_video_attribute_options (
VisMorph *
self)
80 visual_return_val_if_fail (
self !=
nullptr,
nullptr);
82 return const_cast<VisVideoAttrOptions*
> (
self->get_video_attribute_options ());
87 visual_return_if_fail (
self !=
nullptr);
89 self->set_video (video);
94 visual_return_if_fail (
self !=
nullptr);
95 visual_return_if_fail (time !=
nullptr);
97 self->set_time (*time);
100 void visual_morph_set_progress (
VisMorph *
self,
float progress)
102 visual_return_if_fail (
self !=
nullptr);
104 self->set_progress (progress);
109 visual_return_val_if_fail (
self !=
nullptr,
nullptr);
111 return const_cast<LV::Palette*
> (
self->get_palette ());
114 int visual_morph_is_done (
VisMorph *
self)
116 visual_return_val_if_fail (
self !=
nullptr, TRUE);
118 return self->is_done ();
123 visual_return_val_if_fail (
self !=
nullptr, FALSE);
124 visual_return_val_if_fail (audio !=
nullptr, FALSE);
125 visual_return_val_if_fail (src1 !=
nullptr, FALSE);
126 visual_return_val_if_fail (src2 !=
nullptr, FALSE);
128 return self->run (*audio, src1, src2);