Fix nonfunctional send-problem-report.
[dcpomatic.git] / src / lib / video_content.h
index c0a609a6ac90ae7891ca9d1cea1d421fb7b30401..6896551314eaaf9c2a96ae7d5b28af2e1781d044 100644 (file)
@@ -79,9 +79,14 @@ public:
                return _video_size;
        }
 
-       double video_frame_rate () const {
+       double video_frame_rate () const;
+
+       /** @return true if this content has a specific video frame rate, false
+        *  if it should use the DCP's rate.
+        */
+       bool has_own_video_frame_rate () const {
                boost::mutex::scoped_lock lm (_mutex);
-               return _video_frame_rate;
+               return static_cast<bool>(_video_frame_rate);
        }
 
        void set_video_frame_type (VideoFrameType);
@@ -145,6 +150,11 @@ public:
                return _sample_aspect_ratio;
        }
 
+       bool yuv () const {
+               boost::mutex::scoped_lock lm (_mutex);
+               return _yuv;
+       }
+
        Frame fade_in () const {
                boost::mutex::scoped_lock lm (_mutex);
                return _fade_in;
@@ -172,7 +182,8 @@ protected:
        void add_properties (std::list<std::pair<std::string, std::string> > &) const;
 
        Frame _video_length;
-       double _video_frame_rate;
+       /** Video frame rate, or not set if this content should use the DCP's frame rate */
+       boost::optional<double> _video_frame_rate;
        boost::optional<ColourConversion> _colour_conversion;
 
 private:
@@ -191,6 +202,7 @@ private:
            if there is one.
        */
        boost::optional<double> _sample_aspect_ratio;
+       bool _yuv;
        Frame _fade_in;
        Frame _fade_out;
 };