Speed some operations by re-using the last PlayerVideo but with
[dcpomatic.git] / src / lib / ffmpeg_decoder.h
index 3ea5f580928773c1a8f681aa782e1e4e61e08def..3a38f4475333d3f3871e057fb376c56ff3ca2122 100644 (file)
@@ -45,7 +45,7 @@ struct ffmpeg_pts_offset_test;
 class FFmpegDecoder : public FFmpeg, public Decoder
 {
 public:
-       FFmpegDecoder (boost::shared_ptr<const FFmpegContent>, boost::shared_ptr<Log>);
+       FFmpegDecoder (boost::shared_ptr<const FFmpegContent>, boost::shared_ptr<Log> log, bool fast);
 
        bool pass ();
        void seek (ContentTime time, bool);
@@ -78,4 +78,6 @@ private:
        bool _have_current_subtitle;
 
        boost::shared_ptr<Image> _black_image;
+
+       std::vector<boost::optional<ContentTime> > _next_time;
 };