diff options
| author | Tim Redfern <tim@herge.(none)> | 2013-04-10 18:33:57 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@herge.(none)> | 2013-04-10 18:33:57 +0100 |
| commit | 8e6038f799b50986871325f28b4f807312502681 (patch) | |
| tree | b5403ceb0a3e05beee6fe677c43431df0c289480 /rotord/rotor.h | |
| parent | a29217ecc368cdeee7e908fc7db3c717cc51fd70 (diff) | |
making render path
Diffstat (limited to 'rotord/rotor.h')
| -rwxr-xr-x | rotord/rotor.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/rotord/rotor.h b/rotord/rotor.h index 36ef0aa..699aa8a 100755 --- a/rotord/rotor.h +++ b/rotord/rotor.h @@ -326,6 +326,15 @@ namespace Rotor { else return 0.0f; } }; + class Video_output: public Image_node { + public: + Video_output(){}; + Video_output(map<string,string> &settings) { + base_settings(settings); + }; + Video_output* clone(map<string,string> &_settings) { return new Video_output(_settings);}; + bool render(const float duration, const float framerate,string &filename); + }; //------------------------------------------------------------------- class Node_factory{ public: @@ -374,6 +383,18 @@ namespace Rotor { } else return false; } + bool video_render(const float _fr,string &filename) { + //things to manage: + //audio location is known by render context + //video_output can generate frames + //where do these come together? + if (_fr>.001) framerate=_fr; + if (find_node("video_output")) { + Video_output *video_output=dynamic_cast<Video_output*>(find_node("video_output")); + return video_output->render(duration,framerate,filename,); + } + else return false; + } int load(Poco::UUID uid); bool load(string &graph_filename); UUID save(); //save to DB, returns UUID of saved graph |
