diff options
Diffstat (limited to 'src/lib/black_decoder.h')
| -rw-r--r-- | src/lib/black_decoder.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/lib/black_decoder.h b/src/lib/black_decoder.h new file mode 100644 index 000000000..58741e11f --- /dev/null +++ b/src/lib/black_decoder.h @@ -0,0 +1,28 @@ +#include "dcpomatic_time.h" +#include "decoder.h" + + +class BlackContent; +class Image; +class RawImageProxy; + + +class BlackDecoder : public Decoder +{ +public: + BlackDecoder (std::shared_ptr<const Film> film, std::shared_ptr<const BlackContent> content); + + bool pass () override; + void seek (dcpomatic::ContentTime time, bool accurate) override; + + dcpomatic::ContentTime position () const override { + return dcpomatic::ContentTime(_position.get()); + } + +private: + std::shared_ptr<const BlackContent> _content; + int _video_frame_rate; + dcpomatic::DCPTime _position; + std::shared_ptr<Image> _image; + std::shared_ptr<const RawImageProxy> _proxy; +}; |
