X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fimage_examiner.h;h=0dcdebad0520986bce14a84363c82037149fb49d;hb=09f8b57ac237c98eae648fc31093cf22495db740;hp=281b002f33572c1708dfef7f42297d8b14c9a31e;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05;p=dcpomatic.git diff --git a/src/lib/image_examiner.h b/src/lib/image_examiner.h index 281b002f3..0dcdebad0 100644 --- a/src/lib/image_examiner.h +++ b/src/lib/image_examiner.h @@ -25,18 +25,28 @@ class ImageContent; class ImageExaminer : public VideoExaminer { public: - ImageExaminer (boost::shared_ptr, boost::shared_ptr, boost::shared_ptr); + ImageExaminer (std::shared_ptr, std::shared_ptr, std::shared_ptr); + bool has_video () const { + return true; + } boost::optional video_frame_rate () const; dcp::Size video_size () const; Frame video_length () const { return _video_length; } bool yuv () const; + VideoRange range () const { + return VideoRange::FULL; + } + PixelQuanta pixel_quanta () const { + /* See ::yuv - we're assuming the image is not YUV and so not subsampled */ + return {}; + } private: - boost::weak_ptr _film; - boost::shared_ptr _image_content; + std::weak_ptr _film; + std::shared_ptr _image_content; boost::optional _video_size; Frame _video_length; };