]> git.sesse.net Git - casparcg/blobdiff - core/producer/layer.h
git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches...
[casparcg] / core / producer / layer.h
index 86c741ded4868d35f98f6806a35b9e129ad66d2f..4a1b3b8d3d268a34318d681c5ac37fa63989715c 100644 (file)
 \r
 #include <boost/noncopyable.hpp>\r
 \r
+#include <string>\r
+#include <utility>\r
+\r
 namespace caspar { namespace core {\r
 \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
@@ -46,6 +58,13 @@ public:
        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