summaryrefslogtreecommitdiff
path: root/rotord/src/graph.h
diff options
context:
space:
mode:
Diffstat (limited to 'rotord/src/graph.h')
-rw-r--r--rotord/src/graph.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/rotord/src/graph.h b/rotord/src/graph.h
index 58861ac..cc531cd 100644
--- a/rotord/src/graph.h
+++ b/rotord/src/graph.h
@@ -20,6 +20,7 @@ namespace Rotor {
Graph(const string& _uid,const string& _desc){
init(_uid,_desc);
audio_loaded=false;
+ bitRate=1000000;
};
void init(const string& _uid,const string& _desc){
uid=_uid;
@@ -54,6 +55,13 @@ namespace Rotor {
bool print_features(xmlIO &XML,string &node);
bool load_audio(const string &filename,vector<Audio_processor*> processors);
bool load_video(const string &nodeID,const string &filename);//can be performance or clip
+ bool set_bitrate(int b){
+ if (b>64000){
+ bitRate=b;
+ return true;
+ }
+ else return false;
+ }
bool loaded;
float duration;
float framerate;
@@ -63,6 +71,7 @@ namespace Rotor {
string audio_filename;
bool cancelled;
float progress;
+ int bitRate;
private:
int outW,outH;