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);
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;
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:
if there is one.
*/
boost::optional<double> _sample_aspect_ratio;
+ bool _yuv;
Frame _fade_in;
Frame _fade_out;
};