X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fvideo_mxf_content.h;h=dd470335c061209ec3b253dcec553eaa0265fc10;hb=7c730205e50014347bd96ab9735346d0b5922798;hp=1fa428704d620084eaa0645aa118d8fed389bc74;hpb=4079beaa74c67e81ae8e40bd715dcc68cdbdf676;p=dcpomatic.git diff --git a/src/lib/video_mxf_content.h b/src/lib/video_mxf_content.h index 1fa428704..dd470335c 100644 --- a/src/lib/video_mxf_content.h +++ b/src/lib/video_mxf_content.h @@ -23,20 +23,25 @@ class VideoMXFContent : public Content { public: - VideoMXFContent (boost::shared_ptr film, boost::filesystem::path path); - VideoMXFContent (boost::shared_ptr film, cxml::ConstNodePtr node, int version); + VideoMXFContent (boost::filesystem::path path); + VideoMXFContent (cxml::ConstNodePtr node, int version); boost::shared_ptr shared_from_this () { return boost::dynamic_pointer_cast (Content::shared_from_this ()); } - void examine (boost::shared_ptr job); + boost::shared_ptr shared_from_this () const { + return boost::dynamic_pointer_cast (Content::shared_from_this ()); + } + + void examine (boost::shared_ptr film, boost::shared_ptr job); std::string summary () const; std::string technical_summary () const; std::string identifier () const; void as_xml (xmlpp::Node* node, bool with_paths) const; - DCPTime full_length () const; - void add_properties (std::list& p) const; + dcpomatic::DCPTime full_length (boost::shared_ptr film) const; + dcpomatic::DCPTime approximate_length () const; + void add_properties (boost::shared_ptr film, std::list& p) const; static bool valid_mxf (boost::filesystem::path path); };