Stop crashing when running the hints check on films with silent/black gaps.
[dcpomatic.git] / src / lib / image.h
index 1869ca828fef65f6bedff70cd1105054e0d741ce..4b059ff36fb8c7534d4559015409d282b5a50056 100644 (file)
@@ -44,7 +44,6 @@ public:
        Image (AVPixelFormat p, dcp::Size s, bool aligned, int extra_pixels = 0);
        explicit Image (AVFrame *);
        explicit Image (Image const &);
-       explicit Image (dcp::Data);
        Image (boost::shared_ptr<const Image>, bool);
        Image& operator= (Image const &);
        ~Image ();
@@ -64,7 +63,7 @@ public:
        boost::shared_ptr<Image> convert_pixel_format (dcp::YUVToRGB yuv_to_rgb, AVPixelFormat out_format, bool aligned, bool fast) const;
        boost::shared_ptr<Image> scale (dcp::Size out_size, dcp::YUVToRGB yuv_to_rgb, AVPixelFormat out_format, bool aligned, bool fast) const;
        boost::shared_ptr<Image> crop_scale_window (
-               Crop crop, dcp::Size inter_size, dcp::Size out_size, dcp::YUVToRGB yuv_to_rgb, AVPixelFormat out_format, bool aligned, bool fast
+               Crop crop, dcp::Size inter_size, dcp::Size out_size, dcp::YUVToRGB yuv_to_rgb, VideoRange video_range, AVPixelFormat out_format, bool aligned, bool fast
                ) const;
 
        void make_black ();
@@ -84,6 +83,8 @@ public:
 
        dcp::Data as_png () const;
 
+       void png_error (char const * message);
+
        static boost::shared_ptr<const Image> ensure_aligned (boost::shared_ptr<const Image> image);
 
 private: