\r
#include <boost/noncopyable.hpp>\r
\r
-#include <memory>\r
-#include <numeric>\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
-class layer //: boost::noncopyable\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
layer(); // nothrow\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
safe_ptr<basic_frame> receive(); // nothrow\r
private:\r
struct implementation;\r
- std::shared_ptr<implementation> impl_;\r
+ safe_ptr<implementation> impl_;\r
};\r
\r
}}
\ No newline at end of file