summaryrefslogtreecommitdiff
path: root/rotord/graph.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@herge.(none)>2013-07-01 16:04:34 +0100
committerTim Redfern <tim@herge.(none)>2013-07-01 16:04:34 +0100
commit0d867b8b615add6e1a5aaa300c5a39b87614d906 (patch)
tree27134dc08b34782a4d62da8671cfa181eecdeca9 /rotord/graph.cpp
parent3710ee5ea32841d3f62e52834aa2a55f026c6620 (diff)
generating output xml
Diffstat (limited to 'rotord/graph.cpp')
-rw-r--r--rotord/graph.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/rotord/graph.cpp b/rotord/graph.cpp
index 7644dde..a6e1603 100644
--- a/rotord/graph.cpp
+++ b/rotord/graph.cpp
@@ -34,12 +34,20 @@ bool Graph::signal_render(string &signal_xml,const float framerate) {
bool Graph::video_render(const string &output_filename,const string &audio_filename,const float framerate,float& progress) {
if (find_node("video_output")) {
Video_output *video_output=dynamic_cast<Video_output*>(find_node("video_output"));
- return video_output->render(duration,framerate,output_filename,audio_filename,progress);
+ return video_output->render(duration,framerate,output_filename,audio_filename,progress,outW,outH);
}
cerr<<"Rotor: video output node not found"<<endl;
return false;
}
+bool Graph::set_resolution(int w,int h){
+ if (w>64&&h>48){
+ outW=w;
+ outH=h;
+ return true;
+ }
+ else return false;
+}
bool Graph::load(string &filename){
loaded=false;
printf("loading graph: %s\n",filename.c_str());