Various work on better seeking (and seeking of audio).
[dcpomatic.git] / src / lib / decoder.h
index d67592ed812544c644b8766bcb1b1be1c03e84de..908d3aae51c3948803199af980ae4f7bb1e1f157 100644 (file)
@@ -27,6 +27,7 @@
 #include <boost/shared_ptr.hpp>
 #include <boost/weak_ptr.hpp>
 #include <boost/utility.hpp>
+#include "types.h"
 
 class Film;
 
@@ -43,6 +44,14 @@ public:
         *  cause the object to emit some data.
         */
        virtual void pass () = 0;
+
+       /** Seek so that the next pass() will yield the next thing
+        *  (video/sound frame, subtitle etc.) at or after the requested
+        *  time.  Pass accurate = true to try harder to get close to
+        *  the request.
+        */
+       virtual void seek (Time time, bool accurate) = 0;
+
        virtual bool done () const = 0;
 
 protected: