Change MagickImageProxy to FFmpegImageProxy and make it use FFmpeg
[dcpomatic.git] / src / lib / decoder_part.h
index 4b309a6682bd39c767882da148032570acba6d15..0b8b6a43bfdedc89d416aa21df3b60800649b741 100644 (file)
 #include <boost/optional.hpp>
 
 class Decoder;
+class Log;
 
 class DecoderPart
 {
 public:
-       DecoderPart (Decoder* parent);
+       DecoderPart (Decoder* parent, boost::shared_ptr<Log> log);
+       virtual ~DecoderPart () {}
 
-       void set_ignore () {
-               _ignore = true;
+       virtual ContentTime position () const = 0;
+       virtual void seek () = 0;
+
+       void set_ignore (bool i) {
+               _ignore = i;
        }
 
        bool ignore () const {
                return _ignore;
        }
 
-       void set_position (ContentTime position) {
-               _position = position;
-       }
-
-       boost::optional<ContentTime> position () const {
-               return _position;
-       }
-
-       void maybe_seek (ContentTime time, bool accurate);
-
 protected:
        Decoder* _parent;
+       boost::shared_ptr<Log> _log;
 
 private:
        bool _ignore;
-       boost::optional<ContentTime> _position;
 };
 
 #endif