Don't disable forensic marking by default.
[dcpomatic.git] / src / lib / dcp_decoder.h
index b1b26056ba6073badf2ae48982b7332ed13132d6..483c057acf76121a849e2506ec2279a49da77142 100644 (file)
@@ -39,24 +39,24 @@ struct dcp_subtitle_within_dcp_test;
 class DCPDecoder : public DCP, public Decoder
 {
 public:
-       DCPDecoder (boost::shared_ptr<const DCPContent>, boost::shared_ptr<Log> log);
+       DCPDecoder (boost::shared_ptr<const DCPContent>, boost::shared_ptr<Log> log, bool fast);
 
        std::list<boost::shared_ptr<dcp::Reel> > reels () const {
                return _reels;
        }
 
-       void set_decode_referenced ();
+       void set_decode_referenced (bool r);
+       void set_forced_reduction (boost::optional<int> reduction);
+
+       bool pass ();
+       void seek (ContentTime t, bool accurate);
 
 private:
        friend struct dcp_subtitle_within_dcp_test;
 
-       bool pass (PassReason, bool accurate);
-       void seek (ContentTime t, bool accurate);
        void next_reel ();
        void get_readers ();
-
-       std::list<ContentTimePeriod> image_subtitles_during (ContentTimePeriod, bool starting) const;
-       std::list<ContentTimePeriod> text_subtitles_during (ContentTimePeriod, bool starting) const;
+       void pass_subtitles (ContentTime next);
 
        /** Time of next thing to return from pass relative to the start of _reel */
        ContentTime _next;
@@ -73,4 +73,5 @@ private:
        boost::shared_ptr<dcp::SoundAssetReader> _sound_reader;
 
        bool _decode_referenced;
+       boost::optional<int> _forced_reduction;
 };