+ void set_position (std::shared_ptr<const Film> film, dcpomatic::DCPTime, bool force_emit = false);
+
+ /** dcpomatic::DCPTime that this content starts; i.e. the time that the first
+ * bit of the content (trimmed or not) will happen.
+ */
+ dcpomatic::DCPTime position () const {
+ boost::mutex::scoped_lock lm (_mutex);
+ return _position;
+ }
+
+ void set_trim_start (dcpomatic::ContentTime);
+
+ dcpomatic::ContentTime trim_start () const {
+ boost::mutex::scoped_lock lm (_mutex);
+ return _trim_start;
+ }
+
+ 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 (std::shared_ptr<const Film> film) const {
+ return position() + length_after_trim(film);
+ }
+
+ dcpomatic::DCPTime length_after_trim (std::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 (std::shared_ptr<const Film> film) const;
+
+ void set_change_signals_frequent (bool f) {
+ _change_signals_frequent = f;
+ }
+
+ std::list<UserProperty> user_properties (std::shared_ptr<const Film> film) const;
+
+ std::string calculate_digest () const;
+
+ virtual bool can_be_played () const {
+ return true;
+ }
+
+ /* ChangeType::PENDING and ChangeType::CANCELLED may be emitted from any thread; ChangeType::DONE always from GUI thread */
+ boost::signals2::signal<void (ChangeType, std::weak_ptr<Content>, int, bool)> Change;
+
+ std::shared_ptr<VideoContent> video;
+ std::shared_ptr<AudioContent> audio;
+ std::list<std::shared_ptr<TextContent>> text;
+ std::shared_ptr<AtmosContent> atmos;
+
+ std::shared_ptr<TextContent> only_text () const;
+ std::shared_ptr<TextContent> text_of_original_type (TextType type) const;
+
+ /** @return true if this content has changed since it was last examined */
+ bool changed () const;