#include "frame_producer.h"\r
#include "frame/basic_frame.h"\r
\r
+#include <boost/property_tree/ptree.hpp>\r
+\r
namespace caspar { namespace core {\r
\r
struct layer::implementation\r
{\r
return background_ == core::frame_producer::empty() && foreground_ == core::frame_producer::empty();\r
}\r
+\r
+ boost::property_tree::wptree info() const\r
+ {\r
+ boost::property_tree::wptree info;\r
+ info.add_child(L"layer.foreground", foreground_->info());\r
+ info.add_child(L"layer.background", foreground_->info());\r
+ info.add(L"layer.status", is_paused_ ? L"paused" : (foreground_ == frame_producer::empty() ? L"stopped" : L"playing"));\r
+ info.add(L"layer.auto_delta", auto_play_delta_);\r
+ return info;\r
+ }\r
};\r
\r
layer::layer() : impl_(new implementation()){}\r
safe_ptr<frame_producer> layer::background() const { return impl_->background_;}\r
bool layer::empty() const {return impl_->empty();}\r
boost::unique_future<std::wstring> layer::call(bool foreground, const std::wstring& param){return impl_->call(foreground, param);}\r
+boost::property_tree::wptree layer::info() const{return impl_->info();}\r
}}
\ No newline at end of file