X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fdecoder_part.h;h=57ddee781968556087e6d307043ddad6850a260e;hp=4b309a6682bd39c767882da148032570acba6d15;hb=2d4e8c5f69cc694625ad95dcee554499605f823b;hpb=f113b2aaca7a65f7b37e12a7d9f3f99e2d834e81 diff --git a/src/lib/decoder_part.h b/src/lib/decoder_part.h index 4b309a668..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,43 +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); + virtual ~DecoderPart () {} + + 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 { return _ignore; } - void set_position (ContentTime position) { - _position = position; - } - - boost::optional position () const { - return _position; - } - - void maybe_seek (ContentTime time, bool accurate); - protected: Decoder* _parent; private: bool _ignore; - boost::optional _position; }; + #endif