diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-02-09 22:49:47 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-02-10 10:31:15 +0100 |
| commit | fbdfc901498605f89f28a57d595df966bddc4eb1 (patch) | |
| tree | 41f046cc60ee9ab11cbb391d0afce114bbd685d2 /src/lib/content.h | |
| parent | ead33f1db9657b3af93ec966d7bbc24218b6fba0 (diff) | |
Cleanup: add Content::period().
Diffstat (limited to 'src/lib/content.h')
| -rw-r--r-- | src/lib/content.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/content.h b/src/lib/content.h index eddce2858..979680d6a 100644 --- a/src/lib/content.h +++ b/src/lib/content.h @@ -175,6 +175,10 @@ public: return position() + length_after_trim(film); } + dcpomatic::DCPTimePeriod period(std::shared_ptr<const Film> film) const { + return { position(), end(film) }; + } + dcpomatic::DCPTime length_after_trim (std::shared_ptr<const Film> film) const; boost::optional<double> video_frame_rate () const { |
