Start of changing frame numbers to time.
[dcpomatic.git] / src / lib / ffmpeg_decoder.h
index 11f83ed97c9808aeaff603f110814463b51234a6..ed45577029e24312326d2f890cd659f46de0243f 100644 (file)
@@ -52,7 +52,7 @@ public:
        ~FFmpegDecoder ();
 
        void pass ();
-       void seek (VideoContent::Frame, bool);
+       void seek (DCPTime time, bool);
        bool done () const;
 
 private:
@@ -74,6 +74,11 @@ private:
        void maybe_add_subtitle ();
        boost::shared_ptr<AudioBuffers> deinterleave_audio (uint8_t** data, int size);
 
+       bool seek_overrun_finished (DCPTime) const;
+       bool seek_final_finished (int, int) const;
+       int minimal_run (boost::function<bool (int)>);
+       void seek_and_flush (int64_t);
+
        AVCodecContext* _subtitle_codec_context; ///< may be 0 if there is no subtitle
        AVCodec* _subtitle_codec;                ///< may be 0 if there is no subtitle
        
@@ -85,5 +90,4 @@ private:
 
        double _video_pts_offset;
        double _audio_pts_offset;
-       bool _just_sought;
 };