X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcontent.h;h=f2fecddf063df96a2546fffb66cd82722922aa13;hb=0f11f0c25465464b28db713cccd37d7d8de483e1;hp=5b804b3318aabde130272ebeb55afaeb66cd948e;hpb=5799460dc38bafa1da1ce9f7bf43621d3fadf442;p=dcpomatic.git diff --git a/src/lib/content.h b/src/lib/content.h index 5b804b331..f2fecddf0 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 { @@ -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 { @@ -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; @@ -227,7 +234,7 @@ private: friend struct best_dcp_frame_rate_test_double; friend struct audio_sampling_rate_test; friend struct subtitle_font_id_change_test2; - template friend class ChangeSignaller; + template friend class ChangeSignalDespatcher; void signal_change (ChangeType, int); @@ -249,6 +256,7 @@ private: typedef ChangeSignaller ContentChangeSignaller; +typedef ChangeSignalDespatcher ContentChangeSignalDespatcher; #endif