Avoid unnecessary re-writes of video assets if they are staying the same (#1638).
[dcpomatic.git] / src / lib / player_video.h
index 928dfc690a9f3aea0c82fc4334837e5923bd8c2e..3cd5594097baa42e7a3727ba59c83d6ae0544d18 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2013-2019 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
@@ -54,6 +54,7 @@ public:
                Eyes,
                Part,
                boost::optional<ColourConversion>,
+               VideoRange video_range,
                boost::weak_ptr<Content>,
                boost::optional<Frame>
                );
@@ -117,6 +118,7 @@ private:
        Eyes _eyes;
        Part _part;
        boost::optional<ColourConversion> _colour_conversion;
+       VideoRange _video_range;
        boost::optional<PositionImage> _text;
        /** Content that we came from.  This is so that reset_metadata() can work, and also
         *  for variant:swaroop's non-skippable ads.
@@ -133,6 +135,8 @@ private:
        mutable dcp::Size _image_inter_size;
        /** _out_size that was used to make _image */
        mutable dcp::Size _image_out_size;
+       /** _fade that was used to make _image */
+       mutable boost::optional<double> _image_fade;
 };
 
 #endif