X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_decoder.h;h=483c057acf76121a849e2506ec2279a49da77142;hb=fdcbd7eb473950f784fba05dcbf4bff115dbbd06;hp=84deab10143f741a7dd4029dc0ee94e6e1586801;hpb=de2af791bdfdcd653752cba970e59efc7bf810c7;p=dcpomatic.git diff --git a/src/lib/dcp_decoder.h b/src/lib/dcp_decoder.h index 84deab101..483c057ac 100644 --- a/src/lib/dcp_decoder.h +++ b/src/lib/dcp_decoder.h @@ -39,15 +39,16 @@ struct dcp_subtitle_within_dcp_test; class DCPDecoder : public DCP, public Decoder { public: - DCPDecoder (boost::shared_ptr, boost::shared_ptr log); + DCPDecoder (boost::shared_ptr, boost::shared_ptr log, bool fast); std::list > reels () const { return _reels; } - void set_decode_referenced (); + void set_decode_referenced (bool r); + void set_forced_reduction (boost::optional reduction); - void pass (); + bool pass (); void seek (ContentTime t, bool accurate); private: @@ -55,6 +56,7 @@ private: void next_reel (); void get_readers (); + void pass_subtitles (ContentTime next); /** Time of next thing to return from pass relative to the start of _reel */ ContentTime _next; @@ -71,4 +73,5 @@ private: boost::shared_ptr _sound_reader; bool _decode_referenced; + boost::optional _forced_reduction; };