s/use_template/take_settings_from/g
[dcpomatic.git] / src / lib / video_content.cc
index 30a4630893ac4d2b97cd9bc9999577936e1a4711..d4e814624de8c949a9cd790de392fa536a4986ba 100644 (file)
@@ -529,7 +529,7 @@ VideoContent::set_fade_out (Frame t)
 }
 
 void
-VideoContent::use_template (shared_ptr<const VideoContent> c)
+VideoContent::take_settings_from (shared_ptr<const VideoContent> c)
 {
        _colour_conversion = c->_colour_conversion;
        _frame_type = c->_frame_type;
@@ -538,3 +538,17 @@ VideoContent::use_template (shared_ptr<const VideoContent> c)
        _fade_in = c->_fade_in;
        _fade_out = c->_fade_out;
 }
+
+void
+VideoContent::modify_position (DCPTime& pos) const
+{
+       pos = pos.ceil (_parent->film()->video_frame_rate());
+}
+
+void
+VideoContent::modify_trim_start (ContentTime& trim) const
+{
+       if (_parent->video_frame_rate()) {
+               trim = trim.ceil (_parent->video_frame_rate().get());
+       }
+}