X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdecoder_part.h;h=57ddee781968556087e6d307043ddad6850a260e;hb=8963f0007af1a312017b9627c18b82ec2a577591;hp=ed92d43b4258abf95fa03a2049e7b137c69cfe29;hpb=a28ef704adf8c5bfa45b3d6285f741af64758ceb;p=dcpomatic.git diff --git a/src/lib/decoder_part.h b/src/lib/decoder_part.h index ed92d43b4..57ddee781 100644 --- a/src/lib/decoder_part.h +++ b/src/lib/decoder_part.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2016 Carl Hetherington + Copyright (C) 2012-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,38 +18,43 @@ */ + #ifndef DCPOMATIC_DECODER_PART_H #define DCPOMATIC_DECODER_PART_H + #include "dcpomatic_time.h" #include + class Decoder; class Log; +class Film; + class DecoderPart { public: - DecoderPart (Decoder* parent, boost::shared_ptr log); + DecoderPart (Decoder* parent); + virtual ~DecoderPart () {} - void set_ignore () { - _ignore = true; + virtual boost::optional position (std::shared_ptr film) const = 0; + virtual void seek () = 0; + + void set_ignore (bool i) { + _ignore = i; } bool ignore () const { return _ignore; } - virtual boost::optional position () const = 0; - - void maybe_seek (ContentTime time, bool accurate); - protected: Decoder* _parent; - boost::shared_ptr _log; private: bool _ignore; }; + #endif