X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fcontent.h;h=0ce87ed9be0a192ec6923036f724b9d33abe7cd0;hb=e7d8a70a16f972de2861bb1464dec6df3d26c579;hp=ba4c23ddf8cbb155f745b0ff33914fd747952866;hpb=d2522364d5e64d07449b2bf6a36be7fdac258f71;p=dcpomatic.git diff --git a/src/lib/content.h b/src/lib/content.h index ba4c23ddf..0ce87ed9b 100644 --- a/src/lib/content.h +++ b/src/lib/content.h @@ -31,8 +31,8 @@ #include "change_signaller.h" #include "dcpomatic_time.h" #include "signaller.h" -#include "types.h" #include "user_property.h" +#include "text_type.h" #include #include #include @@ -50,6 +50,9 @@ namespace cxml { class Job; class Film; class AtmosContent; +class AudioContent; +class TextContent; +class VideoContent; class ContentProperty { @@ -153,7 +156,7 @@ public: return _position; } - void set_trim_start (dcpomatic::ContentTime); + void set_trim_start(std::shared_ptr film, dcpomatic::ContentTime); dcpomatic::ContentTime trim_start () const { boost::mutex::scoped_lock lm (_mutex); @@ -172,6 +175,10 @@ public: return position() + length_after_trim(film); } + dcpomatic::DCPTimePeriod period(std::shared_ptr film) const { + return { position(), end(film) }; + } + dcpomatic::DCPTime length_after_trim (std::shared_ptr film) const; boost::optional video_frame_rate () const { @@ -179,7 +186,7 @@ public: return _video_frame_rate; } - void set_video_frame_rate (double r); + void set_video_frame_rate(std::shared_ptr film, double r); void unset_video_frame_rate (); double active_video_frame_rate (std::shared_ptr film) const; @@ -201,7 +208,7 @@ public: std::shared_ptr video; std::shared_ptr audio; - std::list> text; + std::vector> text; std::shared_ptr atmos; std::shared_ptr only_text () const;