Barely-functioning GL playback with new arrangement.
[dcpomatic.git] / src / lib / dcp_decoder.h
index f31d28053c3b3fc987190585fab451633a6ffa38..496d95740d63cf26e9c74024dd43f506416cbf7b 100644 (file)
@@ -44,7 +44,8 @@ public:
                boost::shared_ptr<const Film> film,
                boost::shared_ptr<const DCPContent>,
                bool fast,
-               boost::shared_ptr<DCPDecoder> old = boost::shared_ptr<DCPDecoder>()
+               bool tolerant,
+               boost::shared_ptr<DCPDecoder> old
                );
 
        std::list<boost::shared_ptr<dcp::Reel> > reels () const {
@@ -57,6 +58,10 @@ public:
        bool pass ();
        void seek (dcpomatic::ContentTime t, bool accurate);
 
+       std::string lazy_digest () const {
+               return _lazy_digest;
+       }
+
 private:
        friend struct dcp_subtitle_within_dcp_test;
 
@@ -71,6 +76,7 @@ private:
                boost::shared_ptr<TextDecoder> decoder,
                dcp::Size size
                );
+       std::string calculate_lazy_digest (boost::shared_ptr<const DCPContent>) const;
 
        /** Time of next thing to return from pass relative to the start of _reel */
        dcpomatic::ContentTime _next;
@@ -88,4 +94,6 @@ private:
 
        bool _decode_referenced;
        boost::optional<int> _forced_reduction;
+
+       std::string _lazy_digest;
 };