X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fdecoder_part.h;h=57ddee781968556087e6d307043ddad6850a260e;hp=a9568be8a6586a84b8d596c3f46795f2e89b0de5;hb=ac34066d5e448d1984d11a180be74e31b6e13b5c;hpb=89aa9d4ba69e471949f791cdafe4ae20cea554d2 diff --git a/src/lib/decoder_part.h b/src/lib/decoder_part.h index a9568be8a..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,25 +18,31 @@ */ + #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 () {} - virtual ContentTime position () const = 0; + virtual boost::optional position (std::shared_ptr film) const = 0; + virtual void seek () = 0; - void set_ignore () { - _ignore = true; + void set_ignore (bool i) { + _ignore = i; } bool ignore () const { @@ -45,10 +51,10 @@ public: protected: Decoder* _parent; - boost::shared_ptr _log; private: bool _ignore; }; + #endif