summaryrefslogtreecommitdiff
path: root/rotord/src/graph.h
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-09-23 11:51:28 +0100
committerComment <tim@gray.(none)>2013-09-23 11:51:28 +0100
commit6e615b00dbb54f33b928e0de0695087709fbc073 (patch)
treea852af1b89c007a05f84d36e8505913b34a08d45 /rotord/src/graph.h
parent6fac9b5e406d7be3fbfd67cb5d21272727f6043a (diff)
MP4 fragmentation control API
Diffstat (limited to 'rotord/src/graph.h')
-rw-r--r--rotord/src/graph.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/rotord/src/graph.h b/rotord/src/graph.h
index 60e61db..3267bb3 100644
--- a/rotord/src/graph.h
+++ b/rotord/src/graph.h
@@ -16,7 +16,7 @@ Graph is an instance of a rotor renderer
namespace Rotor {
class Graph{
public:
- Graph(){duration=20.0f;loaded = false;outW=640;outH=360;audio_thumb=new Audio_thumbnailer();};
+ Graph(){duration=20.0f;loaded = false;outW=640;outH=360;audio_thumb=new Audio_thumbnailer();use_fragmentation=true;};
Graph(const string& _uid,const string& _desc){
init(_uid,_desc);
audio_loaded=false;
@@ -62,6 +62,10 @@ namespace Rotor {
}
else return false;
}
+ bool set_fragmentation(bool f){
+ use_fragmentation=f;
+ return true;
+ }
bool loaded;
float duration;
float framerate;
@@ -76,6 +80,7 @@ namespace Rotor {
Audio_thumbnailer *audio_thumb;
private:
int outW,outH;
+ bool use_fragmentation;
};
class Thumbnailer{