X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=core%2Fproducer%2Fscene%2Fscene_producer.h;h=a7c37710c31e7d7a1674cdfadccf0f4b2e8352a8;hb=62c7da66319a85de98331bcf9dded7490ab62884;hp=aca30f6b60fb720b191d178d585e36d19e95815c;hpb=4e9cebdde76692ebf8d3256baaca9545d86df3b9;p=casparcg diff --git a/core/producer/scene/scene_producer.h b/core/producer/scene/scene_producer.h index aca30f6b6..a7c37710c 100644 --- a/core/producer/scene/scene_producer.h +++ b/core/producer/scene/scene_producer.h @@ -115,7 +115,7 @@ mark_action get_mark_action(const std::wstring& name); class scene_producer : public frame_producer_base { public: - scene_producer(std::wstring producer_name, int width, int height, const video_format_desc& format_desc); + scene_producer(std::wstring producer_name, std::wstring template_name, int width, int height, const video_format_desc& format_desc); ~scene_producer(); draw_frame receive_impl() override; @@ -133,6 +133,7 @@ public: layer& create_layer( const spl::shared_ptr& producer, const std::wstring& name); void reverse_layers(); + layer& get_layer(const std::wstring& name); binding timeline_frame(); binding speed(); @@ -225,7 +226,8 @@ public: store_keyframe(to_affect.identity(), k); } - void add_mark(int64_t frame, mark_action action, const std::wstring& label); + void add_mark(int64_t at_frame, mark_action action, const std::wstring& label); + void add_task(binding when, std::function task); core::variable& get_variable(const std::wstring& name) override; const std::vector& get_variables() const override;