]> git.sesse.net Git - casparcg/blob - core/producer/layer.h
git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches...
[casparcg] / core / producer / layer.h
1 #pragma once\r
2 \r
3 #include <common/memory/safe_ptr.h>\r
4 \r
5 #include <boost/noncopyable.hpp>\r
6 \r
7 namespace caspar { namespace core {\r
8 \r
9 class frame_producer;\r
10 class draw_frame;\r
11 \r
12 class layer : boost::noncopyable\r
13 {\r
14 public:\r
15         layer(int index = -1); // nothrow\r
16         layer(layer&& other); // nothrow\r
17         layer& operator=(layer&& other); // nothrow\r
18                 \r
19         void load(const safe_ptr<frame_producer>& producer, bool play_on_load = false); // nothrow\r
20         void preview(const safe_ptr<frame_producer>& producer); // nothrow\r
21         void play(); // nothrow\r
22         void pause(); // nothrow\r
23         void stop(); // nothrow\r
24         void clear(); // nothrow\r
25 \r
26         safe_ptr<frame_producer> foreground() const; // nothrow\r
27         safe_ptr<frame_producer> background() const; // nothrow\r
28 \r
29         safe_ptr<draw_frame> receive(); // nothrow\r
30 private:\r
31         struct implementation;\r
32         std::shared_ptr<implementation> impl_;\r
33 };\r
34 \r
35 }}