vector<DCPTimePeriod>
-Film::reels() const
+Film::reels_for_type(ReelType type) const
{
vector<DCPTimePeriod> periods;
auto const len = length();
- switch (reel_type()) {
+ switch (type) {
case ReelType::SINGLE:
periods.emplace_back(DCPTime(), len);
break;
}
+vector<DCPTimePeriod>
+Film::reels() const
+{
+ return reels_for_type(reel_type());
+}
+
+
/** @param period A period within the DCP
* @return Name of the content which most contributes to the given period.
*/
void set_dirty(bool dirty);
void write_ui_state() const;
void check_reel_boundaries_for_atmos();
+ std::vector<dcpomatic::DCPTimePeriod> reels_for_type(ReelType type) const;
/** Log to write to */
std::shared_ptr<Log> _log;