3 #include <common/memory/safe_ptr.h>
\r
5 #include <boost/noncopyable.hpp>
\r
7 namespace caspar { namespace core {
\r
9 class frame_producer;
\r
12 class layer : boost::noncopyable
\r
15 layer(int index = -1); // nothrow
\r
16 layer(layer&& other); // nothrow
\r
17 layer& operator=(layer&& other); // nothrow
\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
26 bool empty() const; // nothrow
\r
28 safe_ptr<frame_producer> foreground() const; // nothrow
\r
29 safe_ptr<frame_producer> background() const; // nothrow
\r
31 safe_ptr<draw_frame> receive(); // nothrow
\r
33 struct implementation;
\r
34 std::shared_ptr<implementation> impl_;
\r