]> git.sesse.net Git - casparcg/blobdiff - core/producer/layer.h
2.0. Applied tk3 patch, STATUS command for layer status querying.
[casparcg] / core / producer / layer.h
index eb976d5d7293a7ce5f4fcf00eb0381fd56efd678..e7991d1f310ad7b39c78fe473735a92bda6540c8 100644 (file)
@@ -29,6 +29,15 @@ namespace caspar { namespace core {
 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 +55,11 @@ 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