+ void set_trim_end (dcpomatic::ContentTime);
+
+ dcpomatic::ContentTime trim_end () const {
+ boost::mutex::scoped_lock lm (_mutex);
+ return _trim_end;
+ }
+
+ /** @return Time immediately after the last thing in this content */
+ dcpomatic::DCPTime end (boost::shared_ptr<const Film> film) const {
+ return position() + length_after_trim(film);
+ }
+
+ dcpomatic::DCPTime length_after_trim (boost::shared_ptr<const Film> film) const;
+
+ boost::optional<double> video_frame_rate () const {
+ boost::mutex::scoped_lock lm (_mutex);
+ return _video_frame_rate;
+ }
+
+ void set_video_frame_rate (double r);
+ void unset_video_frame_rate ();
+
+ double active_video_frame_rate (boost::shared_ptr<const Film> film) const;
+
+ void set_change_signals_frequent (bool f) {
+ _change_signals_frequent = f;
+ }
+
+ std::list<UserProperty> user_properties (boost::shared_ptr<const Film> film) const;
+
+ std::string calculate_digest () const;
+
+ /* CHANGE_TYPE_PENDING and CHANGE_TYPE_CANCELLED may be emitted from any thread; CHANGE_TYPE_DONE always from GUI thread */
+ boost::signals2::signal<void (ChangeType, boost::weak_ptr<Content>, int, bool)> Change;
+
+ boost::shared_ptr<VideoContent> video;
+ boost::shared_ptr<AudioContent> audio;
+ std::list<boost::shared_ptr<TextContent> > text;
+
+ boost::shared_ptr<TextContent> only_text () const;
+ boost::shared_ptr<TextContent> text_of_original_type (TextType type) const;