diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-02-16 12:15:38 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-02-16 12:15:38 +0000 |
| commit | 797648ddcfe72bb428d8355672da3a1b6fac54fc (patch) | |
| tree | 2f0d7cf7f3aaee8b45b0dfa9e3363b082e57af31 /src/lib/content.cc | |
| parent | 66d12a84fd513ad68692f7cb473472ad76aa495f (diff) | |
Move reel_split_points from VideoContent to Content.
Diffstat (limited to 'src/lib/content.cc')
| -rw-r--r-- | src/lib/content.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/content.cc b/src/lib/content.cc index af85e0ff0..2c89f7c34 100644 --- a/src/lib/content.cc +++ b/src/lib/content.cc @@ -295,3 +295,13 @@ Content::film () const 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; +} |
