\r
#include <boost/noncopyable.hpp>\r
\r
+#include <string>\r
+#include <utility>\r
+\r
namespace caspar { namespace core {\r
\r
-class frame_producer;\r
+struct frame_producer;\r
class basic_frame;\r
\r
+struct layer_status\r
+{\r
+ std::wstring foreground;\r
+ std::wstring background;\r
+ bool is_paused;\r
+ int64_t total_frames;\r
+ int64_t current_frame;\r
+};\r
+\r
class layer : boost::noncopyable\r
{\r
public:\r
\r
void swap(layer& other); // nothrow \r
\r
- void load(const safe_ptr<frame_producer>& producer, bool preview); // nothrow\r
+ void load(const safe_ptr<frame_producer>& producer, bool preview, int auto_play_delta); // nothrow\r
void play(); // nothrow\r
void pause(); // nothrow\r
void stop(); // nothrow\r
void param(const std::wstring& param);\r
\r
+ bool is_paused() const;\r
+ int64_t frame_number() const;\r
+\r
+ layer_status status() const;\r
+\r
+ bool empty() const;\r
+\r
safe_ptr<frame_producer> foreground() const; // nothrow\r
safe_ptr<frame_producer> background() const; // nothrow\r
\r