X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_content.h;h=6d707670f27eb6bc267d98cefe7bbcd487cdc31f;hb=2f796cd531de522a3b7ed03a9942f3c55f3a0b5b;hp=874e1ee318f447914e4a6fdbb464b27dccbe6eed;hpb=254b3044d72de6b033d7c584f5abd2b9aa70aad5;p=dcpomatic.git diff --git a/src/lib/dcp_content.h b/src/lib/dcp_content.h index 874e1ee31..6d707670f 100644 --- a/src/lib/dcp_content.h +++ b/src/lib/dcp_content.h @@ -61,7 +61,8 @@ public: return boost::dynamic_pointer_cast (Content::shared_from_this ()); } - DCPTime full_length (boost::shared_ptr film) const; + dcpomatic::DCPTime full_length (boost::shared_ptr film) const; + dcpomatic::DCPTime approximate_length () const; void examine (boost::shared_ptr film, boost::shared_ptr); std::string summary () const; @@ -71,7 +72,7 @@ public: void take_settings_from (boost::shared_ptr c); void set_default_colour_conversion (); - std::list reel_split_points (boost::shared_ptr film) const; + std::list reel_split_points (boost::shared_ptr film) const; std::vector directories () const; @@ -143,15 +144,36 @@ public: return _content_kind; } + dcp::Standard standard () const { + boost::mutex::scoped_lock lm (_mutex); + DCPOMATIC_ASSERT (_standard); + return _standard.get (); + } + + std::map markers () const { + return _markers; + } + bool kdm_timing_window_valid () const; + Resolution resolution () const; + + std::vector ratings () const { + return _ratings; + } + + std::string content_version () const { + return _content_version; + } + private: friend class reels_test5; void add_properties (boost::shared_ptr film, std::list& p) const; void read_directory (boost::filesystem::path); - std::list reels (boost::shared_ptr film) const; + void read_sub_directory (boost::filesystem::path); + std::list reels (boost::shared_ptr film) const; bool can_reference ( boost::shared_ptr film, boost::function )>, @@ -190,6 +212,9 @@ private: boost::optional _cpl; /** List of the lengths of the reels in this DCP */ std::list _reel_lengths; + std::map _markers; + std::vector _ratings; + std::string _content_version; }; #endif