Don't throw an error when the Butler says it is finished (#2097).
[dcpomatic.git] / src / lib / image_examiner.h
index 2e743a82e4b318b3450a0c5546d29fc97d70d3a8..0dcdebad0520986bce14a84363c82037149fb49d 100644 (file)
@@ -25,7 +25,7 @@ class ImageContent;
 class ImageExaminer : public VideoExaminer
 {
 public:
-       ImageExaminer (boost::shared_ptr<const Film>, boost::shared_ptr<const ImageContent>, boost::shared_ptr<Job>);
+       ImageExaminer (std::shared_ptr<const Film>, std::shared_ptr<const ImageContent>, std::shared_ptr<Job>);
 
        bool has_video () const {
                return true;
@@ -36,10 +36,17 @@ public:
                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<const Film> _film;
-       boost::shared_ptr<const ImageContent> _image_content;
+       std::weak_ptr<const Film> _film;
+       std::shared_ptr<const ImageContent> _image_content;
        boost::optional<dcp::Size> _video_size;
        Frame _video_length;
 };