Various improvements to dcpomatic_kdm.
[dcpomatic.git] / src / lib / video_content.h
index 697a0ecc3415b200a745800c76a89e062d98d36c..72c72625b5c30a97927fdefe17b56c98492cf24f 100644 (file)
@@ -21,6 +21,7 @@
 #define DCPOMATIC_VIDEO_CONTENT_H
 
 #include "content.h"
+#include "colour_conversion.h"
 
 class VideoExaminer;
 class Ratio;
@@ -30,8 +31,10 @@ class VideoContentProperty
 public:
        static int const VIDEO_SIZE;
        static int const VIDEO_FRAME_RATE;
+       static int const VIDEO_FRAME_TYPE;
        static int const VIDEO_CROP;
        static int const VIDEO_RATIO;
+       static int const COLOUR_CONVERSION;
 };
 
 class VideoContent : public virtual Content
@@ -42,9 +45,9 @@ public:
        VideoContent (boost::shared_ptr<const Film>, Time, VideoContent::Frame);
        VideoContent (boost::shared_ptr<const Film>, boost::filesystem::path);
        VideoContent (boost::shared_ptr<const Film>, boost::shared_ptr<const cxml::Node>);
-       VideoContent (VideoContent const &);
 
        void as_xml (xmlpp::Node *) const;
+       std::string technical_summary () const;
        virtual std::string information () const;
        virtual std::string identifier () const;
 
@@ -63,12 +66,20 @@ public:
                return _video_frame_rate;
        }
 
-       void set_crop (Crop);
+       void set_video_frame_type (VideoFrameType);
+
        void set_left_crop (int);
        void set_right_crop (int);
        void set_top_crop (int);
        void set_bottom_crop (int);
 
+       void set_colour_conversion (ColourConversion);
+
+       VideoFrameType video_frame_type () const {
+               boost::mutex::scoped_lock lm (_mutex);
+               return _video_frame_type;
+       }
+
        Crop crop () const {
                boost::mutex::scoped_lock lm (_mutex);
                return _crop;
@@ -81,6 +92,13 @@ public:
                return _ratio;
        }
 
+       ColourConversion colour_conversion () const {
+               boost::mutex::scoped_lock lm (_mutex);
+               return _colour_conversion;
+       }
+
+       libdcp::Size video_size_after_3d_split () const;
+
 protected:
        void take_from_video_examiner (boost::shared_ptr<VideoExaminer>);
 
@@ -94,8 +112,10 @@ private:
        
        libdcp::Size _video_size;
        float _video_frame_rate;
+       VideoFrameType _video_frame_type;
        Crop _crop;
        Ratio const * _ratio;
+       ColourConversion _colour_conversion;
 };
 
 #endif