diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-05-19 21:35:46 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-05-19 21:35:46 +0200 |
| commit | 8d67ad2e74b6d2c88b52a397a2c2823254ec09fb (patch) | |
| tree | c5901380449dcd83ea8f5eaeafd775d8f40e6c29 /src/lib/black_decoder.h | |
| parent | e08d1ce718493a869e429be3a6f811575f2c8dd1 (diff) | |
wip: black pieces; sad part is that Shuffler can't cope with content that doesn't start at the same time.2253-3d-empty
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; +}; |
