DCPOMATIC_ASSERT (film);
return film;
}
+
+/** @return DCP times of points within this content where a reel split could occur */
+list<DCPTime>
+Content::reel_split_points () const
+{
+ list<DCPTime> t;
+ /* XXX: this is questionable; perhaps the position itself should be forced to be on a frame boundary */
+ t.push_back (position().round_up (film()->video_frame_rate()));
+ return t;
+}
virtual void as_xml (xmlpp::Node *) const;
virtual DCPTime full_length () const = 0;
virtual std::string identifier () const;
+ /** @return points at which to split this content when
+ * REELTYPE_BY_VIDEO_CONTENT is in use.
+ */
+ virtual std::list<DCPTime> reel_split_points () const;
std::list<std::pair<std::string, std::string> > properties () const;
p.push_back (make_pair (_("Video frame rate"), raw_convert<string> (video_frame_rate()) + " " + _("frames per second")));
}
-list<DCPTime>
-VideoContent::reel_split_points () const
-{
- list<DCPTime> t;
- /* XXX: this is questionable; perhaps the position should be forced to be on a frame boundary */
- t.push_back (position().round_up (film()->video_frame_rate()));
- return t;
-}
-
double
VideoContent::video_frame_rate () const
{
virtual void set_default_colour_conversion ();
- /** @return points at which to split this content when
- * REELTYPE_BY_VIDEO_CONTENT is in use.
- */
- virtual std::list<DCPTime> reel_split_points () const;
-
Frame video_length () const {
boost::mutex::scoped_lock lm (_mutex);
return _video_length;