From 6e615b00dbb54f33b928e0de0695087709fbc073 Mon Sep 17 00:00:00 2001 From: Comment Date: Mon, 23 Sep 2013 11:51:28 +0100 Subject: MP4 fragmentation control API --- rotord/src/graph.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'rotord/src/graph.h') 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{ -- cgit v1.2.3