+ }\r
+\r
+ layer_status status() const\r
+ {\r
+ layer_status status;\r
+ status.foreground = foreground_->print();\r
+ status.background = background_->print();\r
+ status.is_paused = is_paused_;\r
+ status.total_frames = foreground_->nb_frames();\r
+ status.current_frame = frame_number_;\r
+\r
+ return status;\r
+ }\r
+\r
+ bool empty() const\r
+ {\r
+ return background_ == core::frame_producer::empty() && foreground_ == core::frame_producer::empty();\r