X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fimage_decoder.h;h=067a247208f31b05f7c7cc4f1f6722b1deed09ba;hb=924f4edb20d14bc697956254951fb87513cf2e19;hp=9f1484e47a33c8fe83a9a1b004592f5dd7057ab8;hpb=84012cdd64f451891febd36154b7226ea21a899b;p=dcpomatic.git diff --git a/src/lib/image_decoder.h b/src/lib/image_decoder.h index 9f1484e47..067a24720 100644 --- a/src/lib/image_decoder.h +++ b/src/lib/image_decoder.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,27 +18,30 @@ */ + #include "decoder.h" + class ImageContent; class Log; class ImageProxy; + class ImageDecoder : public Decoder { public: - ImageDecoder (boost::shared_ptr film, boost::shared_ptr c); + ImageDecoder (std::shared_ptr film, std::shared_ptr c); - boost::shared_ptr content () { + std::shared_ptr content () { return _image_content; } - bool pass (); - void seek (ContentTime, bool); + bool pass () override; + void seek (dcpomatic::ContentTime, bool) override; private: - boost::shared_ptr _image_content; - boost::shared_ptr _image; - Frame _frame_video_position; + std::shared_ptr _image_content; + std::shared_ptr _image; + Frame _frame_video_position = 0; };