diff options
Diffstat (limited to 'NT/src/rendercontext.h')
| -rw-r--r-- | NT/src/rendercontext.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/NT/src/rendercontext.h b/NT/src/rendercontext.h index d1acf55..3ac9c08 100644 --- a/NT/src/rendercontext.h +++ b/NT/src/rendercontext.h @@ -42,7 +42,8 @@ namespace Rotor { #define ANALYSE_AUDIO 1 #define PREVIEW 2 #define RENDER 3 - #define LOAD_GRAPH 4 + #define LOAD_GRAPH_FILE 4 + #define LOAD_GRAPH_STRING 5 class Session_command { public: @@ -50,11 +51,12 @@ namespace Rotor { string uid,method,id,body; vector<string> commands; }; - class Session_task { + class Session_task { public: Session_task(const string &_uid="",int _task=0):uid(_uid),task(_task) {}; string uid; int task; + string message; }; class Render_status { public: @@ -92,6 +94,7 @@ namespace Rotor { cancel(); logger.information("stopped thread"); } + void runTask(); void add_queue(Session_task item); bool set_profile(const std::string& _profile){ if (profiles.find(_profile)==profiles.end()) return false; @@ -109,8 +112,11 @@ namespace Rotor { return Render_status(NOT_FOUND); }; std::string text_render(std::string node_id=""); + bool video_render(std::string output_filename,std::string node_id=""); Graph graph; private: + bool cancelled; + double progress; int state; std::string id; std::unordered_map<std::string,Render_status> renders; |
