}
void
-AudioContent::use_template (shared_ptr<const AudioContent> c)
+AudioContent::take_settings_from (shared_ptr<const AudioContent> c)
{
_gain = c->_gain;
_delay = c->_delay;
void as_xml (xmlpp::Node *) const;
std::string technical_summary () const;
- void use_template (boost::shared_ptr<const AudioContent> c);
+ void take_settings_from (boost::shared_ptr<const AudioContent> c);
AudioMapping mapping () const;
void set_mapping (AudioMapping);
}
void
-Content::use_template (shared_ptr<const Content> c)
+Content::take_settings_from (shared_ptr<const Content> c)
{
if (video && c->video) {
- video->use_template (c->video);
+ video->take_settings_from (c->video);
}
if (audio && c->audio) {
- audio->use_template (c->audio);
+ audio->take_settings_from (c->audio);
}
if (subtitle && c->subtitle) {
- subtitle->use_template (c->subtitle);
+ subtitle->take_settings_from (c->subtitle);
}
}
*/
virtual void examine (boost::shared_ptr<Job> job);
- virtual void use_template (boost::shared_ptr<const Content> c);
+ virtual void take_settings_from (boost::shared_ptr<const Content> c);
/** @return Quick one-line summary of the content, as will be presented in the
* film editor.
}
void
-DCPContent::use_template (shared_ptr<const Content> c)
+DCPContent::take_settings_from (shared_ptr<const Content> c)
{
shared_ptr<const DCPContent> dc = dynamic_pointer_cast<const DCPContent> (c);
DCPOMATIC_ASSERT (dc);
std::string technical_summary () const;
void as_xml (xmlpp::Node *, bool with_paths) const;
std::string identifier () const;
- void use_template (boost::shared_ptr<const Content> c);
+ void take_settings_from (boost::shared_ptr<const Content> c);
void set_default_colour_conversion ();
std::list<DCPTime> reel_split_points () const;
}
void
-FFmpegContent::use_template (shared_ptr<const Content> c)
+FFmpegContent::take_settings_from (shared_ptr<const Content> c)
{
- Content::use_template (c);
+ Content::take_settings_from (c);
shared_ptr<const FFmpegContent> fc = dynamic_pointer_cast<const FFmpegContent> (c);
_filters = fc->_filters;
}
void examine (boost::shared_ptr<Job>);
- void use_template (boost::shared_ptr<const Content> c);
+ void take_settings_from (boost::shared_ptr<const Content> c);
std::string summary () const;
std::string technical_summary () const;
void as_xml (xmlpp::Node *, bool with_paths) const;
/* Take settings from the first piece of content of c's type in _template */
BOOST_FOREACH (shared_ptr<Content> i, _template_film->content()) {
if (typeid(i.get()) == typeid(c.get())) {
- c->use_template (i);
+ c->take_settings_from (i);
}
}
}
}
void
-SubtitleContent::use_template (shared_ptr<const SubtitleContent> c)
+SubtitleContent::take_settings_from (shared_ptr<const SubtitleContent> c)
{
_use = c->_use;
_burn = c->_burn;
void as_xml (xmlpp::Node *) const;
std::string identifier () const;
- void use_template (boost::shared_ptr<const SubtitleContent> c);
+ void take_settings_from (boost::shared_ptr<const SubtitleContent> c);
void add_font (boost::shared_ptr<Font> font);
}
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;
void as_xml (xmlpp::Node *) const;
std::string technical_summary () const;
std::string identifier () const;
- void use_template (boost::shared_ptr<const VideoContent> c);
+ void take_settings_from (boost::shared_ptr<const VideoContent> c);
Frame length () const {
boost::mutex::scoped_lock lm (_mutex);