#include "../frame/frame_factory.h"\r
\r
#include <common/executor.h>\r
+#include <common/future.h>\r
#include <common/diagnostics/graph.h>\r
\r
#include <core/frame/frame_transform.h>\r
return layers_[index].info();\r
}, task_priority::high_priority);\r
} \r
+ \r
+ boost::unique_future<std::wstring> call(int index, const std::wstring& params)\r
+ {\r
+ return flatten(executor_.begin_invoke([=]\r
+ {\r
+ return make_shared(layers_[index].foreground()->call(params));\r
+ }, task_priority::high_priority));\r
+ }\r
};\r
\r
stage::stage(spl::shared_ptr<diagnostics::graph> graph) : impl_(new impl(std::move(graph))){}\r
+boost::unique_future<std::wstring> stage::call(int index, const std::wstring& params){return impl_->call(index, params);}\r
void stage::apply_transforms(const std::vector<stage::transform_tuple_t>& transforms){impl_->apply_transforms(transforms);}\r
void stage::apply_transform(int index, const std::function<core::frame_transform(core::frame_transform)>& transform, unsigned int mix_duration, const tweener& tween){impl_->apply_transform(index, transform, mix_duration, tween);}\r
void stage::clear_transforms(int index){impl_->clear_transforms(index);}\r